Ezzam
New Member
- Joined
- Jan 16, 2008
- Messages
- 213
- Reaction score
- 2
Code:
function onDeath(cid, corpse, killer)
local storage1 = getPlayerStorageValue(killer, 30101)
local storage2 = getPlayerStorageValue(killer, 35001)
local monster = getCreatureName(cid)
local MONSTERNAME = rotworm
if storage1 == 1 then
if monster == MONSTERNAME then
if storage2 < 0 and storage2 < 1 then
setPlayerStorageValue(killer, storage2, 1)
doPlayerSendTextMessage(killer,22,"You have killed 1 ".. monster ..".")
elseif storage2 >= 0 and storage2 <= 18 then
setPlayerStorageValue(killer, storage2 + 1)
doPlayerSendTextMessage(killer,22,"You have killed ".. storage2 + 1 .." ".. monster .."s.")
elseif storage2 >= 0 and storage2 <= 90 then
setPlayerStorageValue(killer, storage2 + 1)
doPlayerSendTextMessage(killer,22,"You have killed enough ".. monster .."s.")
end
end
end
return true
end
Script is still bugged, no error. But wont work.
Last edited: