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

1 Question..

Kedor

New Member
Joined
Mar 3, 2008
Messages
263
Reaction score
0
Location
Poland, Gdynia
why pick isnt working?
or i asked wrong
why its working tooo GOOD?!~~
look on SS


i can use pick on ANY dirt tile..

my pick script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (itemEx.uid > 0 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
	end
	return FALSE
end


i compiled latest tags :P
 

Attachments

why pick isnt working?
or i asked wrong
why its working tooo GOOD?!~~
look on SS


i can use pick on ANY dirt tile..

my pick script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (itemEx.uid > 0 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
	end
	return FALSE
end


i compiled latest tags :P

Well, they made it too do any dirt so that's why you can use it on any dirt..
 
Try this:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
	end
	return FALSE
end
 
Try this:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
	end
	return FALSE
end

working for sure if ground dnt have any Action or Unique id.. will see with IDs now :) but anyway thx :)) i guess its working :)
 
working for sure if ground dnt have any Action or Unique id.. will see with IDs now :) but anyway thx :)) i guess its working :)

Huh? It's not supposed to work if the groundtile doesn't have any UniqueID or ActionID, only when the tile either has uniqueid or actionid.
 
i mean that script is working good now :P if ground dont have any id pick isnt working :P i mean that^^ said wrong :P sry ^_^
 
Back
Top