Rayeko
Programmer
- Joined
- Apr 9, 2008
- Messages
- 185
- Reaction score
- 3
Hi.
I wonder if someone could tell me how to make the "attacker" to work with monsters in this function:
I alredy make it for players, but I can't get it to work with monsters..
This is the code I use with players:
I think it can be smaller and easy.. xDD
I want this to make it work with "doCreatureAddHealth()" function xD
Thanks in advance!
I wonder if someone could tell me how to make the "attacker" to work with monsters in this function:
Code:
onStatsChange(cid, attacker, type, combat, value)
This is the code I use with players:
Code:
getCreatureByName(getPlayerNameByGUID(getPlayerGUID(attacker)))
I want this to make it work with "doCreatureAddHealth()" function xD
Thanks in advance!