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

Solved Drowning Wand

Exoltes

Novia OTserv Developer
Joined
Jul 2, 2009
Messages
563
Reaction score
47
Location
Belgium
I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).

I'm trying to create a wand that hits drowning dmg. But i can't seem to find the right type in my 'weapons.xml' file

[02/08/2014 16:10:42] [Warning - WeaponWand::configureEvent] Type "energyball" does not exist.
[02/08/2014 16:10:42] [Warning - WeaponWand::configureEvent] Type "teleport" does not exist.
[02/08/2014 16:10:42] [Warning - WeaponWand::configureEvent] Type "drowndamage" does not exist.

Code:
<!-- Death -->
    <wand id="2185" level="20" mana="5" min="20" max="40" type="death" function="default"> <!-- Necrotic Rod -->
        <vocation name="Earth Mage"/>
        <vocation name="Ice Mage"/>
    </wand>
<!-- Holy -->
    <wand id="7410" level="100" mana="15" min="55" max="75" type="holy" function="default"> <!-- Queen Sceptre -->
        <vocation name="Earth Mage"/>
        <vocation name="Ice Mage"/>
    </wand>
<!-- Ice -->
    <wand id="2186" level="1" mana="1" min="1" max="3" type="ice" function="default"> <!-- Moonlight Rod -->
        <vocation name="Ice Mage"/>
    </wand>
<!-- Earth -->
    <wand id="2182" level="1" mana="1" min="1" max="3" type="earth" function="default"> <!-- Snakebit Rod -->
        <vocation name="Earth Mage"/>
    </wand>
<!-- Fire -->
    <wand id="2191" level="1" mana="3" min="13" max="25" type="fire" function="default"> <!-- Wand of Dragonbreath -->
        <vocation name="Fire Mage"/>
    </wand>
<!-- Energy -->
    <wand id="2190" level="1" mana="1" min="1" max="3" type="energy" function="default"> <!-- Wand of Vortex -->
        <vocation name="Energy Mage"/>
    </wand>

<!-- Moonlight -->
    <wand id="7424" level="20" mana="5" min="20" max="40" type="energyball" function="default"> <!-- Lunar Staff -->
        <vocation name="Fire Mage"/>
        <vocation name="Energy Mage"/>
    </wand>
    <wand id="7409" level="100" mana="15" min="55" max="75" type="teleport" function="default"> <!-- Imaginary Staff -->
        <vocation name="Fire Mage"/>
        <vocation name="Energy Mage"/>
    </wand>
    <wand id="2453" level="150" mana="20" min="90" max="120" type="drowndamage" function="default"> <!-- Arcane Staff -->
        <vocation name="Fire Mage"/>
        <vocation name="Energy Mage"/>
    </wand>

I already made runes using the drowning dmg but I can't seem to find the list of the 'Types' used within the 'weapons.xml' file
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_TELEPORT)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.366, 0, -0.641, 0)

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

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

So if anyone could help me, it would be appreciated a lot.
 
Weapons.xml types for wands/rods in TFS 0.2.7
Code:
earth
ice
energy
fire
death
holy
You can also use a Lua script for your wand, then you don't have to add type and you can use the damage type and effects you want.
 
Back
Top