Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
Hello I'm trying to do something like:
Disable the use of Magic Walls if have with XX storage
any idea?
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
function onCastSpell(creature, variant, isHotkey)
if creature:isPlayer() then
local Stop = [storage here]
if Stop then
return false
end
end
return combat:execute(creature, variant)
end
Disable the use of Magic Walls if have with XX storage
any idea?