• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Weapons Problem

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
17
Location
Egypt
i have converted a weapons from 8.1 to 8.6 but if i use any wand it just kills beside the monster
here is some wand from weapons.xml
Code:
<wand id="7429" level="500" mana="0" min="0" max="0" type="holy" event="script" value="Kings Wand.lua"> <!-- New Wand -->
    <vocation id="1"/><vocation id="2"/><vocation id="5"/><vocation id="6"/><vocation id="9"/><vocation id="10"/><vocation id="13"/><vocation id="14"/><vocation id="17"/><vocation id="18"/><vocation id="21"/><vocation id="22"/><vocation id="25"/><vocation id="27"/></wand>
    </wand>
and here is the lua script kings wand.lua :-
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 10)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 38)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -10000, 0, -25000)

function onUseWeapon(cid, var)
    return doCombat(cid, combat, var)
end
and here is the item
Code:
<item id="7429" article="a" name="Kings Staff">
    <attribute key="weight" value="3900" />
    <attribute key="description" value="It can only be wielded properly by sorcerers and druids of level 500 or higher." />
    <attribute key="defense" value="30" />
    <attribute key="weaponType" value="Wand" />
    <attribute key="extradef" value="3" />
  </item>

and the vedio to explain more
 
Back
Top