• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

On Kill & And on Death, add storage value.

LUA:
function onKill(cid, target, lastHit)
	if isPlayer(target) then
		doCreatureSetStorage(cid, key, value)
		doCreatureSetStorage(target, key, value) -- ??
	end
	return true
end
 
LUA:
function onKill(cid, target, lastHit)
	if isPlayer(target) then
		doCreatureSetStorage(cid, 123, math.max(0, getCreatureStorage(cid, 123)) + 1)
		doCreatureSetStorage(target, 456, math.max(0, getCreatureStorage(target, 456)) + 1)
	end
	return true
end
 
Last edited:
Back
Top