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

[How-to] Quests

Are you using the correct chest boxes?
 
I got this error : (

[08/03/2012 15:10:56] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[08/03/2012 15:10:56] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
[08/03/2012 15:10:56] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
 
I got this error : (

[08/03/2012 15:10:56] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[08/03/2012 15:10:56] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
[08/03/2012 15:10:56] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['

Post the script...
 
I fixed it I just had to split them up and make two for example,

local specialQuests = {
[2001] = 30015 --Annihilator,
}

local specialQuests = {
[2002] = 30020 --Annihilator1,
}
 
You don't have to do that, could have just done this:

Lua:
local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --Annihilator1
}
 
help! when i set a unique id like 1001 for chest and 2000 for action it gets out like marble floor... which is 1001 id.. and when i try setting all ids the same in unique and 1 2000 it just opens chest and shows me 1 item inside it help!
 
How would I add multiple storages for 1 quest in sys lua ? For example, quest1 = 2001 and storage #s 10000,10006 (2 total) //////quest2 = 2002 and storages 10010-10020 (11 total)//////quest3 = 2003 and storage 10030 (1 total).
 
Geez, I'm not even sure if that's possible. That's a pretty good question too.
You should try the support on the LUA board or the main support board, maybe someone might know.
 
Ok thanks Ill try there.
So instead of doing 1 quest with multi storages, is this when I would use 1 quest with missions to get the same effect?
Is this how missions work? Still learning the lua stuff so sorry if its a dumb question.
:)
 
Somebody please tell me if I'm doing something wrong, cuz I don't think I am.
In Remere's mapeditor I right click on the chest.
Put actionID 2000 and uniqueID 2100 (not used by anything else).
I click on the black square and select a backpack.
I right click on the backpack and select Edit Item.
Inside the backpack I click on the black squares and add a scroll with text in it and a key that has actionID 2100 (for a locked door that is near the chest).
In-Game when I open the chest it reacts like a real quest the only problem is that I only get an empty backpack... I've also tried to put the items outside the backpack and it seems like I'm only getting the item that is in the first black square.
I'm using Tfs 8.60. Anybody know what is causing the problem?.. Thx
 
I am using crying damson 8.54 NO chests at all work. I tried with action id 0 and with action id 2000, is there anything i can do to fix the quests??
 
You don't have to do that, could have just done this:

Lua:
local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --Annihilator1
}



i add

local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --armor quest
[2003] = 30030 --weapons quest

}
and i get this eror
I got this error : (

[08/03/2012 15:10:56] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
[08/03/2012 15:10:56] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/system.lua)
[08/03/2012 15:10:56] data/actions/scripts/quests/system.lua:3: '}' expected (to close '{' at line 1) near '['
 
You need to add a comma after each thing in the table except for the last one.

Lua:
local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --armor quest
[2003] = 30030 --weapons quest

}


to


Lua:
local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --armor quest,
[2003] = 30030 --weapons quest

}
 
Lua:
local specialQuests = {
[2001] = 30015 --Annihilator,
[2002] = 30020 --armor quest,
[2003] = 30030 --weapons quest

}
after the numbers (the value), not after the comment
 
How to make a questbox which can only be opened by a certain vocation?
 
Back
Top