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

Magic Wall request...

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hi there, I would like to modify the magic wall and make it like:
If you use it, you can enter to protection zone, but you will get X of attacking monsters (not players).


PD: agressive = "0" doesn't works like that.
 
@Cykotitan
Could you make an script for this rune as action?

If the player is in protection zone, then it gives protection zone restriction message.
If the player is not in protection zone, then it creates a magic wall in any range on the screen with 2 seconds of exhaustion, and it shouldn't give the X.

Please?
 
no, it can be done in spells
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
 
function onCastSpell(cid, var)
	local pos = variantToPosition(var)
	if getTileInfo(getThingPos(cid)).protection or getTileInfo(pos).protection then
		return not doPlayerSendDefaultCancel(cid, RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE)
	end

	doDecayItem(doCreateItem(1497, 1, pos))
	return doCombat(cid, combat, var)
end
 
Back
Top