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

how do i add lvl requirments to ammo

i looked there and theres nothing there that i can see for the lvl requirments. like what would i add in it? at the bottem u say?

edit: this is what my weapons.xml looks like
the stuff in red is what i added to see if that would work bit it didnt.
Code:
<?xml version="1.0"?>
<weapons>
<!-- Rods -->
<wand id="2182" range="4" lvl="7" mana="2" enabled="1" exhaustion="0" script="snakebite rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2186" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="moonlight rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2185" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="necrotic rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2181" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="terra rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2183" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="hailstorm rod.lua"><vocation id="2"/><vocation id="6"/></wand>

<!-- Wands -->
<wand id="2190" range="4" lvl="7" mana="2" enabled="1" exhaustion="0" script="wand of vortex.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of decay.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand>

<!-- Distance weapons -->
<distance id="5907" range="8" enabled="1" exhaustion="0" hitchance="85" ammo="removecount" script="smallstone.lua"></distance>
<distance id="2389" range="6" enabled="1" exhaustion="0" ammo="hand" script="spear.lua"></distance>
<distance id="2545" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="poison arrow.lua"></distance>
<distance id="2546" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="explosive arrow.lua"></distance>
<distance id="7838" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="shiver arrow.lua"></distance>
<distance id="7839" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="ice arrow.lua"></distance>
<distance id="7840" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="flaming arrow.lua"></distance>
<distance id="7367" range="6" enabled="1" exhaustion="0" ammo="hand" script="enchanted spear.lua"></distance>
<distance id="7364" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="sniper arrow.lua"></distance>
<distance id="2455" lvl="55" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="power bolt.lua"></distance>
<distance id="7363" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="piercing bolt.lua"></distance>
<distance id="7365" range="6" enabled="1" exhaustion="0" hitchance="60" ammo="removecount" script="onyx arrow.lua"></distance>
<distance id="7378" range="6" enabled="1" exhaustion="0" ammo="hand" script="royal spear.lua"></distance>
<distance id="3965" range="6" enabled="1" exhaustion="0" ammo="hand" script="hunting spear.lua"></distance>
<distance id="7366" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="viper star.lua"></distance>
<distance id="7850" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="earth arrow.lua"></distance>
<distance id="2352" range="6" enabled="1" exhaustion="0" hitchance="80" script="crystal arrow.lua"></distance>

<!-- Enchanted Weapons -->
<!-- Terra Weapons -->
<melee id="7854" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7855" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7856" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7857" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7858" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7859" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7860" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7861" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7862" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7863" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7864" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7865" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7866" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7867" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7868" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<!-- Energy Weapons -->
<melee id="7869" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7870" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7871" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7872" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7873" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7874" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7875" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7876" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7877" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7878" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7879" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7880" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7881" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7882" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7883" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<!-- Fire Weapons -->
<melee id="7744" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7745" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7746" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7747" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7748" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7749" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7750" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7751" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7752" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7753" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7754" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7755" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7756" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7757" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7758" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<!-- Ice Weapons -->
<melee id="7763" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7764" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7765" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7766" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7767" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7768" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7769" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7770" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7771" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7772" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7773" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7774" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7775" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7776" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7777" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>

[COLOR="Red"][B]<!-- distance reqments-->
      <distance id="2547" level="55" unproperly="1" function="internalloadweapon">
           <vocation name="sniper"/>
           <vocation name="assassin"/>
      </distance>[/B][/COLOR]
</weapons>
 
Last edited:
Back
Top