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

Lua I have big problem.. (limits in weapons)

therrax

Member
Joined
Jul 12, 2012
Messages
262
Solutions
1
Reaction score
11
Hi.
Info:
The Forgotten Server 8.60 V5 - Edited By Otswe, version 0.3.6 V5 - Edited By Otswe (Crying Damson)
My problem:
Paladin, level 10 can attack by giant sword, just as with any other... Looks like quite did not work.
Look:
errorss.jpg

My lua code for example (giant sword in data/weapons/weapons.xml)
Code:
    <melee id="2393" level="55" unproperly="1" event="function" value="default">
        <vocation id="4"/>
        <vocation id="8" showInDescription="0"/>
    </melee>
and data/items/items.xml
Code:
    <item id="2393" article="a" name="giant sword">
        <attribute key="description" value="This sword has been forged by ancient giants."/>
        <attribute key="weight" value="18000"/>
        <attribute key="defense" value="22"/>
        <attribute key="attack" value="46"/>
        <attribute key="weaponType" value="sword"/>
        <attribute key="slotType" value="two-handed"/>
    </item>

Any suggestions? Please help me. I would be grateful!
 
it would be a bit stupid if you attack with a giant sword being paladin

anyways if you want to add vocation restriction when it comes to equip items you need to do it on movements.xml

Code:
 <!-- Weapons -->

    <movevent type="Equip" itemid="2393" slot="hand" event="function" value="onEquipItem">
        <vocation name="Knight"/>
        <vocation name="Elite Knight" showInDescription="0"/>
    </movevent>
    <movevent type="DeEquip" itemid="2393" slot="hand" event="function" value="onDeEquipItem"/>
 
Last edited:
it would be a bit stupid if you attack with a giant sword being paladin

anyways if you want to add vocation restriction when it comes to equip items you need to do it on movements.xml
Really?
I have there only armors, legs, boots, helmets, rings, shields and necklaces.
For example: slot = "hand" ?
 

Similar threads

Back
Top