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

[HELP] Attributes of the weapon does not work!

icaro1988

New Member
Joined
Jul 1, 2009
Messages
63
Reaction score
1
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
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!
 
Back
Top