Acesta este un add-on esential pentru mai multe sisteme (in special cele noi a lui Mali - Exemplu: Loot Settings System)
*Link download / Code:How To Storing Affects for Check later
Hello boys and girls!
With this small release you will be able to check every single affects on your character. The official server implemented this with their autohunt system to check the duration of taus and other potions.
I had to do the same for the dragon soul I have decided to make it. After a small trip in the official binary, I figured out my solution, here it is:
Deschidem Client/UserInterface/PythonPlayer.h si mergem la sfarsitul clasei:
Code:
CPythonPlayerAcum mergem in Client/UserInterface/PythonPlayer.cpp si cautam functia:
Code:
CPythonPlayer::ClearDupa care adaugam astea sub un alt void:
Deeschidem Client/UserInterface/CPythonNetworkStreamPhaseGame.cpp si cautam:
Code:
CPythonNetworkStream::RecvAffectAddPacketCautam:
Code:
CPythonNetworkStream::RecvAffectRemovePacket Deschidem acum Client/UserInterface/PythonPlayerModule.cpp si adaugam:
Cautam lista de mai jos cu METH_VARARGS si adaugam acolo:
Exemplu de folosire - Verifica daca pagina 1/2 din DSS (Alchimie) este activata:
Code:
if player.CheckAffect(chr.NEW_AFFECT_DRAGON_SOUL_DECK1, 0):
print("Hurray! The first deck is active now")
elif player.CheckAffect(chr.NEW_AFFECT_DRAGON_SOUL_DECK2, 0):
print("Oh, gosh! The second deck is activated, be careful")
else:
print("Without activated dragon soul you are weak....")

la acest mesaj și conținutul se va afișa automat.


