hello otlanders, i have some problems with fragreward script
Here for example i write simple script which doesnt work
Whats wrong ;|
_______________________________________
if i add to script
if isPlayer(lastHitKiller) == TRUE then
there is no error in console and i dont get reward becouse there is no lasthitKiller
wtf how it can be possible??
Here for example i write simple script which doesnt work
PHP:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
doPlayerAddItem(lastHitKiller, 9933)
end
PHP:
[11/05/2010 14:59:31] [Error - CreatureScript Interface]
[11/05/2010 14:59:31] data/creaturescripts/scripts/death.lua:onDeath
[11/05/2010 14:59:31] Description:
[11/05/2010 14:59:31] (luaDoPlayerAddItem) Player not found
Whats wrong ;|
_______________________________________
if i add to script
if isPlayer(lastHitKiller) == TRUE then
there is no error in console and i dont get reward becouse there is no lasthitKiller
wtf how it can be possible??