Jump to content

Utility : Promotional Code


Lil Troll

Recommended Posts


  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

Buggy Script But Luckily i already have 1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   7
  • Joined:  06/23/14
  • Last Seen:  

Is it possible to use an NPC instead of @claim? 

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

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;	
*/

 

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  47
  • Reputation:   0
  • Joined:  09/28/20
  • Last Seen:  

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....

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   1
  • Joined:  01/12/12
  • Last Seen:  

On 2/22/2023 at 2:45 AM, Styx15 said:

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

This is because last_ip data sent from the npc is too long... 

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.04
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/13/23
  • Last Seen:  

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$) + "'";


 

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  06/15/21
  • Last Seen:  

On 10/30/2023 at 3:19 AM, someoneloveyou said:

Can this method overcome unlimited reclaim?

Link to comment
Share on other sites

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.

×
×
  • Create New...