FIRST OF ALL: This is for 0.3/0.4!
A tutorial on quests is probably long missing, so here we go, let's make one!
All of this will be based on the quest system that is compatible with Remere's Map-Editor, so there will be no new scripts that you need to add.
Simple Quest
This is just a basic quest, where if you click a chest, you get a prize.
Open your map in Remere's Map-Editor:
Then, right-click the quest chest, click Properties, you will see a new window containing the actionID, uniqueID, and a bunch of black squares.
In actionID, you must put 2000 (unless you know what you're doing).
In uniqueID, you put any number that has not been used in other things (hence unique), such as storage values (must be between 1000 and 65535).
To insert an item for the quest, click one of the black squares and then type the item name and click OK, then click OK again to finish adding the quest.
Here is an example:
As you can see, the actionID is 2000 (it always should be 2000 for every quest).
The uniqueID is a random number I picked, in this case, I chose 12345 (cannot be used anywhere else).
Then I clicked the first black square and typed "boots of haste" and clicked OK. Tada, we're done!
============================================================================================================================================
Pick-only-one-item Quest
Have you ever done the Annihilator in Tibia? Know how you can't take all the prizes? You can only choose one prize.
Well, let's learn how to make one of these quests in a very simple way!
Go to data/actions/quests/system.lua:
Look for something like this at the top of the file:
To add a new quest, you need to add a new line in this table:
Note: we added [2002] = 12000 --New quest following a comma(,).
[2002] = the actionID of the quest
12000 = the storage value of the quest
Note: both of these numbers can not be used again for other things, they are unique!
Now go to data/actions/actions.xml:
You need to add a new line for every quest you make using system.lua:
Note: the actionID here must be the same actionID of the new quest you added in system.lua.
Now open your map in Remere's Map-Editor:
Then, right-click the quest chest, click Properties, then in actionID, you have to put in the same actionID you put in system.lua and actions.xml (in this case, it would be 2002).
Then leave uniqueID as 0, you do not need to use this.
Then select a black square and type in the name of the prize and click OK.
Repeat this for all the other chests in the quest (they all must have the same actionID).
Here is an example:
As you can see, the actionID for all the chests is 2002 (all the chests in the quest must have the same actionID).
The uniqueID is 0, you do not need to use this.
Then I clicked the first black square and typed the name of the item and clicked OK.
GOOD LUCK AND HOPE THIS HELPS!
ALL QUESTIONS AND PROBLEMS, POST HERE, I WILL TRY MY BEST TO HELP!
A tutorial on quests is probably long missing, so here we go, let's make one!
All of this will be based on the quest system that is compatible with Remere's Map-Editor, so there will be no new scripts that you need to add.
Simple Quest
This is just a basic quest, where if you click a chest, you get a prize.
Open your map in Remere's Map-Editor:
Then, right-click the quest chest, click Properties, you will see a new window containing the actionID, uniqueID, and a bunch of black squares.
In actionID, you must put 2000 (unless you know what you're doing).
In uniqueID, you put any number that has not been used in other things (hence unique), such as storage values (must be between 1000 and 65535).
To insert an item for the quest, click one of the black squares and then type the item name and click OK, then click OK again to finish adding the quest.
Here is an example:
As you can see, the actionID is 2000 (it always should be 2000 for every quest).
The uniqueID is a random number I picked, in this case, I chose 12345 (cannot be used anywhere else).
Then I clicked the first black square and typed "boots of haste" and clicked OK. Tada, we're done!
============================================================================================================================================
Pick-only-one-item Quest
Have you ever done the Annihilator in Tibia? Know how you can't take all the prizes? You can only choose one prize.
Well, let's learn how to make one of these quests in a very simple way!
Go to data/actions/quests/system.lua:
Look for something like this at the top of the file:
Lua:
local specialQuests = {
[2001] = 30015 --Annihilator
}
Lua:
local specialQuests = {
[2001] = 30015, --Annihilator
[2002] = 12000 --New quest
}
[2002] = the actionID of the quest
12000 = the storage value of the quest
Note: both of these numbers can not be used again for other things, they are unique!
Now go to data/actions/actions.xml:
You need to add a new line for every quest you make using system.lua:
Lua:
<action actionid="2002" event="script" value="quests/system.lua"/>
Now open your map in Remere's Map-Editor:
Then, right-click the quest chest, click Properties, then in actionID, you have to put in the same actionID you put in system.lua and actions.xml (in this case, it would be 2002).
Then leave uniqueID as 0, you do not need to use this.
Then select a black square and type in the name of the prize and click OK.
Repeat this for all the other chests in the quest (they all must have the same actionID).
Here is an example:
As you can see, the actionID for all the chests is 2002 (all the chests in the quest must have the same actionID).
The uniqueID is 0, you do not need to use this.
Then I clicked the first black square and typed the name of the item and clicked OK.
GOOD LUCK AND HOPE THIS HELPS!
ALL QUESTIONS AND PROBLEMS, POST HERE, I WILL TRY MY BEST TO HELP!
Last edited: