<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" />
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
What it can be true cant see anything in actionTfs 1.2 already has a magic wall rune.
No way this is the entire scriptbecause its in spells
function onCastSpell(creature, variant)
return creature:conjureItem(2260, 2293, 3)
end
<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" />
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 spellspells.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
you can always create an action script when its not neededIt have to be action not a spell
Thats the deal, im pretty sure you cant add in action stuff likeyou can always create an action script when its not needed
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
doPlayerAddSoul(cid, X)
return true
end
functionable
why?It have to be action not a spell
I dont know i think its better when its action because it makes it automatically economy more fun, you can sell trade mwal and etc... In my opinion its full of advantageswhy?
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.I'm not sure you quite understand how this works.
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
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 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 i cant see where do you put item id for that rune?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.
A i see nowrune id 2293?