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

I can't use scythe!

Kaywin

Lord of War WoW/Tibia 2D
Joined
Oct 24, 2008
Messages
541
Reaction score
6
Location
SwedeN
Hello as the topic says: I can't use scythe on my server to destory some wheat.. someone post the Action scripts for it? I got the scripts but some way it don't works.
 
Here is the one in my server.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(itemEx.itemid == 2739) then
		doTransformItem(itemEx.uid, 2737)
		doCreateItem(2694, 1, toPosition)

		doDecayItem(itemEx.uid)
		return true
	end

	return destroyItem(cid, itemEx, toPosition)
end
 
Code:
01:10 You see wheat.
ItemID: [2739].
Position: [X: 32695] [Y: 31682] [Z: 7].

Code:
01:06 You see a scythe (Atk:8, Def:3).
It weighs 30.00 oz.
ItemID: [2550].
Position: [X: 32696] [Y: 31681] [Z: 7].
01:06 You see a scythe (Atk:8, Def:3).
It weighs 30.00 oz.
ItemID: [2550].
Position: [X: 32696] [Y: 31681] [Z: 7].

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(itemEx.itemid == 2739) then
		doTransformItem(itemEx.uid, 2737)
		doCreateItem(2694, 1, toPosition)
 
		doDecayItem(itemEx.uid)
		return true
	end
 
	return destroyItem(cid, itemEx, toPosition)
end

Code:
<action itemid="2550" event="script" value="tools/scythe.lua"/>

Whats the problem?
 
Back
Top Bottom