Forums WoW Modding Support Archives Azerothcore Discord Archives [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 `

[DiscordArchive] Question, is there a struct somewhere in headers that's called `Money` or something, so I could do `

rektbyfaith
Administrator
0
08-05-2025, 12:04 AM
#1
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?
rektbyfaith
08-05-2025, 12:04 AM #1

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?

rektbyfaith
Administrator
0
08-05-2025, 12:13 AM
#2
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
rektbyfaith
08-05-2025, 12:13 AM #2

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

rektbyfaith
Administrator
0
08-05-2025, 12:20 AM
#3
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?
rektbyfaith
08-05-2025, 12:20 AM #3

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?

rektbyfaith
Administrator
0
08-05-2025, 12:24 AM
#4
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

---```
rektbyfaith
08-05-2025, 12:24 AM #4

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

---```

rektbyfaith
Administrator
0
08-05-2025, 12:25 AM
#5
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.
rektbyfaith
08-05-2025, 12:25 AM #5

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.

rektbyfaith
Administrator
0
08-05-2025, 12:26 AM
#6
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&]
rektbyfaith
08-05-2025, 12:26 AM #6

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&]

rektbyfaith
Administrator
0
08-05-2025, 12:34 AM
#7
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.
rektbyfaith
08-05-2025, 12:34 AM #7

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.

rektbyfaith
Administrator
0
08-05-2025, 12:34 AM
#8
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.
rektbyfaith
08-05-2025, 12:34 AM #8

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.

rektbyfaith
Administrator
0
08-05-2025, 12:47 AM
#9
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&]
rektbyfaith
08-05-2025, 12:47 AM #9

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&]

rektbyfaith
Administrator
0
08-05-2025, 12:48 AM
#10
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
rektbyfaith
08-05-2025, 12:48 AM #10

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)