Here is my script to kill a specific monster.
but at this line
it doesnt get the monster by its name so i dont know how else to script it.
With this script i can kill any monster i attack with a vial of water.
thank you.
Server Avesta 7.6.
but at this line
Code:
if item.type == 1 and getCreatureTarget(cid,'mr gulos') then
With this script i can kill any monster i attack with a vial of water.
thank you.
Code:
if item.type == 1 and getCreatureTarget(cid,'mr gulos') then
doCreatureAddHealth(getCreatureTarget(cid), -getCreatureHealth(getCreatureTarget(cid)))
doSendAnimatedText(getCreaturePosition(cid), "Muahahahahahaha", TEXTCOLOR_ORANGE)
doChangeTypeItem(item.uid, 0)
else return 0
end
Server Avesta 7.6.