Today, we are going to make a quest that does the following:
1. A player talks to a npc and the npc will send them to a map to kill a monster.
2. The map will only allow one person in at a time.
3. Once the player has killed the monster, it will give them a reward.
4. Once the monster is killed, it will teleport you back to cronus.
5. It will then start a quest, so that players can only do the quest once every 12 hours.
Things we will be doing:
1. Copy the Maze-A map so we can make our own name.(Server side and Client Side).
2. Make a copy of Aderes, that we can name (Server side and Client Side).
3. Code up the actions so the quest is fully functional.
4. Code up the other main features.
cq_action part:
Pretty much, this sets up the entire npc text. And the teleporting to the quest map. The key parts of this are id's 60000000 - 60000002. These check if you have already done the quest in the past 12 hours. Id 60000009 deletes any stray monsters in the map. And 60000010 Spawns the monster we are using.
-------------------------------------------------------------------------
cq_npc part:
cq_npc makes it so we can enter the quest map.
-------------------------------------------------------------------------
cq_task part:
cq_task allows us to run our actions.
-------------------------------------------------------------------------
We will be using the current monster called AngryEvilBarye with the id of 24130.
cq_monstertype part:
Simply updates the current monster to run an action when its killed.
-------------------------------------------------------------------------
cq_map part:
This adds our copied map
-------------------------------------------------------------------------
Add the following to your clients /ini/npc.ini file. It will give our copy of Aderes a new name.
npc.ini
-------------------------------------------------------------------------
Copy this to your clients ini/GameMap.ini file and your GameServer/ini/GameMap.ini file. This gives our copy of the map a new name.
GameMap.ini
-------------------------------------------------------------------------
Pretty much that is all there is to making a quest for your server. I would recommend you downloading forcers action types. You can get them from [Only registered and activated users can see links. Click Here To Register...]
I've tried to make this a new owner friendly as possible. If you have any more questions, feel free to ask.
1. A player talks to a npc and the npc will send them to a map to kill a monster.
2. The map will only allow one person in at a time.
3. Once the player has killed the monster, it will give them a reward.
4. Once the monster is killed, it will teleport you back to cronus.
5. It will then start a quest, so that players can only do the quest once every 12 hours.
Things we will be doing:
1. Copy the Maze-A map so we can make our own name.(Server side and Client Side).
2. Make a copy of Aderes, that we can name (Server side and Client Side).
3. Code up the actions so the quest is fully functional.
4. Code up the other main features.
cq_action part:
Code:
INSERT INTO `cq_action` VALUES
('60000000', '60000001', '60000004', '1080', '12000', 'isexit'),
('60000001', '60000002', '60000003', '1082', '12000', '43200'),
('60000002', '60000004', '', '1080', '12000', 'delete'),
('60000003', '0', '0', '126', '0', 'Sorry you have done the quest in the past 12 hours.'),
('60000004', '60000005', '0', '101', '0', 'Welcome %user_name. I can send you into the QuestMap.'),
('60000005', '60000006', '0', '102', '0', 'Ok~ill~go. 60000007'),
('60000006', '4000001', '0', '102', '0', 'No~Thanks 0'),
('60000007', '60000011', '60000008', '302', '1910', 'map_user == 1'),
('60000008', '60000009', '0', '1003', '0', '1910 281 434 0'),
('60000009', '60000010', '0', '2009', '0', '1910 24130'),
('60000010', '60000011', '0', '2006', '0', '0 0 1910 282 435 2413000 24130'),
('60000011', '0', '0', '126', '0', 'Sorry, someone is already in the map.'),
('60000015', '60000016', '60000018', '508', '0', '1 0 50'),
('60000016', '60000017', '0', '501', '729018', ''),
('60000017', '60000019', '0', '126', '0', 'You got a reward.'),
('60000018', '0', '0', '126', '0', 'You need atleast one empty spot in your inventory.'),
('60000019', '60000020', '0', '1003', '0', '1000 215 634'),
('60000020', '0', '0', '1080', '12000', 'new');
-------------------------------------------------------------------------
cq_npc part:
Code:
INSERT INTO `cq_npc` VALUES ('202', '0', '0', 'AQuestNpc', '29', '12030', '0', '0', '-1', '1000', '309', '405', '60000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '5', '5', 'ÎÞ', '0', '0', '0', '0', '1', '0', '3', '3', '3', '3');
-------------------------------------------------------------------------
cq_task part:
Code:
INSERT INTO cq_task VALUES
('60000000', '60000000', '0', '', '', '0', '0', '999', '-100000', '100000', '999', '0', '0', '-1', '0'),
('60000007', '60000007', '0', '', '', '0', '0', '999', '-100000', '100000', '999', '0', '0', '-1', '0');
-------------------------------------------------------------------------
We will be using the current monster called AngryEvilBarye with the id of 24130.
cq_monstertype part:
Code:
UPDATE `cq_monstertype` SET action='60000015' WHERE id='24130';
-------------------------------------------------------------------------
cq_map part:
Code:
INSERT INTO `cq_map` VALUES ('1910', 'QuestMap', 'QuestMap', '1910', '2621454', '0', '0', '0', '-1', '0', '0', '0', '300', '298', '1000', '0', '0', '0', '0', '0', '0', '0', '0');
-------------------------------------------------------------------------
Add the following to your clients /ini/npc.ini file. It will give our copy of Aderes a new name.
npc.ini
Code:
[NpcType1203] Name=QuestNpc SimpleObjID=714 StandByMotion=0714000100 BlazeMotion=0714000190 BlazeMotion1=0700000190 BlazeMotion2=0700000190 RestMotion=0714000101 Effect=petdepotnpc ZoomPercent=110 Note=QuestNpc FrontBlock=3 BackBlock=3 LeftBlock=3 RightBlock=3
Copy this to your clients ini/GameMap.ini file and your GameServer/ini/GameMap.ini file. This gives our copy of the map a new name.
GameMap.ini
Code:
[Map1910] File=map/map/challenge-maze001.DMap Alpha=255 Red=255 Green=255 Blue=255 Name=QuestMap Snow=0 Firebug=0 Dragon=0 Dandelion=1 Music=music/1001.mp3 switch=0 daysound=null nightsound=null day=0x00FFFFFF nightfall=0xFFFFAAAA night=0xFF9999FF
Pretty much that is all there is to making a quest for your server. I would recommend you downloading forcers action types. You can get them from [Only registered and activated users can see links. Click Here To Register...]
I've tried to make this a new owner friendly as possible. If you have any more questions, feel free to ask.