Advertisement
Guest User

test

a guest
Dec 29th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.38 KB | None | 0 0
  1. OnNPCKillEvent:
  2. IF(killedrid == mob_id)
  3. {
  4.     mob_kill ++;
  5.     IF(mob_kill >= 500)
  6.     {
  7.         query_sql("INSERT INTO `test_table` (`char_id`,`mob_id`,`mob_count`) VALUES ('"+getcharid(0)+"', '"+mob_id+"', '"+mob_count+"'");
  8.         mob_count = 0;
  9.     }
  10. }
  11. END;
  12.  
  13. CREATE TABLE `test_table` (
  14. `char_id` INT(15) NOT NULL,
  15. `mob_id` INT(5) NOT NULL,
  16. `mob_count` INT(5) NOT NULL,
  17. PRIMARY KEY(`char_id`)
  18. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement