• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Trying to make my inquisition legit

Phantom22

The Chosen
Joined
Dec 20, 2009
Messages
334
Reaction score
2
ok so for all of you that know in real tibia you kill the demon guy and move his dust to a button then pull a lever and poof the wall opens and you can step through the portal.


If somebody could do me a favor and help me out with writing this script id really appreciate it.

a little more informations
im using latest tfs 3.6+ forgotten
and i need to make sure the wall returns back to normal after so many seconds.

Thank you in advance!
 
But i want mine to work like that :D im all about the details! i dwell on everything last night i tryed to go to bed 8 times 10 minutes each time lying in bed trying to figure out this stuff was up till 8 am arghhh...


just a script that put item xxx on tile xx then pull lever xx and wall xx disapears for like 3 minutes then xx wall apears again.
 
Just created this quickly, if you can test it and let me know what errors you get. Everything labeled with an "x" needs to be changed.
LUA:
local config = {
	item = xxxx,
	eventTime = x * 60 * 1000,
	tile =
	{
		{x = xxx, y = xxx, z = x},
	},
	wall =
	{
		{x = xxx, y = xxx, z = x},
	}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		doTransformItem(item.uid, item.itemid - 1)
		return true
	end

	if(item.itemid ~= 1945) then
		return true
	end

	local itemFound, wallFound = getThingFromPos(config.tile), getThingFromPos(config.wall)
	if(itemFound == item) then
		doRemoveItem(wallFound.uid)
		addEvent(doCreateItem, eventTime, config.wall, 1, wallFound.itemid)
	end

	doTransformItem(item.uid, item.itemid + 1)
	return true
end
 
[05/02/2010 03:28:04] [Error - MoveEvents Interface]
[05/02/2010 03:28:04] data/movements/scripts/tpinq.lua:onStepIn
[05/02/2010 03:28:04] Description:
[05/02/2010 03:28:04] data/movements/scripts/tpinq.lua:52: attempt to call global 'doCreatureSayWithDelay' (a nil value)
[05/02/2010 03:28:04] stack traceback:
[05/02/2010 03:28:04] data/movements/scripts/tpinq.lua:52: in function <data/movements/scripts/tpinq.lua:31>
[05/02/2010 03:30:53] God Vyses has logged out.
[05/02/2010 03:30:53] God Vyses has logged in.
[05/02/2010 03:32:13] [Warning - Actions::registerEvent] Duplicate registered item id: 1946

05/02/2010 03:26:38] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/inq/Testwall.lua)


Thats the error im getting i probabbly did it wrong i did it in actions like this

<action itemid="1946" script="inq/Testwall.lua" />

:\ didn't work, but im not giving up hope sir! thank you for your effort! maybe we can get this fixed up :)
 
cause when you make creaturesay it is executed on fromPos(well, now I know that I can execute doCreatureSay on any pos but whatever)
I used this function to send text after teleporting :D

also:
Code:
[05/02/2010 03:28:04] Description:
[05/02/2010 03:28:04] data/movements/scripts/tpinq.lua:52: attempt to call global 'doCreatureSayWithDelay' (a nil value)
 
alittle confusion here the first part of the erorr is from my main room portals + all the other portals sorry about that :\
 
Back
Top