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

Action Banshee Quest Scripts

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
I decided to post this script because some people are lazy.
I will not post screenshoot or tutorial How install, make it yourself.
Maybe I post screenshoots of Installation later.

In Actions:
XML:
	<!-- Banshe Quest -->
	<action uniqueid="8001" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action uniqueid="8002" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action uniqueid="8003" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action uniqueid="8004" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action uniqueid="8005" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action uniqueid="8006" event="script" value="BansheeQuest/Rewards.lua"/> 
	<action actionid="18007" event="script" value="BansheeQuest/Entrancewall1.lua"/>
	<action actionid="18008" event="script" value="BansheeQuest/Entrancewall2.lua"/>
	<action uniqueid="42998" event="script" value="BansheeQuest/Campfire1.lua"/> 
	<action uniqueid="42997" event="script" value="BansheeQuest/Campfire2.lua"/> 
	<action uniqueid="42996" event="script" value="BansheeQuest/Campfire3.lua"/> 
	<action uniqueid="42995" event="script" value="BansheeQuest/Campfire4.lua"/>
	<action uniqueid="42994" event="script" value="BansheeQuest/Campfire5.lua"/>
	<action uniqueid="42993" event="script" value="BansheeQuest/Campfire6.lua"/>
	<action uniqueid="42992" event="script" value="BansheeQuest/seal6lever1.lua"/>
	<action uniqueid="42991" event="script" value="BansheeQuest/seal6lever2.lua"/>
	<action uniqueid="42990" event="script" value="BansheeQuest/seal6lever3.lua"/>
	<action uniqueid="42989" event="script" value="BansheeQuest/seal6lever4.lua"/>
	<action uniqueid="42988" event="script" value="BansheeQuest/seal6lever5.lua"/>
	<action actionid="32990" event="script" value="BansheeQuest/LastRoom.lua"/>

campfire1
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32309, y=31975, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42998 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42998 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

campfire2
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32309, y=31976, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42997 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42997 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

campfire3
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32311, y=31975, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42996 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42996 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

campfire4
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32311, y=31976, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42995 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42995 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

campfire5
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32313, y=31975, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42994 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42994 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

campfire6
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
gatepos = {x=32313, y=31976, z=13, stackpos=1}
getgate = getThingfromPos(gatepos)

if item.uid == 42993 and item.itemid == 1945 and getgate.itemid == 1423 then
doRemoveItem(getgate.uid,1)
doCreateItem(1421,1,gatepos)
doTransformItem(item.uid,1946)

elseif item.uid == 42993 and item.itemid == 1946 and getgate.itemid == 1421 then
doRemoveItem(getgate.uid,1)
doCreateItem(1423,1,gatepos)
doTransformItem(item.uid,1945)
end
return 1
end

Entrancewall1
Lua:
local f, e = function(p)
	doRelocate({x=32259, y=31890, z=10}, {x=32259, y=31892, z=10})
	doRelocate({x=32259, y=31891, z=10}, {x=32259, y=31892, z=10})
	doCreateItem(1498, 1, {x=32259, y=31890, z=10})
	doCreateItem(1498, 1, {x=32259, y=31891, z=10})
	doTransformItem(getTileItemById(p, 1946).uid, 1945)
end, 0
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		doRemoveItem(getThingfromPos({x=32259, y=31891, z=10, stackpos=254}).uid)
		e = addEvent(f, 10000, fromPosition)
		doTransformItem(item.uid, 1946)

end
	if item.itemid == 1946 then
doCreateItem(1498, 1, {x=32259, y=31891, z=10})
		stopEvent(e)
		e = 0
		f(fromPosition)
	end
	return true
end

Entrancewall2
Lua:
function onUse(cid, item, frompos, item2, topos)

wall1 = {x=32259, y=31890, z=10, stackpos=1}
getwall1 = getThingfromPos(wall1)

if item.itemid == 1945 and getwall1.itemid == 1498 then
doRemoveItem(getwall1.uid,1)
doTransformItem(item.uid,1946)
else
doTransformItem(item.uid,1946)
end

if item.itemid == 1946 and (getwall1.itemid == 1498) == false then
doCreateItem(1498,1,wall1)
doTransformItem(item.uid,1945)
else
doTransformItem(item.uid,1946)
end
return true
end

