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

TFS 1.2 Magic wall

Solution
spells.xml
XML:
<rune group="attack" spellid="86" name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" groupcooldown="2000" blocktype="all" script="support/magic wall rune.lua" />

magic wall rune.lua
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end
spells.xml
XML:
<rune group="attack" spellid="86" name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" groupcooldown="2000" blocktype="all" script="support/magic wall rune.lua" />

magic wall rune.lua
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end
 
Solution
spells.xml
XML:
<rune group="attack" spellid="86" name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" groupcooldown="2000" blocktype="all" script="support/magic wall rune.lua" />

magic wall rune.lua
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end
It have to be action not a spell
 
you can always create an action script when its not needed :p
Thats the deal, im pretty sure you cant add in action stuff like
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
    doPlayerAddSoul(cid, X)
    return true
end
you know what i mean it looks not functionable
 
I'm not sure you quite understand how this works. :p

In default tfs, you have a magic wall rune that works just like in tibia. You create the rune, and when you use it, it creates a magic wall.

Am I missing something? :O
 
I'm not sure you quite understand how this works. :p

In default tfs, you have a magic wall rune that works just like in tibia. You create the rune, and when you use it, it creates a magic wall.

Am I missing something? :O
So it makes no sense if it creates a rune it means its action not a spell. Or you mean it goes Spell/Action/ActionUSE and what i mean is Action/ActionUSE.
Because if its just a spell how are you going to click USE and then pick any place to put that m wall.
 
So it makes no sense if it creates a rune it means its action not a spell. Or you mean it goes Spell/Action/ActionUSE and what i mean is Action/ActionUSE.
Because if its just a spell how are you going to click USE and then pick any place to put that m wall.
To answer these questions you would need to actually read how tfs works, spell is not only said spell, you can put there whatever you want, needtarget, need direction and stuff. Just use magic wall rune from tfs in spells, it works like you want it to work.
 
To answer these questions you would need to actually read how tfs works, spell is not only said spell, you can put there whatever you want, needtarget, need direction and stuff. Just use magic wall rune from tfs in spells, it works like you want it to work.
So i cant see where do you put item id for that rune?
 
Back
Top