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

TFS 0.3 Movements <OnEquip>

ScorpiOOn93

etherno.net
Joined
Jun 19, 2008
Messages
662
Reaction score
1
Location
CookieLand :DDD
Hiho
I have a small problem. I've changed my distro from tfs 0.2 to 0.3 and I had some problems but with Hermes i've fixed them (tnx ;*) and now i have only one problem with movements, this problem is that i have scripts onEquip and OndEuip with some items (like armor, rings etc.) and if this function have scripts like crownarmor.lua (If someone wear crown armor then he will look like hero) then i can't wear that item on his slot (ring, armor etc.)
On tfs 0.2 it was working, but on tfs 0.3 beta 3 it's not working ;o

For example:
In movements.xml
<movevent event="Equip" itemid="2487" function="onEquipItem" slot="armor" script="crownarmor.lua"/>
<movevent event="DeEquip" itemid="2487" function="onDeEquipItem" slot="armor" script="crownarmor.lua"/>

In data/movements/scripts file called: crownarmor.lua
local outfit =
{
lookType = 73,
}
function onEquip(cid, item, slot)
doSetCreatureOutfit(cid, outfit, -1)
end
function onDeEquip(cid, item, slot)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
And on tfs 0.3 if i have that script and the slot type is armor then on OT i can't wear it but on my previous distro (tfs 0.2) it was working without any problems.

And all another scripts like this script don't work (exp ring in movements, sd ring etc.)
 
I'm having the same problem with an item I am scripting at the moment. It will do the effect I tell it to when you move it to the slot and release the mouse button but it will not be equipped. :/
 
@Up
OMG...
You still don't understand. If i have some script (like in 1 post) then i can't wear this Item on his normal slot (in example armor-crow armor). On TFS 0.2 it was working, but on tfs 0.3 this isn't working.
 
@Up
OMG...
You still don't understand. If i have some script (like in 1 post) then i can't wear this Item on his normal slot (in example armor-crow armor). On TFS 0.2 it was working, but on tfs 0.3 this isn't working.
Do you want this item is not in using your normal slot, which is (body or armor), right?
 
This is strange, try this:
Remeber that, mages can't use knights and pallas equips.

In you movements.xml, replace:
Code:
<movevent event="Equip" itemid="2487" function="onEquipItem" slot="armor" script="crownarmor.lua"/>
<movevent event="DeEquip" itemid="2487" function="onDeEquipItem" slot="armor" script="crownarmor.lua"/>
for
Code:
    <movevent event="Equip" itemid="2487" slot="armor" function="onEquipItem">
        <vocation name="Knight"/>
        <vocation name="Elite Knight" showInDescription="0"/>
        <vocation name="Paladin"/>
        <vocation name="Royal Paladin" showInDescription="0"/>
    </movevent>
    <movevent event="DeEquip" itemid="2487" slot="armor" function="onDeEquipItem"/>
 
Back
Top