LastRoom
Lua:
local storage = 32977

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getCreatureStorage(cid, storage) < 0 then
		if getCreaturePosition(cid).y < toPosition.y then
			doTeleportThing(cid, { x = toPosition.x, y = toPosition.y + 1, z = toPosition.z }, true)
			doSendMagicEffect(getCreaturePosition(cid),10)
			setPlayerStorageValue(cid, 32977, 1)

		else
			doTeleportThing(cid, {x = 32223, y = 31889, z = 14}, false)
			doSendMagicEffect(getCreaturePosition(cid),10)
		end
	
	elseif getCreatureStorage(cid, storage) > 0 then
			if getCreaturePosition(cid).y < toPosition.y then
			doTeleportThing(cid, {x = 32223, y = 31889, z = 14}, false)
			doSendMagicEffect(getCreaturePosition(cid),10)
		end


 end
	return true
end

Rewards
Lua:
function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 8001 then
   		queststatus = getPlayerStorageValue(cid,8001)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Boots of Haste.")
   			doPlayerAddItem(cid,2195,1)
   			setPlayerStorageValue(cid,8001,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 8002 then
   		queststatus = getPlayerStorageValue(cid,8002)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Giant Sword.")
   			doPlayerAddItem(cid,2393,1)
   			setPlayerStorageValue(cid,8002,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 8003 then
   		queststatus = getPlayerStorageValue(cid,8003)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Tower Shield.")
   			doPlayerAddItem(cid,2528,1)
   			setPlayerStorageValue(cid,8003,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 8004 then
   		queststatus = getPlayerStorageValue(cid,8004)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Stealth Ring.")
   			doPlayerAddItem(cid,2165,1)
   			setPlayerStorageValue(cid,8004,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 8005 then
   		queststatus = getPlayerStorageValue(cid,8005)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Stone Skin Amulet.")
   			doPlayerAddItem(cid,2197,1)
   			setPlayerStorageValue(cid,8005,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 8006 then
   		queststatus = getPlayerStorageValue(cid,8006)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Crystal Coin.")
   			doPlayerAddItem(cid,2160,1)
   			setPlayerStorageValue(cid,8006,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end

seal6lever1
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == 42992 and item.itemid == 1946 and getPlayerStorageValue(cid,42992) == -1 then
doTransformItem(item.uid,1945)
setPlayerStorageValue(cid,42992,1)
doSendMagicEffect({x=32217, y=31845, z=14}, 11)
doSendMagicEffect({x=32218, y=31845, z=14}, 11)
doSendMagicEffect({x=32219, y=31845, z=14}, 11)
doSendMagicEffect({x=32220, y=31845, z=14}, 11)
doSendMagicEffect({x=32217, y=31843, z=14}, 11)
doSendMagicEffect({x=32218, y=31842, z=14}, 11)
doSendMagicEffect({x=32219, y=31841, z=14}, 11)

elseif item.uid == 42992 and item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
return 1
end

seal6lever2
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == 42991 and item.itemid == 1946 and getPlayerStorageValue(cid,42992) == 1 and getPlayerStorageValue(cid,42991) == -1 then
doTransformItem(item.uid,1945)
setPlayerStorageValue(cid,42991,1)
doSendMagicEffect({x=32217, y=31844, z=14}, 11)
doSendMagicEffect({x=32218, y=31844, z=14}, 11)
doSendMagicEffect({x=32219, y=31843, z=14}, 11)
doSendMagicEffect({x=32220, y=31845, z=14}, 11)
doSendMagicEffect({x=32219, y=31845, z=14}, 11)

elseif item.uid == 42991 and item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
return 1
end

seal6lever3
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == 42990 and item.itemid == 1946 and getPlayerStorageValue(cid,42991) == 1 and getPlayerStorageValue(cid,42990) == -1 then
doTransformItem(item.uid,1945)
setPlayerStorageValue(cid,42990,1)
doSendMagicEffect({x=32217, y=31842, z=14}, 11)
doSendMagicEffect({x=32219, y=31843, z=14}, 11)
doSendMagicEffect({x=32219, y=31845, z=14}, 11)
doSendMagicEffect({x=32218, y=31844, z=14}, 11)
doSendMagicEffect({x=32217, y=31844, z=14}, 11)
doSendMagicEffect({x=32217, y=31845, z=14}, 11)

elseif item.uid == 42990 and item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
return 1
end

seal6lever4
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == 42989 and item.itemid == 1946 and getPlayerStorageValue(cid,42990) == 1 and getPlayerStorageValue(cid,42989) == -1 then
doTransformItem(item.uid,1945)
setPlayerStorageValue(cid,42989,1)
doSendMagicEffect({x=32217, y=31845, z=14}, 11)
doSendMagicEffect({x=32218, y=31846, z=14}, 11)
doSendMagicEffect({x=32218, y=31844, z=14}, 11)
doSendMagicEffect({x=32219, y=31845, z=14}, 11)
doSendMagicEffect({x=32220, y=31846, z=14}, 11)

elseif item.uid == 42989 and item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
return 1
end

seal6lever5
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == 42988 and item.itemid == 1946 and getPlayerStorageValue(cid,42989) == 1 and getPlayerStorageValue(cid,42988) == -1 then
doTransformItem(item.uid,1945)
setPlayerStorageValue(cid,42988,1)
doSendMagicEffect({x=32219, y=31841, z=14}, 11)
doSendMagicEffect({x=32219, y=31842, z=14}, 11)
doSendMagicEffect({x=32219, y=31846, z=14}, 11)
doSendMagicEffect({x=32217, y=31843, z=14}, 11)
doSendMagicEffect({x=32217, y=31844, z=14}, 11)
doSendMagicEffect({x=32217, y=31845, z=14}, 11)
doSendMagicEffect({x=32218, y=31843, z=14}, 11)
doSendMagicEffect({x=32218, y=31845, z=14}, 11)

elseif item.uid == 42988 and item.itemid == 1945 then
doTransformItem(item.uid,1946)
end
return 1
end
 
Last edited:
Movements
XML:
        <!-- Banshee Quest -->
	<movevent type="StepIn" actionid="12998" event="script" value="BansheeQuest/1walkback.lua"/>
	<movevent type="StepIn" actionid="12988" event="script" value="BansheeQuest/2walkback.lua"/>
	<movevent type="StepIn" actionid="32998" event="script" value="BansheeQuest/seal1.lua"/>
	<movevent type="StepIn" actionid="32997" event="script" value="BansheeQuest/seal2.lua"/>
	<movevent type="StepIn" actionid="12987" event="script" value="BansheeQuest/seal3back.lua"/>
	<movevent type="StepIn" actionid="12986" event="script" value="BansheeQuest/seal3go.lua"/>
	<movevent type="StepIn" actionid="32996" event="script" value="BansheeQuest/seal3.lua"/>
        <movevent type="AddItem" tileitem="1" uniqueid="12985" event="script" value="BansheeQuest/seal4blood.lua" />
	<movevent type="StepIn" actionid="32995" event="script" value="BansheeQuest/seal4.lua"/>
	<movevent type="StepIn" actionid="12984" event="script" value="BansheeQuest/seal5go.lua"/>
	<movevent type="StepIn" actionid="32994" event="script" value="BansheeQuest/seal5.lua"/>
	<movevent type="StepIn" actionid="12983" event="script" value="BansheeQuest/seal6go.lua"/>
	<movevent type="StepIn" actionid="32993" event="script" value="BansheeQuest/seal6.lua"/>

1walkback
Lua:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doTeleportThing(cid, {x=32266, y=31867, z=12})
		end
end

2walkback
Lua:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doTeleportThing(cid, {x=32266, y=31920, z=12})
		end
end

seal1
Lua:
function onStepIn(cid, item, pos, fromPos)

local config = {
	ghost1Name = "Ghost", 
	ghost1CreatePos = {x=32275, y=31905, z=13},

	ghost2Name = "Ghost", 
	ghost2CreatePos = {x=32274, y=31903, z=13},

	dsName = "Demon Skeleton", 
	dsCreatePos = {x=32274, y=31903, z=13}
}
	if isPlayer(cid) then
		if getPlayerStorageValue(cid,32998) == -1 then
			doTeleportThing(cid, {x=32266, y=31849, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
			doCreateMonster(config.dsName, config.dsCreatePos)
			doCreateMonster(config.ghost2Name, config.ghost2CreatePos)
			doCreateMonster(config.ghost1Name, config.ghost1CreatePos)
   			setPlayerStorageValue(cid,32998,1)
		else
			doTeleportThing(cid, {x=32277, y=31903, z=13})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
	end
end

seal2
Lua:
function onStepIn(cid, item, pos, fromPos)

	food1 = {x=32310, y=31975, z=13, stackpos=1}
	food2 = {x=32310, y=31976, z=13, stackpos=1}
	food3 = {x=32312, y=31975, z=13, stackpos=1}
	food4 = {x=32312, y=31976, z=13, stackpos=1}
	
	food5 = {x=32314, y=31975, z=13, stackpos=1}
	food6 = {x=32314, y=31976, z=13, stackpos=1}

	getfood1 = getThingfromPos(food1)
	getfood2 = getThingfromPos(food2)
	getfood3 = getThingfromPos(food3)
	getfood4 = getThingfromPos(food4)
	
	getfood5 = getThingfromPos(food5)
	getfood6 = getThingfromPos(food6)

	if item.itemid == 1397 and getPlayerStorageValue(cid,32997) == -1 and getfood1.itemid == 1946 and getfood2.itemid == 1946 and getfood3.itemid == 1946 and getfood4.itemid == 1946 and getfood5.itemid == 1945 and getfood6.itemid == 1945 then
			doTeleportThing(cid, {x=32261, y=31856, z=15})
			doSendMagicEffect({x=32261, y=31856, z=15}, CONST_ME_TELEPORT)
   			setPlayerStorageValue(cid,32997,1)

	else
	doTeleportThing(cid, {x=32311, y=31977, z=13})
	doSendMagicEffect({x=32311, y=31977, z=13}, CONST_ME_TELEPORT)

	end
	return 0
end

seal3
Lua:
function onStepIn(cid, item, pos, fromPos)

	if isPlayer(cid) then
		if getPlayerStorageValue(cid,32996) == -1 then
			doTeleportThing(cid, {x=32268, y=31856, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
   			setPlayerStorageValue(cid,32996,1)
		else
			doTeleportThing(cid, {x=32186, y=31938, z=14})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
	end
end

seal3back
Lua:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doTeleportThing(cid, {x=32186, y=31938, z=14})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
end

seal3go
Lua:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doSendMagicEffect(getCreaturePosition(cid), 14)
		end
end

seal4
Lua:
function onStepIn(cid, item, pos, fromPos)

	food2 = {x=32243, y=31892, z=14, stackpos=1}
	getfood2 = getThingfromPos(food2)

	if isPlayer(cid) then
		if getPlayerStorageValue(cid,32995) == -1 and getfood2.itemid == 2016 then
			doTeleportThing(cid, {x=32261, y=31849, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
                        doRemoveItem(getfood2.uid,1)
   			setPlayerStorageValue(cid,32995,1)
		else
			doTeleportThing(cid, {x=32245, y=31891, z=14})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
	end
end

seal4blood
Lua:
function onAddItem(moveitem, tileitem, pos)

	if moveitem.itemid == 2016 then
			doSendMagicEffect({x=32243, y=31891, z=14}, 0)
			doSendMagicEffect({x=32242, y=31891, z=14}, 0)
			doSendMagicEffect({x=32242, y=31892, z=14}, 0)
			doSendMagicEffect({x=32242, y=31893, z=14}, 0)
			doSendMagicEffect({x=32243, y=31893, z=14}, 0)
end
end

seal5
Lua:
function onStepIn(cid, item, pos, fromPos)

	if isPlayer(cid) then
		if getPlayerStorageValue(cid,42988) == 1 and getPlayerStorageValue(cid,32994) == -1 then
			doTeleportThing(cid, {x=32271, y=31857, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
   			setPlayerStorageValue(cid,32994,1)
		else
			doTeleportThing(cid, {x=32216, y=31846, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
	end
end

seal5go
Lua:
function onStepIn(cid, item, pos, fromPos)

local config = {
	ghost1Name = "Warlock", 
	ghost1CreatePos = {x=32213, y=31841, z=15},

	ghost2Name = "Warlock", 
	ghost2CreatePos = {x=32218, y=31841, z=15}
}
	if isPlayer(cid) then
		if getPlayerStorageValue(cid,12984) == -1 then
			doCreateMonster(config.ghost2Name, config.ghost2CreatePos)
			doCreateMonster(config.ghost1Name, config.ghost1CreatePos)
   			setPlayerStorageValue(cid,12984,1)
		else
		doSendMagicEffect(getCreaturePosition(cid), 14)
		end
	end
end

seal6
Lua:
function onStepIn(cid, item, pos, fromPos)

	if isPlayer(cid) and getPlayerStorageValue(cid,32993) == -1 then
			doTeleportThing(cid, {x=32272, y=31849, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
   			setPlayerStorageValue(cid,32993,1)
		else
			doTeleportThing(cid, {x=32171, y=31855, z=15})
                        doSendMagicEffect(getCreaturePosition(cid), 10)
		end
	end

seal6go
Lua:
function onStepIn(cid, item, pos, fromPos)
 
	food1 = {x=32173, y=31871, z=15}
	food2 = {x=32180, y=31871, z=15}

 
if getTileItemById(food1, 2143).itemid >= 1 and getTileItemById(food2, 2144).itemid >= 1 then
		doTeleportThing(cid, {x=32177, y=31863, z=15})
                doSendMagicEffect(getCreaturePosition(cid), 10)
                doRemoveItem(getTileItemById(food1, 2143).uid,1)
                doRemoveItem(getTileItemById(food2, 2144).uid,1)
		else
		doTeleportThing(cid, {x=32176, y=31870, z=15})
                doSendMagicEffect(getCreaturePosition(cid), 10)
		end
		end
 
Last edited:
nice, so this is 100% rl tibias ?

should post a screen what ids are needed to be added on walls,tiles,levers. :L

Goodluck and thanks for sharing.
 
Code:
function onAddItem(moveitem, tileitem, pos)
 
	if moveitem.itemid == 2016 then
			doSendMagicEffect({x=32243, y=31891, z=14}, 0)
			doSendMagicEffect({x=32242, y=31891, z=14}, 0)
			doSendMagicEffect({x=32242, y=31892, z=14}, 0)
			doSendMagicEffect({x=32242, y=31893, z=14}, 0)
			doSendMagicEffect({x=32243, y=31893, z=14}, 0)
end
end

Its wrong. 2016 is pool of water. You should use item type here.
 
It is working 100%.
All script are working and I tested all. They must be simplified.

I want to make a full quest log to this quest but i'm busy with college.
----
rep+
 
The entrancemagicwall2, not working the lever the lever goes for the id back to 1946 but not 1945 it is impossible to lock open again the magic wall.
 
All Campfires in one script, by me:


Code:
function onUse(cid, item, frompos, item2, topos)

-- By Seminari :)

 local tabelka = {
                    [1] = {A_item = 1837, OGNISKO = {x=32309, y=31975, z=13, stackpos=1}}, 
					[2] = {A_item = 1838, OGNISKO = {x=32309, y=31976, z=13, stackpos=1}}, 
					[3] = {A_item = 1839, OGNISKO = {x=32311, y=31975, z=13, stackpos=1}}, 
					[4] = {A_item = 1840, OGNISKO = {x=32311, y=31976, z=13, stackpos=1}}, 
					[5] = {A_item = 1841, OGNISKO = {x=32313, y=31975, z=13, stackpos=1}}, 
					[6] = {A_item = 1842, OGNISKO = {x=32313, y=31976, z=13, stackpos=1}}, 
					
				}

    
for i=1, #tabelka do		
    if item.itemid == 1945 and item.actionid == tabelka[i].A_item and getThingfromPos(tabelka[i].OGNISKO).itemid == 1423 then
		doRemoveItem(getThingfromPos(tabelka[i].OGNISKO).uid,1)
		doTransformItem(item.uid,item.itemid+1)
		doCreateItem(1421, 1, tabelka[i].OGNISKO)
	elseif item.itemid == 1946 and item.actionid == tabelka[i].A_item and getThingfromPos(tabelka[i].OGNISKO).itemid == 1421 then
		doRemoveItem(getThingfromPos(tabelka[i].OGNISKO).uid,1)
		doTransformItem(item.uid,item.itemid-1)
		doCreateItem(1423, 1, tabelka[i].OGNISKO)
	else
		doPlayerSendCancel(cid,"Sorry, not possible.")
	end
end
	return true
end
 
All Campfires in one script, by me:


Code:
function onUse(cid, item, frompos, item2, topos)

-- By Seminari :)

 local tabelka = {
                    [1] = {A_item = 1837, OGNISKO = {x=32309, y=31975, z=13, stackpos=1}}, 
					[2] = {A_item = 1838, OGNISKO = {x=32309, y=31976, z=13, stackpos=1}}, 
					[3] = {A_item = 1839, OGNISKO = {x=32311, y=31975, z=13, stackpos=1}}, 
					[4] = {A_item = 1840, OGNISKO = {x=32311, y=31976, z=13, stackpos=1}}, 
					[5] = {A_item = 1841, OGNISKO = {x=32313, y=31975, z=13, stackpos=1}}, 
					[6] = {A_item = 1842, OGNISKO = {x=32313, y=31976, z=13, stackpos=1}}, 
					
				}

    
for i=1, #tabelka do		
    if item.itemid == 1945 and item.actionid == tabelka[i].A_item and getThingfromPos(tabelka[i].OGNISKO).itemid == 1423 then
		doRemoveItem(getThingfromPos(tabelka[i].OGNISKO).uid,1)
		doTransformItem(item.uid,item.itemid+1)
		doCreateItem(1421, 1, tabelka[i].OGNISKO)
	elseif item.itemid == 1946 and item.actionid == tabelka[i].A_item and getThingfromPos(tabelka[i].OGNISKO).itemid == 1421 then
		doRemoveItem(getThingfromPos(tabelka[i].OGNISKO).uid,1)
		doTransformItem(item.uid,item.itemid-1)
		doCreateItem(1423, 1, tabelka[i].OGNISKO)
	else
		doPlayerSendCancel(cid,"Sorry, not possible.")
	end
end
	return true
end

I'll test, if it works 100% I will add that
 
Back
Top