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

Solved OnKill

Snach

Sensei
Joined
Aug 8, 2009
Messages
1,694
Reaction score
84
Location
Estonia
PHP:
function onKill(cid, target, lastHit)
 		if getPlayerStorageValue(cid, 30024) == 2 then
		setPlayerStorageValue(cid, 30024, 3)
		return TRUE
	end
end
Doesn't work I tried like 10 different ways x(
no errors jst nothing happens and storage doesnt change when i kill teh monster
help me please
 
Last edited:
LUA:
function onKill(cid, target, lastHit) 
         if getPlayerStorageValue(cid, 30024) == 2 then 
        setPlayerStorageValue(cid, 30024, 3) 
    end  
      return true  
end
 
LUA:
function onKill(cid, target, lastHit)
    if getPlayerStorageValue(cid, 30024) == 2 then
		return setPlayerStorageValue(cid,30024,3)
    end
end

Also register @ login.lua, as it's a creature script
 
Back
Top