Delvire
°£°
- Joined
- Feb 24, 2008
- Messages
- 236
- Reaction score
- 9
Hello everybody. I am having trouble with my script:
In this script, after killing 300 (or more) mutated humans, the player should receive a message saying that he is able to kill their boss. But it doesn't happen
There are no error messages in console and I have already added the event into the mutated human.xml file
Thanks anyone who help me and rep++ ofc
ah, and Yes, I am noob at lua
LUA:
function onKill(cid, target)
local counter = 0
local stg = 20008
if isCreature(target) then
if (getCreatureName(target) == 'Mutated Human') then
setPlayerStorageValue(cid, stg, (counter + 1))
return TRUE
end
if getPlayerStorageValue(cid, stg) >= 300 then
doCreatureSay(cid, "You are now able to kill the boss of the mutated humans.", TALKTYPE_ORANGE_1)
counter = 0
return FALSE
end
end
end
In this script, after killing 300 (or more) mutated humans, the player should receive a message saying that he is able to kill their boss. But it doesn't happen
There are no error messages in console and I have already added the event into the mutated human.xml file
Thanks anyone who help me and rep++ ofc
ah, and Yes, I am noob at lua