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

[HELP]Banshee Quest Blood Tile (rep++)

Nottinghster

Tibia World RPG Developer
Joined
Oct 24, 2007
Messages
1,619
Solutions
6
Reaction score
539
Location
Brazil - Rio de Janeiro
GitHub
Nottinghster
Hello Guys!
Could someone help me with this script?
What is wrong with the script?
Please, read the text above!

Fourth Seal: The Seal of Sacrifice
Use the vial and spill the blood between the two stones (on the tile that looks like the depot tiles), you should see a small animation on the stone tables around the tile. Go through the flame and back through the teleporter. Fourth Seal is done.


4th_seal.PNG


Code:
--Script by Nottinghster
function onStepIn(cid, item, pos)

	splash = {x=32243, y=31892, z=14}
	newpos = {x=32247, y=31895, z=14}

	getsplash = getThingfromPos(2016,splash)
	
	if item.actionid == 1337 and getsplash.type == 2 then
		doSendMagicEffect(splash, 8)
		setPlayerStorageValue(cid, 20004)
		doTeleportThing(cid,newpos)
	else
	end
	return TRUE
end
 
Last edited:
i don't know if this will work since i made this in like 8.1 or something(it worked then), so it's kinda old.. just added local cfg instead of 10000 local and replaced return 1 with return TRUE

movements/movements.xml:
Code:
	<movevent type="AddItem" tileitem="1" actionid="151" event="script" value="banshee quest/blood seal.lua"/>
	<movevent type="StepIn" actionid="20004" event="script" value="carlin/banshee quest/blood seal flame.lua"/>
i think the actionid should be on the "depot" tile xD I'm not sure though

movements/scripts/blood seal.lua
LUA:
function onAddItem(moveitem, tileitem, pos)

local cfg = {
		newpos = {x=32261,y=31849,z=15,stackpos=253},
		nweffect = {x=pos.x-1, y=pos.y-1, z=pos.z,stackpos=1},
		sweffect = {x=pos.x-1, y=pos.y+1, z=pos.z,stackpos=1},
		seffect = {x=pos.x, y=pos.y-1, z=pos.z,stackpos=1},
		neffect = {x=pos.x, y=pos.y+1, z=pos.z,stackpos=1},
		weffect = {x=pos.x-1, y=pos.y, z=pos.z,stackpos=1},
		rockpos = {x=32242,y=31892,z=14,stackpos=1},
		getrock = getThingfromPos(rockpos),
		}

	if moveitem.itemid == 2016 and cfg.getrock.itemid == 1304 then
		doRemoveItem(cfg.getrock.uid,1)
		doCreateItem(1355,cfg.rockpos)
		doSendMagicEffect(cfg.nweffect,0)
		doSendMagicEffect(cfg.sweffect,0)
		doSendMagicEffect(cfg.neffect,0)
		doSendMagicEffect(cfg.seffect,0)
		doSendMagicEffect(cfg.weffect,0)
	end
	return TRUE
end

movements/scripts/blood seal flame.lua
LUA:
function onStepIn(cid, item, position, fromPosition)

local cfg = {
		newpos = {x=32261,y=31849,z=15,stackpos=253},
		bloodpos = {x=position.x-7, y=position.y, z=position.z,stackpos=1},
		rockpos = {x=position.x-8, y=position.y, z=position.z,stackpos=1},
		getblood = getThingfromPos(bloodpos),
		getrock = getThingfromPos(rockpos),
		storage = 20004,
		}

	if item.actionid == 152 and getblood.itemid == 2016 then
		doTeleportThing(cid, newpos)
		doRemoveItem(cfg.getrock.uid,1)
		doCreateItem(1304,cfg.rockpos)
		doSendMagicEffect(cfg.newpos,10)
		doSendMagicEffect(cfg.bloodpos,13)
		doRemoveItem(cfg.getblood.uid,1)
		setPlayerStorageValue(cid,cfg.storage,1)
	end
return TRUE
end
put the blood on the "depot" tile

EDIT; I kinda sucked on scripting then, so i just tested randomly until it worked xD
 
Last edited:
Back
Top