cofruben
10-26-2004, 10:20 AM
Hi all...just implemented the adventure system,I did not tell anything about how to create one,so I will explain it here:
1.First of all,make sure you have sourced the adventures.sql file.
2.Once done,in your DB,you will see two new tables,complete the first one:
->adventures_maintext : this is the table which containts the main text of a NPC.This text will be sent when someone clicks on the recruiter(class number 60).There,you should set the Recruiter ID(npc id of the npc with class 60),and the text that you wanna send everytime someone clicks on him.
3.Complete the last one:
->adventures:This is the main table,where all the stuff are in.
-Quest ID:set it as you want...it must be an unique id.
-NPC ID:again,the npc id.
-Type:There are four types,but we will use three.(0 is collect,1 is mass kill,and 2 is kill a named).
-Text:description of the adventure.
-Objetive:
1.Type 0(collect):must be the item ID to collect.
2.Type 1(mass kill):set it to 0.
3.Type 2(named kill):must be the NPC type id to kill.
-Objetive value:
1.Type 0:enter the number of items you want to collect.
2.Type 1:enter the number of mobs you want to kill.
3.Type 2: does not matter.
-Minutes:minutes given to finish the adventure.
-Points:points given to the client when success.
-ShowCompass:if set to '1',it will show the compass with the specified x and y,in 'zoneid' Zone ID.
-Zone Dungeon ID:the zone id of the dungeon,this is the zone where the adventure takes place.
-X and Y:loc for the compass.
The other ones: do not use,except if your server get bugged or something,and the adventure is still being used,set in_use to 0,but it should set it automatically.
One more note,if you want the zone to be "instanced" (it is not real instancing,but will prevent other people joinning) set ldondungeon to 1,in zone table.With that set to 1,only the players with that zone id in his adventure,will be available to join that zone.
Sort of adventures:
1.Type 0: Collect adventure.
2.Type 1: Mass kill adventure.
3.Type 2: Boss kill adventure.
Please,ask any question.
1.First of all,make sure you have sourced the adventures.sql file.
2.Once done,in your DB,you will see two new tables,complete the first one:
->adventures_maintext : this is the table which containts the main text of a NPC.This text will be sent when someone clicks on the recruiter(class number 60).There,you should set the Recruiter ID(npc id of the npc with class 60),and the text that you wanna send everytime someone clicks on him.
3.Complete the last one:
->adventures:This is the main table,where all the stuff are in.
-Quest ID:set it as you want...it must be an unique id.
-NPC ID:again,the npc id.
-Type:There are four types,but we will use three.(0 is collect,1 is mass kill,and 2 is kill a named).
-Text:description of the adventure.
-Objetive:
1.Type 0(collect):must be the item ID to collect.
2.Type 1(mass kill):set it to 0.
3.Type 2(named kill):must be the NPC type id to kill.
-Objetive value:
1.Type 0:enter the number of items you want to collect.
2.Type 1:enter the number of mobs you want to kill.
3.Type 2: does not matter.
-Minutes:minutes given to finish the adventure.
-Points:points given to the client when success.
-ShowCompass:if set to '1',it will show the compass with the specified x and y,in 'zoneid' Zone ID.
-Zone Dungeon ID:the zone id of the dungeon,this is the zone where the adventure takes place.
-X and Y:loc for the compass.
The other ones: do not use,except if your server get bugged or something,and the adventure is still being used,set in_use to 0,but it should set it automatically.
One more note,if you want the zone to be "instanced" (it is not real instancing,but will prevent other people joinning) set ldondungeon to 1,in zone table.With that set to 1,only the players with that zone id in his adventure,will be available to join that zone.
Sort of adventures:
1.Type 0: Collect adventure.
2.Type 1: Mass kill adventure.
3.Type 2: Boss kill adventure.
Please,ask any question.