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

Compiling Utamo Vita / Utani Hur lasts forever?

Greypaw

Project Greypaw
Joined
Sep 4, 2013
Messages
110
Reaction score
19
Location
United States
So, I use Rev 3884 (8.6) and Utamo Vita/Utani Hur lasts forever. I've tried it on TFS 0.3.6 V8, Rev 3884, and even TFS 0.3.5.pl1... All are the same, lasts forever.
 
Last edited:
You edit something related to utamo vita and utani hur.

edit the file Magic shield.lua:

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end

in spells.xml register it this way
Code:
    <instant name="Magic Shield" words="utamo vita" lvl="14" mana="50" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="support/magic shield.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="3"/>
        <vocation id="5"/>
        <vocation id="6"/>
        <vocation id="7"/>
    </instant>

-- copy pasted
 
Right now it's set at
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Better use the default haste and magic shield scripts that are on the 3884 datapack. Also, check if you don't have any creaturescript or SLT that makes this happens.
 
Back
Top