Slaying World
Member
Okay so i want a creaturescript so whenever i kill 1 Nazi Zombie i will get 1 Nazi Token. But with my script after i kill the nazi zombie he doesnt turn into a corpse. And i keep getting 1+ nazi tokens D:
Heres the script.
Heres the script.
Code:
local t = {
['nazi zombie'] = {1337}
}
function onKill(cid, target, damage, flags)
local k = t[string.lower(getCreatureName(target))]
if(k and (damage == true or bit.band(flags, 1) == 1) and isMonster(target)) then
doPlayerAddItem(cid,6527,1)
doCreatureSay(cid, "+1 Nazi Token!", TALKTYPE_ORANGE_1)
end
end
return true