I made a script for the weapon only if the team is referring to the ID of the player.
More what happens is that when I put in movements.xml directing to the script, attributes it simply does not work!
Below are the scripts:
movements.xml
script vip_equip.lua on movements/scripts:
Attributes of the weapon in items.xml:
What happens is that when I put the weapon on a player she simply does not add attributes!
More what happens is that when I put in movements.xml directing to the script, attributes it simply does not work!
Below are the scripts:
movements.xml
Code:
<movevent type="Equip" itemid="12728" slot="armor" level="100" event="script" value="vip_equip.lua">
<vocation id="3"/>
<vocation id="4"/>
<vocation id="7" showInDescription="0"/>
<vocation id="8" showInDescription="0"/>
</movevent>
<movevent type="DeEquip" itemid="12728" slot="armor" event="function" value="onDeEquipItem"/>
script vip_equip.lua on movements/scripts:
Code:
function onEquip(cid, item, slot)
local action_player = getPlayerGUID(cid)+10000
if(item.actionid == action_player) then
return TRUE
else
return FALSE
end
end
Attributes of the weapon in items.xml:
Code:
<item id="12728" article="a" name="elite draken mail">
<attribute key="weight" value="12000" />
<attribute key="armor" value="15" />
<attribute key="skillDist" value="3" />
<attribute key="skillClub" value="3" />
<attribute key="skillSword" value="3" />
<attribute key="skillAxe" value="3" />
<attribute key="speed" value="30" />
<attribute key="slotType" value="body" />
</item>
What happens is that when I put the weapon on a player she simply does not add attributes!