Jump to content
  • 0

Adding unique id feature w/ reset each day


Gidz Cross

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

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. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

Then i assume there is a function that gives you the unique id of a connected user, that you can use.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

×
×
  • Create New...