• 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.X+ tfs 1.3 bug magicwall (when server is NO PVP)

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,210
Solutions
35
Reaction score
206
my server is PVP, but sometimes I put NO PVP to hold some event.
If someone uses magic wall when server is NO PVP the magic wall never goes away, has anyone seen this bug?
it looks like decay doesn't work on No PVP, I don't know what happens

LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)

function onCastSpell(creature, variant, isHotkey)
    return combat:execute(creature, variant)
end
 
Last edited:
my server is PVP, but sometimes I put NO PVP to hold some event.
If someone uses magic wall when server is NO PVP the magic wall never goes away, has anyone seen this bug?
it looks like decay doesn't work on No PVP, I don't know what happens

LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)

function onCastSpell(creature, variant, isHotkey)
    return combat:execute(creature, variant)
end
Hi,
Are you sure that is the same itemId created when you change the world type?
Items.xml:
XML:
    <item id="1497" article="a" name="magic wall">
        <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" />
    </item>
Maybe you create itemId 1497 in OpenPvP and 1498 in NoPvP, try check this. If so, just add a decay and duration key in items.xml to solve the problem.
 
magic wall is considered a agressive move, so you cannot use it when server is no-pvp
try adding:
Code:
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, FALSE)
and see if it works
 
Back
Top