[DiscordArchive] Question, is there a struct somewhere in headers that's called `Money` or something, so I could do `
[DiscordArchive] Question, is there a struct somewhere in headers that's called `Money` or something, so I could do `
Archived author: Dioxain • Posted: 2025-08-05T00:04:36.260000+00:00
Original source
Question, is there a struct somewhere in headers that's called `Money` or something, so I could do `Money { gold = 10 }` and it'll automatically translate that into a uint32?
Archived author: Ryan Turner • Posted: 2025-08-05T00:13:38.564000+00:00
Original source
.modify money 10g
.modify money 10s
.modify money 10c
will give 10g, s or c
Archived author: Dioxain • Posted: 2025-08-05T00:20:53.178000+00:00
Original source
No no, I mean in code. If I wanted to do, say, `player->ModifyMoney(Money { gold = 10, silver = 2 })`, I believe C++ has cast-operators, right?
Archived author: Sederien • Posted: 2025-08-05T00:24:32.475000+00:00
Original source
Solved.
```REPLACE TO DOCKERFILE in /apps/docker/Dockerfile from ARG CCACHE_LOGFILE="" to COPY CMakeLists.txt /azerothcore/CMakeLists.txt
---
ARG CCACHE_LOGFILE=""
# --- Added wget and others for C++ curl and download support ---
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential ccache libtool cmake-data make cmake clang \
git lsb-base curl wget unzip default-mysql-client openssl \
default-libmysqlclient-dev libboost-all-dev libssl-dev libmysql++-dev \
libreadline-dev zlib1g-dev libbz2-dev libncurses5-dev \
libcurl4-gnutls-dev libcurl3-gnutls \
&& rm -rf /var/lib/apt/lists/*
# --- Download and install nlohmann/json.hpp ---
RUN mkdir -p /usr/local/include/nlohmann && \
wget -O /usr/local/include/nlohmann/json.hpp https://github.com/nlohmann/json/release...0/json.hpp && \
chmod 755 /usr/local/include/nlohmann/json.hpp
# --- AGAIN Download and install nlohmann/json.hpp ---
RUN mkdir -p /azerothcore/deps/nlohmann && \
wget -O /azerothcore/deps/nlohmann/json.hpp https://github.com/nlohmann/json/release...0/json.hpp && \
chmod 755 /azerothcore/deps/nlohmann/json.hpp
COPY CMakeLists.txt /azerothcore/CMakeLists.txt
---
REPLACE TO DOCKERFILE in /apps/docker/Dockerfile from ENV ACORE_COMPONENT=undefined to COPY --from=build /azerothcore/env/dist/etc/ /azerothcore/env/ref/etc
---
ENV ACORE_COMPONENT=undefined
# Install base dependencies for azerothcore
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libmysqlclient21 libreadline8 \
gettext-base default-mysql-client \
libcurl4-gnutls-dev libcurl3-gnutls \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /azerothcore/env/dist/etc/ /azerothcore/env/ref/etc
---```
Archived author: Sederien • Posted: 2025-08-05T00:25:32.126000+00:00
Original source
Basically, if you're using mods and docker and something needs an include, you need to put it in the DOCKERFILE in the right place. The above is for playerbot installs. Not really supported here, but since it was brought up it might save another in the future. Cheers.
![[Image: image.png?ex=690beb25&is=690a99a5&hm=782...3a42bd3b1&]](https://cdn.discordapp.com/attachments/1255602330431127753/1402085251584622672/image.png?ex=690beb25&is=690a99a5&hm=7822e587010eb2976d6cf3f1a7a5338ba4d14c5bf5762c063b550483a42bd3b1&)
Archived author: Sederien • Posted: 2025-08-05T00:26:13.516000+00:00
Original source
Whew.
![[Image: image.png?ex=690beb25&is=690a99a5&hm=782...3a42bd3b1&]](https://cdn.discordapp.com/attachments/1255602330431127753/1402085251584622672/image.png?ex=690beb25&is=690a99a5&hm=7822e587010eb2976d6cf3f1a7a5338ba4d14c5bf5762c063b550483a42bd3b1&)
Archived author: OSad • Posted: 2025-08-05T00:34:02.795000+00:00
Original source
Figured it out, looks like it only retroactively checks for gear from quests you completed.
Archived author: OSad • Posted: 2025-08-05T00:34:58.282000+00:00
Original source
Another question: can you control pet behaviors? For example, prevent the pet of a bot from using growl.
![[Image: image.png?ex=690bf00d&is=690a9e8d&hm=889...1815834fa&]](https://cdn.discordapp.com/attachments/1255602330431127753/1402090518430875748/image.png?ex=690bf00d&is=690a9e8d&hm=889c6173a0b2e289bf297b98b47c1ff70f73a6bd40ce84b41baf7f61815834fa&)
Archived author: Ryan Turner • Posted: 2025-08-05T00:47:09.160000+00:00
Original source
Not sure
currenlty implemented this way
https://github.com/azerothcore/azerothco...#L550-L653
https://github.com/azerothcore/azerothco...#L110-L160
basically this
![[Image: image.png?ex=690bf00d&is=690a9e8d&hm=889...1815834fa&]](https://cdn.discordapp.com/attachments/1255602330431127753/1402090518430875748/image.png?ex=690bf00d&is=690a9e8d&hm=889c6173a0b2e289bf297b98b47c1ff70f73a6bd40ce84b41baf7f61815834fa&)
Archived author: Nykko • Posted: 2025-08-05T00:48:05.396000+00:00
Original source
hey guys, so i was trying to open a server in a virtual machine host, but in the end it's not working, on the final step (creating authserver and worldserver) always these files doesn't install alone in the virtual machine, i reinstalled and tried everything like 7 times and still doesn't work