Forums WoW Modding Discussion Miscellaneous [Archive] C++ related question.

[Archive] C++ related question.

[Archive] C++ related question.

rektbyfaith
Administrator
0
11-04-2025, 05:14 PM
#1
Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source

Anyone know what the script would look like to remove an aura/buff when a player casts a certain spell through c++? I've tried a few things but I'm not entirely sure I know if that's the best, or even right way of doing it. To mention I am quite new to c++.

https://imgur.com/a/4uBPx

I am using a trinity-core 4.3.4 version. Also if you would like, point out any mistakes or general recommendations when coding in c++ for wow emulation.
rektbyfaith
11-04-2025, 05:14 PM #1

Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source

Anyone know what the script would look like to remove an aura/buff when a player casts a certain spell through c++? I've tried a few things but I'm not entirely sure I know if that's the best, or even right way of doing it. To mention I am quite new to c++.

https://imgur.com/a/4uBPx

I am using a trinity-core 4.3.4 version. Also if you would like, point out any mistakes or general recommendations when coding in c++ for wow emulation.

rektbyfaith
Administrator
0
11-04-2025, 05:14 PM
#2
Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source

You could check both conditions in the same if instead of making two ifs. Use the and operator (&&) http://www.cplusplus.com/doc/tutorial/operators/ .
rektbyfaith
11-04-2025, 05:14 PM #2

Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source

You could check both conditions in the same if instead of making two ifs. Use the and operator (&&) http://www.cplusplus.com/doc/tutorial/operators/ .

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