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

Lua fast attack in only two wands/rods

Thorn

Spriting since 2013
Joined
Sep 24, 2012
Messages
2,203
Solutions
1
Reaction score
922
Location
Chile
Hey, first of all my server is otx 2.52, and version 9.83,

well i want two of my wand to attack faster than the regular ones, but i see nowhere to edit that
here is the xml and the lua
Code:
<wand id="21253" level="8" range="8" mana="10" enabled="1" swing="yes" script="Prestiged druid rod.lua">
             <vocation id="1"/>
            <vocation id="2"/>
    </wand>

lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,50)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 31)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -350, -1.0, -450)

local area = createCombatArea({
{0, 0, 0},
{0, 3, 0},
{0, 0, 0}
})

setCombatArea(combat, area)

function onUseWeapon(cid, var)

return doCombat(cid, combat, var)
end

plz guys help me here :(
 
You'll need to set the new attackspeed with an onEquip/onDeEquip moveevent.
what do you mean? edit something here?
Code:
<movevent type="Equip" itemid="21232" slot="hand" level="8" event="function" value="onEquipItem">
        <vocation id="1"/>
        <vocation id="5" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="21232" slot="hand" level="8" event="function" value="onDeEquipItem"/>
 
Back
Top