• 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 Walls, All fields

Status
Not open for further replies.

TomCrusher

Jeg er ingenting
Joined
Dec 31, 2008
Messages
663
Reaction score
20
Location
Norway
I got mapped magic walls and fields on my map, and they all dissapear after like 3 mins. How to fix it??:confused:

thanks in advance...
 
lol xD
Replace their attributes in items.xml?

Current:
Code:
	<item id="1497" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
	</item>
	<item id="1498" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
[COLOR="Red"][B]		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="20"/>[/B][/COLOR]
	</item>
New:
Code:
	<item id="1497" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
[B][COLOR="red"]		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="20"/>[/COLOR][/B]
	</item>
	<item id="1498" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
	</item>
 
if i do this like this then magic walls which have been created by magic wall rune wont dissapear :/
Then change their ID? -.-""

data/spells/scripts/support/magic wall rune.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, [B][COLOR="Red"]1498[/COLOR][/B])

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Status
Not open for further replies.
Back
Top