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

Rep++] Magic wall problem

punish

New Member
Joined
May 20, 2010
Messages
56
Reaction score
0
Hello Otlanders.

Ive got a problem with the magic wall exahust.

Im using tfs 0.2.7 and you can spamm magic wall without being exahusted, i mean, if there is already a magic wall on a spot and you want to magic wall it again you can spam and wont get exahusted..


If you dont understand what i mean please have a try on my otserver
Athxzor.hopto.org

Please help me:blink:
 
Please post your spells.xml
in data/spells/spells.xml

Here you are

Code:
<rune name="Magic Wall" id="2293" allowfaruse="1" charges="40" lvl="32" maglv="9" exhaustion="1100" aggressive="1" blocktype="all" script="support/magic wall rune.lua"/>

Code:
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

I hope it helped
 
Here you are

Code:
<rune name="Magic Wall" id="2293" allowfaruse="1" charges="40" lvl="32" maglv="9" exhaustion="1100" aggressive="1" blocktype="all" script="support/magic wall rune.lua"/>

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

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

I hope it helped




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

Ill try it. Thx

Edit:
Did not work same problem

PIC
24o1xs9.jpg
 
Last edited:
spells.xml


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

spells/scripts/support/magic wall rune.lua


Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

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

items.xml

Code:
	<item id="2293" article="a" name="magic wall rune">
		<attribute key="runeSpellName" value="adevo grav tera" />
		<attribute key="weight" value="120" />
		<attribute key="charges" value="3" />
	</item>



rep++!
 
spells.xml


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

spells/scripts/support/magic wall rune.lua


Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

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

items.xml

Code:
	<item id="2293" article="a" name="magic wall rune">
		<attribute key="runeSpellName" value="adevo grav tera" />
		<attribute key="weight" value="120" />
		<attribute key="charges" value="3" />
	</item>



rep++!


Hello, I was on a trip at Stockholm (Sweden) so now im back and will try to fix it, thanks for your respond, i will repply here again soon:)
 
Hello again
this script GabrielCepeda did only work for some secounds, after the exahust you can spam again.

What i mean is that the magic wall didnt dissapear until you can spam again its hard to explain so try it yourself at athxzor.hopto.org
 
Back
Top