[RELEASE] Gods Treasure Script and Explaination

02/26/2020 17:27 DuaSelipar#1
[Only registered and activated users can see links. Click Here To Register...]

Hello, im gonna make tutorial how to make god treasure and here is explaination how to do it

Quote:
(`id`, `id_next`, `id_nextfail`, `type`, `data`, `param`)
('1200001', '0000', '0000', '0188', '50000', '198000 1 1200002 2,198020 1 1200012 2,198060 1 1200022 2,198080 1 1200032 2,198100 1 1200042 2,198120 1 1200052 2,198140 1 1200062 2,198160 1 1200072 2');
Quote:
Type = 188 (interface of gods treasure)
Data = 50000 is ep price to claim all item and 0 it means that collection is prohibit
Param = There are 8 items in total, and each item is must be separated by a ","
Detailed explanation of each section:
Example: 198000 1 1200002 2
198000 - itemtype id (refer cq_itemtype)
1 - Quantity of item (only use for client display)
1200002 - Script executed after being drawn
2 - random factor item being pick (the bigger the number, the easier it is to get that item ) minimun number 0, maximum num is 9999
Important: The script must be written correctly and number of item must be 8 or Otherwise it will not be executed.
Important 2:God treasure need to be deleted by manual (script)
i.after opening god treasure
ii.after receiving item (recommended)
Important 3: This script only work on archer,goddess or divine fire database only, the old one doesnt work

Gods Treasure sample script:
Quote:
INSERT INTO `cq_action` VALUES ('1200000', '1200001', '0000', '0502', '1025743', '');
INSERT INTO `cq_action` VALUES ('1200001', '0000', '0000', '0188', '50000', '198000 1 1200002 2,198020 1 1200012 2,198060 1 1200022 2,198080 1 1200032 2,198100 1 1200042 2,198120 1 1200052 2,198140 1 1200062 2,198160 1 1200072 2');
INSERT INTO `cq_action` VALUES ('1200002', '0000', '0000', '0501', '198000', '');
INSERT INTO `cq_action` VALUES ('1200012', '0000', '0000', '0501', '198020', '');
INSERT INTO `cq_action` VALUES ('1200022', '0000', '0000', '0501', '198060', '');
INSERT INTO `cq_action` VALUES ('1200032', '0000', '0000', '0501', '198080', '');
INSERT INTO `cq_action` VALUES ('1200042', '0000', '0000', '0501', '198100', '');
INSERT INTO `cq_action` VALUES ('1200052', '0000', '0000', '0501', '198120', '');
INSERT INTO `cq_action` VALUES ('1200062', '0000', '0000', '0501', '198140', '');
INSERT INTO `cq_action` VALUES ('1200072', '0000', '0000', '0501', '198160', '');
Hope you understand my poor english xD
06/06/2021 00:11 hknippon#2
[Only registered and activated users can see links. Click Here To Register...]

If you want to add items with big amounts, you will need to use stackable item as display for all of the non single items or it wont work. it will ask for 200 spaces (according to the amount you put)