• 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 [TFS 1.0] Items for vocations

Aroxenti

Member
Joined
Feb 19, 2013
Messages
43
Reaction score
12
Hello,

I'm using TFS 1.0
I'm going to make new donate items, but i have little problem. I want to assign an object to vocation.
And for example when I want make donate boots (I can see this error):
QSvqfvn.jpg


PHP:
  <movevent event="Equip" itemid="21708" slot="feet" level="250" function="onEquipItem"/>
     <vocation name="Sorcerer"/>
     <vocation name="Master Sorcerer" showInDescription="0"/>
     <vocation name="Druid"/>
     <vocation name="Elder Druid" showInDescription="0"/>
   </movevent>
   <movevent event="DeEquip" itemid="21708" slot="feet" function="onDeEquipItem"/>

PHP:
  <item id="21708" name="vampire silk slippers">
     <attribute key="weight" value="1150" />
     <attribute key="slotType" value="feet" />
     <attribute key="healthGain" value="150" />
     <attribute key="healthTicks" value="2000" />
     <attribute key="manaGain" value="350" />
     <attribute key="manaTicks" value="2000" />
     <attribute key="magiclevelpoints" value="5" />
     <attribute key="absorbPercentEarth" value="5" />
     <attribute key="absorbPercentFire" value="5" />
     <attribute key="absorbPercentIce" value="5" />
     <attribute key="absorbPercentEnergy" value="5" />
     <attribute key="showattributes" value="1" />
   </item>

I have the same problem with HOTA but in Prismatic Legs everything works.

Regards, thanks in advance.

*Sorry for my bad english. :)
 
PHP:
[code=xml]

  <movevent type="Equip" itemid="21708" slot="feet" level="250" event="function" value="onEquipItem">
     <vocation name="Sorcerer"/>
     <vocation name="Master Sorcerer" showInDescription="0"/>
     <vocation name="Druid"/>
     <vocation name="Elder Druid" showInDescription="0"/>
   </movevent>
   <movevent type="DeEquip" itemid="21708" slot="feet" event="function" value="onDeEquipItem"/>
[/code]

try this
 
<movevent type="Equip" itemid="21708" slot="feet" level="250" function="onEquipItem">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>
<vocation name="Druid"/>
<vocation name="Elder Druid" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="21708" slot="feet" function="onDeEquipItem"/>

and try this
 
post action.xml

and ref.lua in talkactions

No ^^, look at movevent error. Because this ref and cup of molten gold i can repair :)
<movevent type="Equip" itemid="21708" slot="feet" level="250" function="onEquipItem">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>
<vocation name="Druid"/>
<vocation name="Elder Druid" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="21708" slot="feet" function="onDeEquipItem"/>

and try this

Still don't work.
 
Yay! It works!

<movevent type="Equip" itemid="21708" slot="feet" level="250" function="onEquipItem">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>
<vocation name="Druid"/>
<vocation name="Elder Druid" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="21708" slot="feet" function="onDeEquipItem"/>

and try this

I copied this to movements.xml and I changed type="Equip" for event="Equip" and type="DeEquip" for event="DeEquip".
It's funny ^^

Thanks for all Magista.
 
Back
Top