Hello Elitepvpers!
Today, i want make a guide for cq_dynanpc function. This function is very simple for me. hehe :p What you can make with cq_dynanpc? You can make data for monter etc. I just show you how to make a simple and perfect quest.
For example you kill 10 or more monster and you will be send into another maps, spawn a bosses or spawn npc etc. But I only show you how to kill 10 monster and spawn a bosses. :)
1. Make 1 cq_dynanpc for monster data. Its mean, kill monster and will record data at cq_dynanpc. Make sure cq_dynanpc set at mapping 100. Because only use for record the data not use the npc.
cq_dynanpc :
cq_monster :
data0 += 1 = Adding 1 Data you kill at cq_dynanpc
19000 = cq_dynanpc ID
data0 == 10 = Record amount you kill the monster. So after you kill 10 monster, you will send the next action.
2200000 = Bosses generator ID. Make sure this ID same with your generator. If not same, your monster only stay 1 place only and not attack.
22000 = Monster bosses ID
data0 = 0 = Reset all record data you kill at cq_dynanpc to 0.
3. Make query for your bosses monster and generator.
cq_monster :
Sorry, If this guide very simple for you. I hope you can learn it. If you have any question about this function just post here. I try to help you ;)
Best Regards,
The Flames
Today, i want make a guide for cq_dynanpc function. This function is very simple for me. hehe :p What you can make with cq_dynanpc? You can make data for monter etc. I just show you how to make a simple and perfect quest.
For example you kill 10 or more monster and you will be send into another maps, spawn a bosses or spawn npc etc. But I only show you how to kill 10 monster and spawn a bosses. :)
1. Make 1 cq_dynanpc for monster data. Its mean, kill monster and will record data at cq_dynanpc. Make sure cq_dynanpc set at mapping 100. Because only use for record the data not use the npc.
cq_dynanpc :
2. Make a query for monster and monster action for adding data you kill. Make sure you make generator for this monster.Quote:
INSERT INTO `cq_dynanpc` VALUES
(19000, 0, 2, 'MonsterData', 02, 190006, 0000, 0000, -1, 100, 100, 110, 1900000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0, 0, 0, 0, '0', 0000, 0000, 0000, 0000, 00, 0000, 0000, 0000, 0000, 0000, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0);
cq_monster :
cq_action :Quote:
INSERT INTO `cq_monstertype` VALUES
('21000', 'SmallMonster', '0000', '0407', '0', '0', '50000', '00', '0600', '0500', '0000', '0000', '0083', '0000', '0000', '0000', '0000', '0001', '0015', '0000', '1000', '0000', '0000', '32771', '20525', '38125', '0003', '1900000', '0000', '099', '099', '099', '099', '099', '099', '099', '1500', '70000', '0000', '0000', '0000', '0043', '0000', '0200', '5000', '10000', '15000', '000', '000', '0000000000', '0000000000', '0000000000', '0000000000', '0', '500', '0', '0', '0', '0', '0', '1000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
Quote:
INSERT INTO `cq_action` VALUES
('1900000', '1900001', '0000', '0201', '0', 'data0 += 1 19000'),
('1900001', '1900002', '0000', '0201', '0', 'data0 == 10 19000'),
('1900002', '1900003', '0000', '2006', '0', '0 0 %user_map_id %user_map_x %user_map_y 2200000 22000 0 BigBosses'),
('1900003', '1900004', '0000', '0201', '0', 'data0 = 0 19000'),
('1900004', '0000', '0000', '0126', '0', 'BigBosses has appear. Kill him to complete The quest!');
data0 += 1 = Adding 1 Data you kill at cq_dynanpc
19000 = cq_dynanpc ID
data0 == 10 = Record amount you kill the monster. So after you kill 10 monster, you will send the next action.
2200000 = Bosses generator ID. Make sure this ID same with your generator. If not same, your monster only stay 1 place only and not attack.
22000 = Monster bosses ID
data0 = 0 = Reset all record data you kill at cq_dynanpc to 0.
3. Make query for your bosses monster and generator.
cq_monster :
cq_generator :Quote:
INSERT INTO `cq_monstertype` VALUES
('22000', 'BigBosses', '0011', '0587', '0', '0', '9000000', '00', '50000', '50000', '0500', '0000', '0130', '0000', '0000', '0000', '0000', '0003', '0025', '0000', '1000', '0000', '18000', '32771', '0000', '0000', '0003', '1106600', '0000', '000', '000', '000', '000', '000', '000', '000', '0000', '0000', '48003', '1000', '0500', '0100', '0000', '0500', '0000', '0000', '0000', '0000', '000', '0000000000', '0000000000', '0000000000', '0000000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
Quote:
INSERT INTO `cq_generator` VALUES
(2200000, 8700, 0878, 0446, 0009, 0009, 0025, 70000, 0000, 22000, 0000, 0000, 0000, 0000, 0000);
Sorry, If this guide very simple for you. I hope you can learn it. If you have any question about this function just post here. I try to help you ;)
Best Regards,
The Flames