• 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 global error

ImaG

Active Member
Joined
Aug 16, 2017
Messages
75
Solutions
1
Reaction score
36
Location
Poland
GitHub
ImaGus01v
hey i used the script:
And... the values of my profession's equipment items have changed.
before:
a skilled assassin can use a bow/shield/helm
After:
bow/shield/helm can only be used by warrior

in global lua I add:
Code:
function isShield(uid) return getItemWeaponType(uid) == 4,5 end
and now the paladin can use shield but still can't use helmet.

[KOD=lua] <movevent event="DeEquip" itemid="24809" slot="head" function="onDeEquipItem" />
<movevent event="Equip" itemid="24810" slot="head" level="500" function="onEquipItem">
<profession name="Assassin" />
<vocation name="Warrior" />
</movevent>
<movevent event="DeEquip" itemid="24810" slot="head" function="onDeEquipItem" />[/KOD]

2T2DxoT.png


EDIT:
I fixed it
<vocation name="Knight" />
<vocation name="Elite Knight" showInDescription="0" />
<vocation name="Paladin" />
<vocation name="Royal Paladin" showInDescription="0" />
<vocation name="Assassin" />
<vocation name="Warrior" />
and work.


TRY NEXT:

Before adding everything was ok, after adding I can not assume it.
And the question/script:
What value should be changed so that the granted percentage of hp, mp is lower?
 
Last edited:
Back
Top