Jump to content
  • 0

Adding unique id feature w/ reset each day


Question

Posted (edited)

Heya. I have this script and it works. But can be abuse by creating multiple accounts and re claim it. I wanted to add unique id features in it that resets each day.

prontera,164,169,3	script	Daily Supply#1	647,{
	set .@supplytoday,atoi( gettimestr( "%Y%m%d",21 ) );
	
	if ( Weight >= (MaxWeight/2) ) {
		dispbottom "Please free some space from your inventory to get the Daily Supplies.";
		end;
	}
	if( #DailySupply != .@supplytoday ){
		set #DailySupply,.@supplytoday;
		getitembound 11503,100,Bound_Account;
		getitembound 11504,50,Bound_Account;
		end;
	} else {
		dispbottom "Daily Supply can only be claimed once per day. Resets at 12am.";
		end;
	}
}

 

Edited by Gidz Cross
title edit

4 answers to this question

Recommended Posts

  • 0
Posted

You need an additional modification in your client to send some unique identifier based on the players pc to the server, that you can at least identify a unique pc to prevent most of the abuse via the usage of multiple accounts.
You will also need the server to be able to handle the send unique id and to have it hand it over to your script so that it can make use of it.
But even then it will be possible to abuse the it by the usage of virtual machines for example. There isn't any fool proof method to make sure, a player can't somehow abuse free giveaway items.

  • 0
Posted
On 11/28/2023 at 2:55 AM, Winterfox said:

You need an additional modification in your client to send some unique identifier based on the players pc to the server, that you can at least identify a unique pc to prevent most of the abuse via the usage of multiple accounts.
You will also need the server to be able to handle the send unique id and to have it hand it over to your script so that it can make use of it.
But even then it will be possible to abuse the it by the usage of virtual machines for example. There isn't any fool proof method to make sure, a player can't somehow abuse free giveaway items.

I do have gepard. 

  • 0
Posted
prontera,164,169,3	script	Daily Supply#1	647,{
	if (Weight >= (MaxWeight / 2) || !checkweight(1201,1)) {
		dispbottom "Please free some space from your inventory to get the Daily Supplies.";
		end;
	}

	.@unique_id$ = "" + get_unique_id(); // <--- Your way to accecss the unique ID info

	if (#DailySupply == .today_date || inarray($today_unique_id$, .@unique_id$) != -1) {
		dispbottom "Daily Supply can only be claimed once per day. Resets at 12am.";
		end;
	}

	#DailySupply = .today_date;
	$today_unique_id$[getarraysize($today_unique_id$)] = .@unique_id$;

	getitembound 11503,100,Bound_Account;
	getitembound 11504,50,Bound_Account;
	end;

OnHour00:
	deletearray $today_unique_id$;
OnInit:
	.today_date = atoi(gettimestr("%Y%m%d", 21));
	end;
}

something like this

  • MVP 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
Answer this question...

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