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

Item Addon

Slepy

New Member
Joined
May 14, 2009
Messages
111
Reaction score
1
Who can help me, I wanna to make script:
When you put Sca on Equipment then Barbiarian Addon 2 is active when i take off the Sca then Barbiarian Addon 2 is not active
 
data/movements/movements.xml
Code:
	<movevent type="Equip" itemid="2431" slot="hand" event="script" value="stonecutter_axe.lua"/>
	<movevent type="DeEquip" itemid="2431" slot="hand" event="script" value="stonecutter_axe.lua"/>
data/movements/scripts/stonecutter_axe.lua
Code:
function onEquip(cid, item, slot)
	return doPlayerAddOutfit(cid, 143, 1) and doPlayerAddOutfit(cid, 147, 1)
end
function onDeEquip(cid, item, slot)
	return doPlayerRemoveOutfit(cid, 143, 1) and doPlayerRemoveOutfit(cid, 147, 1)
end
btw it's first addon, not second
 
Back
Top