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

set Storage on victims of spells

Strack

Member
Joined
May 15, 2009
Messages
199
Reaction score
14
How can I put on spells that when some1 receives an attack from the spell is set an storage on him.

ex:
player 1: exevo flam hur, to player 2
player 2 have now a new storage (configured on exevo flam hur.lua)

Thx for ur time
 
add this to you spell

LUA:
function onTargetCreature(cid, target) 
	return doPlayerSetStorageValue(target, STORAGE_ID_HERE, STORAGE_VALUE HERE)
end

setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
 
Back
Top