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

Remove stone with pick

frankfarmer

who'r ninja now
Premium User
Joined
Aug 5, 2008
Messages
1,644
Solutions
1
Reaction score
99
I have been searching, all forums. Everything. I guess im just tired in my eye.

I need a script/action when a player use a pick on a stone, it removes. Maybe adding several poffs before removing? Like using pick several times 1-5 and then remove the stone?

Well, anyone have a script like that? I would appreciate it!


rep+!
 
ololool thais dragon lair?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if((itemEx.uid <= 65535 or itemEx.actionid > 0) and isInArray({354, 355}, itemEx.itemid)) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
	elseif(itemEx.itemid == 7200) then
		doTransformItem(itemEx.uid, 7236)
		doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
	elseif(itemEx.itemid == 1304 and toPosition.x == 32356 and toPosition.y == 32074 and toPosition.z == 10) then
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		if(math.random(5) == 1) then
			doRemoveItem(itemEx.uid)
		end
	else
		return false
	end
	return true
end
 
ololool thais dragon lair?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if((itemEx.uid <= 65535 or itemEx.actionid > 0) and isInArray({354, 355}, itemEx.itemid)) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
	elseif(itemEx.itemid == 7200) then
		doTransformItem(itemEx.uid, 7236)
		doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
	elseif(itemEx.itemid == 1304 and toPosition.x == 32356 and toPosition.y == 32074 and toPosition.z == 10) then
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		if(math.random(5) == 1) then
			doRemoveItem(itemEx.uid)
		end
	else
		return false
	end
	return true
end

Haha, yeap. Naginata quest.
 
That would be awesome.
? easy
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if((itemEx.uid <= 65535 or itemEx.actionid > 0) and isInArray({354, 355}, itemEx.itemid)) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
	elseif(itemEx.itemid == 7200) then
		doTransformItem(itemEx.uid, 7236)
		doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
	elseif(itemEx.itemid == 1304 and toPosition.x == 32356 and toPosition.y == 32074 and toPosition.z == 10) then
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		if(math.random(5) == 1) then
			doRemoveItem(itemEx.uid)
			[B][COLOR="Red"]addEvent(doCreateItem, 5 * 60 * 1000, 1304, 1, {x=32356, y=32074, z=10})[/COLOR][/B]
		end
	else
		return false
	end
	return true
end
 
Back
Top