New PQ: Boss Rush PQ + Ellin/PiratePQ bug fixes
Introducing Boss Rush PQ. Corrected a few issues regarding rewardings in PiratePQ and EllinPQ and implemented a standardized way to script PQs.
This commit is contained in:
26
sql/tools/test_mobcarddrop.sql
Normal file
26
sql/tools/test_mobcarddrop.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
delimiter //
|
||||
|
||||
CREATE PROCEDURE countMobCardsBySection()
|
||||
BEGIN
|
||||
DECLARE x INT DEFAULT 0;
|
||||
DECLARE I INT DEFAULT 0;
|
||||
WHILE I < 10 DO
|
||||
SELECT count(*) INTO x FROM (
|
||||
SELECT DISTINCT itemid FROM drop_data WHERE itemid >= (2380000 + I*1000) and itemid < (2380000 + (I+1)*1000)
|
||||
) AS anysqltab_;
|
||||
|
||||
insert into `_mob_card_counter` (`keyid`,`count`) values (2380000 + I*1000 , x);
|
||||
SET I = I + 1;
|
||||
END WHILE;
|
||||
END;
|
||||
|
||||
//
|
||||
|
||||
delimiter ;
|
||||
|
||||
CREATE TABLE `_mob_card_counter` (
|
||||
`keyid` INTEGER(10),
|
||||
`count` INTEGER(10)
|
||||
);
|
||||
|
||||
CALL countMobCardsBySection();
|
||||
Reference in New Issue
Block a user