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

Creatureevent onCast

It works exactly same way as any other creatureevent. You have to register it in creaturescripts.xml & login.lua, and create script, thats all :)
 
Code:
function onCast(cid, target)
	if isPlayer(cid) and isPlayer(target) then
		if getPlayerIp(cid) ~= getPlayerIp(target) then
			return true
		else
			return false
		end
	end
end

This will i.e. stop casting a spell if the caster of a spell and the target of a spell have the same IP.
 
Back
Top