Jump to content

Recommended Posts

  • 1 month later...
Posted

For IP, time_created, and redeem_time problems use this.

 

/*
DROP TABLE IF EXISTS `reward_codes`;
DROP TABLE IF EXISTS `reward_logs`;
CREATE TABLE IF NOT EXISTS `reward_codes` (
	`promo` VARCHAR(26) NOT NULL DEFAULT '',
	`nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
	`item_name` VARCHAR(50) NOT NULL DEFAULT '',
	`amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
	`time_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	`limit` INT(10) UNSIGNED NOT NULL DEFAULT '0',
	`pool` INT(10) UNSIGNED NOT NULL DEFAULT '0',
	PRIMARY KEY (`promo`)
) ENGINE = MYISAM;
CREATE TABLE IF NOT EXISTS `reward_logs` (
	`account_id` int(11) unsigned NOT NULL default '0',
	`last_ip` BINARY( 15 ) NOT NULL,
	`code` VARCHAR( 26 ) NOT NULL,
	`redeem_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	`claim` INT( 10 ) NOT NULL,
	PRIMARY KEY (`code`)
) ENGINE = MYISAM;	
*/

 

  • 1 year later...
Posted
On 7/5/2021 at 5:24 PM, mawjustin said:

For IP, time_created, and redeem_time problems use this.

 

/*
DROP TABLE IF EXISTS `reward_codes`;
DROP TABLE IF EXISTS `reward_logs`;
CREATE TABLE IF NOT EXISTS `reward_codes` (
	`promo` VARCHAR(26) NOT NULL DEFAULT '',
	`nameid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
	`item_name` VARCHAR(50) NOT NULL DEFAULT '',
	`amount` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
	`time_created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	`limit` INT(10) UNSIGNED NOT NULL DEFAULT '0',
	`pool` INT(10) UNSIGNED NOT NULL DEFAULT '0',
	PRIMARY KEY (`promo`)
) ENGINE = MYISAM;
CREATE TABLE IF NOT EXISTS `reward_logs` (
	`account_id` int(11) unsigned NOT NULL default '0',
	`last_ip` BINARY( 15 ) NOT NULL,
	`code` VARCHAR( 26 ) NOT NULL,
	`redeem_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
	`claim` INT( 10 ) NOT NULL,
	PRIMARY KEY (`code`)
) ENGINE = MYISAM;	
*/

 

i test and still can abuse unlimited reclaim ..helpppp....

  • 3 months later...
  • 4 months later...
Posted
On 2/22/2023 at 3:45 PM, Styx15 said:

i test and still can abuse unlimited reclaim ..helpppp....

try to change it in your database using phpmyadmin
reward_logs > structure > change last_ip
Change last_ip type and value become Type 'Varchar' Value '15'

and change this 'ragnarok_db' to your ragnarok db
 

query_sql "DELETE FROM `ragnarok_db`.`reward_codes` WHERE `promo` = '" + escape_sql(.@dcode$) + "'"; 
query_sql "DELETE FROM `ragnarok_db`.`reward_logs` WHERE `code` = '" + escape_sql(.@dcode$) + "'";


 

  • 4 months later...
  • 4 weeks later...
Posted
On 3/15/2024 at 11:17 AM, Queen Freya said:

Can this method overcome unlimited reclaim?

delete older sql and run this sql in phpmyadmin
 

CREATE TABLE `reward_codes` (
  `promo` varchar(26) NOT NULL DEFAULT '',
  `nameid` int UNSIGNED NOT NULL DEFAULT '0',
  `item_name` varchar(50) NOT NULL DEFAULT '',
  `amount` smallint UNSIGNED NOT NULL DEFAULT '0',
  `time_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `limit` int UNSIGNED NOT NULL DEFAULT '0',
  `pool` int UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

CREATE TABLE `reward_logs` (
  `account_id` int UNSIGNED NOT NULL DEFAULT '0',
  `last_ip` varchar(15) NOT NULL,
  `code` varchar(26) NOT NULL,
  `redeem_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `claim` int NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

Please let me know if this code doesn't work

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...