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

Idea (both-hand)

Haizen

New Member
Joined
Sep 16, 2007
Messages
26
Reaction score
2
maybe you can put moviment suport for both-hand, so we can check if the item is on left or right hand

exemple:

Code:
<movevent event="Equip" itemid="0" slot="both-hand" function="onEquipItem" script="?.lua"/>
 
Why not just register both left and right hand?
 
I already tried, but only register the last one

exemple:
Code:
	<movevent event="Equip" itemid="2517" slot="right-hand" function="onEquipItem" script="teste.lua"/>
	<movevent event="DeEquip" itemid="2517" slot="right-hand" function="onDeEquipItem" script="teste.lua"/>
	<movevent event="Equip" itemid="2517" slot="left-hand" function="onEquipItem" script="teste.lua"/>
	<movevent event="DeEquip" itemid="2517" slot="left-hand" function="onDeEquipItem" script="teste.lua"/>
teste.lua
Code:
function onEquip(cid, item)
        print("Equip")
end

function onDeEquip(cid, item)
 	 print("DeEquip")
end

only work left-hand

=/
 
In items.xml add to item attribute like this:
Code:
		<attribute key="slotType" value="two-handed"/>
 
Back
Top