ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
LUA:
local chance = math.rand(2,5)
if getCreatureName(target) == "Chicken" and getPlayerStorageValue(cid, 15001) ~= 2 then
setPlayerStorageValue(cid, 15001, chance)
doCreatureSay(cid, "You have added the creature 'Chicken' to your bestiary.", TALKTYPE_ORANGE_1)
return true
end
Here is a tidbit of my script, I don't see why making the storage value set to a random number makes the creature freeze when it dies, but when setting it to a real number it's just fine.
Any help?
Last edited: