• 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!

Need help with onkill script it has an error

canaan

New Member
Joined
Sep 21, 2008
Messages
53
Reaction score
0
function onKill(cid, target)
if(isPlayer(target) == FALSE) then
for k, v in pairs(wow_like_quests_storages) do
local storage = getPlayerStorageValue(k)
if(storage >= 0) then
if(storage < v.amount) then
setPlayerStorageValue(cid, k, storage+1)
if(v.on_kill) then
v.on_kill(cid, parameters)
end
end
if((storage+1) == v.amount) then
if(v.on_finish) then
v.on_finish(cid, parameters)
end
end
end
end
end
return TRUE
end

Thats the script
 
this is the server error
[7/06/2010 19:51:59] [Error - CreatureScript Interface]
[27/06/2010 19:51:59] buffer:-OnKill
[27/06/2010 19:51:59] Description:
[27/06/2010 19:51:59] [string "loadBuffer"]:99: attempt to index a number value
[27/06/2010 19:51:59] stack traceback:
[27/06/2010 19:51:59] [string "loadBuffer"]:99: in function <[string "loadBuffer"]:6>
 
Back
Top