ImaG
Active Member
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:
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]
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?
Action - [TFS 1.1] - Slot system
Here it is - first way to make your items better on TFS 1.0. It took me entire night and a lot of work to find different way for functions so I expect your comment here. Original thread: MoveEvent - Slot system - Multi slot (No crashes)...
otland.net
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
[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]
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: