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

Lua Script of VIAL OF OIL!

skyzors

New Member
Joined
Jul 6, 2012
Messages
21
Reaction score
0
Hello Otlanders!

I have a server, and i am adding.. poi full, but i dont have vial of oil to make entrace whit switches.


if someone can help...


att
Skyzors
 
The script is not mine:

Lua:
local bridgepos = {x=358, y=450, z=9, stackpos=0} -- Position of the bridge tile
local splash = {x=352, y=451, z=9, stackpos=1} -- Position of the liquid pool
 
local leverUID = 3040 -- Unique ID of the lever
local liquidId = 2016 -- Item ID of the liquid pool
local liquidType = 11 -- Subtype of the liquid pool
 
function onUse(cid, item, frompos, item2, topos)
 
local bridge = getThingfromPos(bridgepos) 
local liquid = getThingfromPos(splash)
 
	if item.uid == leverUID and item.itemid == 1945 and liquid.itemid == liquidId and liquid.type == liquidType and bridge.itemid == 493 then
		doTransformItem(bridge.uid, 5770)
		doSendMagicEffect(splash, CONST_ME_MAGIC_RED)
		doTransformItem(item.uid, 1946)
 
	elseif item.uid == leverUID and item.itemid == 1946 and liquid.itemid == 2016 and liquid.type == 11 and bridge.itemid == 5770 then
		doTransformItem(bridge.uid, 493)
		doTransformItem(item.uid, 1945)
	else
		doCreatureSay(cid, "The lever is creaking and rusty.", TALKTYPE_ORANGE_1)
	end
 
	return TRUE
end
 
Last edited:
The script is not mine:

Lua:
local bridgepos = {x=358, y=450, z=9, stackpos=0} -- Position of the bridge tile
local splash = {x=352, y=451, z=9, stackpos=1} -- Position of the liquid pool
 
local leverUID = 3040 -- Unique ID of the lever
local liquidId = 2016 -- Item ID of the liquid pool
local liquidType = 11 -- Subtype of the liquid pool
 
function onUse(cid, item, frompos, item2, topos)
 
local bridge = getThingfromPos(bridgepos) 
local liquid = getThingfromPos(splash)
 
	if item.uid == leverUID and item.itemid == 1945 and liquid.itemid == liquidId and liquid.type == liquidType and bridge.itemid == 493 then
		doTransformItem(bridge.uid, 5770)
		doSendMagicEffect(splash, CONST_ME_MAGIC_RED)
		doTransformItem(item.uid, 1946)
 
	elseif item.uid == leverUID and item.itemid == 1946 and liquid.itemid == 2016 and liquid.type == 11 and bridge.itemid == 5770 then
		doTransformItem(bridge.uid, 493)
		doTransformItem(item.uid, 1945)
	else
		doCreatureSay(cid, "The lever is creaking and rusty.", TALKTYPE_ORANGE_1)
	end
 
	return TRUE
end


ohh sry i have this script i need script of vial of oil bcuz i dont have npc that sell it and dont have the iten on my server
 
ohh sry i have this script i need script of vial of oil bcuz i dont have npc that sell it and dont have the iten on my server

Lua:
doPlayerAddItem(cid, 2006, 11)
should work
If you want to make it sellable use
Lua:
<parameter key="shop_buyable" value="vial of oil,2006,20" />
for example.
 
Back
Top