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

Oil Script (Pits Of inferno)

Kojiiro

Nobody cares. Do yourself.
Joined
May 10, 2010
Messages
534
Reaction score
9
Location
Brazil
Hello All.

I need the script of the pits of hell that you must use a vial of oil to
able to pull the lever and floor create a pro player can pass.


Will someone have this script?

Hugs Kojiiro.:thumbup:
 
Ai Amigao eu uso no TFS Que possuo Global 0.4_DEV

function onUse(cid, item, frompos, item2, topos)
wall = {x=408, y=1389, z=10, stackpos=0}
local getwall = getThingfromPos(wall)
if item.uid == 10203 and item.itemid == 493 then
doTransformItem(item.uid,item.itemid+1)
doTransformItem(getwall.uid,5770)
elseif item.uid == 10203 and item.itemid == 1946 then


doTransformItem(item.uid,item.itemid-1)
doTransformItem(getwall.uid,493)
bplayer = {x=408, y=1389, z=10, stackpos=253}
bplayer2 = getThingfromPos(bplayer)
if isCreature(bplayer2.uid) == TRUE then
doMoveCreature(bplayer2.uid,WEST)
end
end
return 1
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local oil = getTileItemById(fromPosition, 2016)
	if oil.uid > 0 and oil.type == 11 then
		if item.itemid == 1945 then
			doTransformItem(getTileItemById({x=408, y=1389, z=10}, 493).uid, 5770)
		else
			doRelocate({x=408, y=1389, z=10}, {x=407, y=1389, z=10})
			doTransformItem(getTileItemById({x=408, y=1389, z=10}, 5770).uid, 493)
		end
		doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
	else
		doCreatureSay(cid, 'The lever is creaking and rusty.', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
Back
Top