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

Lua Magic Wall not going away~

Ceejzor

Murica Born N Raised!
Joined
Jul 5, 2008
Messages
2,295
Reaction score
188
Location
USA - Philippines
Well I searched on Otland.net for a bit all the one's I found didn't help so I will try support.

items.xml​
PHP:
	<item id="1498" article="a" name="magic wall">
		<attribute key="type" value="magicfield"/>
	</item>

[CENTER>magic wall rune.lua[/CENTER]
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1498)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

spells.xml​
PHP:
<rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" blocktype="all" script="support/magic wall rune.lua"/>

So in the last .lua I see magic wall ID is 2293 would I change 2293 to the other two or change the other two to spells.xml?

Thanks in advance.
 
he probably updated spells folder, but not items.xml

another solution would be moving decayTo and duration attributes to ID 1498, depending on what magic wall ID's you use on your map.
 
try this:

<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"/>
<attribute key="decayTo" value="0"/>
<attribute key="duration" value="20"/>
</item>
 
Back
Top