• 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 Walls are walkable.

Status
Not open for further replies.

frankfarmer

who'r ninja now
Premium User
Joined
Aug 5, 2008
Messages
1,644
Solutions
1
Reaction score
99
If shoot magic walls on my server. Players walk over the magic walls, they don't block like they should.


How do i fix this?

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


ANYONE?
 
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"/>
		<attribute key="decayTo" value="0"/>
		<attribute key="duration" value="20"/>
	</item>
 
I noticed, when i shoot runes.

Code:
23:09 You see a magic wall.
ItemID: [1497].
DecayTo: [0].
 
Change item id... example other magic wall just write in rme editor j and write magic wall you will found much ids of it and test thoose...

Code:
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1498)

Why does it create 1497 then?
 
Try the following things:

First
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
TO:
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

Second
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"/>
To:
Code:
	<rune name="Magic Wall" id="2293" allowfaruse="0" charges="3" lvl="32" maglv="9" exhaustion="2000" blocktype="all" event="script" value="support/magic wall rune.lua"/>
 
Should read the changelogs before downloading.
* Fixed items.otb (0.4 differs from 0.3 and 0.2 due to 8.53 changes!!!)
* Real MW is 1497, not 1498- changed at items.xml
* You are able to walkthrough magic wall and wildgrowth only on non-pvp worlds!
 
Changelog said:
* Fixed items.otb (0.4 differs from 0.3 and 0.2 due to 8.53 changes!!!)
* Real MW is 1497, not 1498- changed at items.xml
* You are able to walkthrough magic wall and wildgrowth only on non-pvp worlds!

Is your server by any chance a non-pvp server? If so then this changelog explains it.
 
@rexxar that is a fix, that means as of that rev only nonpvp worlds you can walk on mws. the latest rev should work now as long as its non pvp (just like realtibia)
 
Im not using 0.4

I am using 0.3.6 and my gameworld is PVP, as it have always been. So, how/what do i do to fix this?
 
Last edited:
Use new magic wall ID (10553)? -.-"
If you don't have it, replace your items.otb with trunk's.

Hmm, i tried changing to 10553 but did not work.

Checked my items list and it did not exist 10553, also i have tried copying the 0.3.6 SVN trunk.

Still the same.

Tried changing magic wall rune to item 1498, atleast then they are not walkable. but they don't dissapear.
 
<item id="1497" article="a" name="magic wall">
<attribute key="type" value="magicfield"/>
<attribute key="type" value="magicfield"/>
<attribute key="decayTo" value="0"/>
<attribute key="duration" value="20"/>
</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>

Changed to that and it worked. Weho. Thanks everyone!
 
Status
Not open for further replies.
Back
Top