• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Kill monsters with fluids.

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
23
Location
Sweden
Here is my script to kill a specific monster.
but at this line
Code:
 if item.type == 1 and getCreatureTarget(cid,'mr gulos') then
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.

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.
 
[...] and getCreatureName(getCreatureTarget(cid)):lower() == "mr gulos" then
 
Back
Top