Jump to content
  • 0

Freebies Gepard (UniqueID)


Question

3 answers to this question

Recommended Posts

  • 2
Posted

if you are planing to use the unique id more in the future , i would suggest using this

the script would look like this

prontera,0,0,0	script	rewards	444,{
	mes "something";
	if(!gepard_int_get("freebies")){
		gepard_int_set("freebies",1);
		mes "here is the rewards";
		getitem 502,1;
	}else{
		mes "you already got the freebies rewards";
	}
	close;
}

 

  • Upvote 1
  • Love 1
  • Like 1
  • 0
Posted
8 hours ago, sader1992 said:

if you are planing to use the unique id more in the future , i would suggest using this

the script would look like this


prontera,0,0,0	script	rewards	444,{
	mes "something";
	if(!gepard_int_get("freebies")){
		gepard_int_set("freebies",1);
		mes "here is the rewards";
		getitem 502,1;
	}else{
		mes "you already got the freebies rewards";
	}
	close;
}

 

 

Works fine for now, I will test for a few days

thank you

  • 0
Posted (edited)

here

prontera,150,150,4	script	Freebies NPC	123,{
	 . @ unique _id $ = get_unique_id ();

	if (getd ("$ ID_" + . @ unique _id $)> 0 || #FreebiesReward> 0) {
		month "[Freebies NPC]";
		mes "You have already claimed your Freebies.";
		close;
	}
	month "[Freebies NPC]";
	mes "Here's your Freebies. Have a nice day!";
	setd "$ ID_" + . @ unique _id $, 1;
	#FreebiesReward = 1;
	$ freebies_count - = 1;
	for ( . @ i = 0 ;. @ i <getarraysize (.items);. @ i + = 2)
		getitem .items [ . @ i ] ,. items [ . @ i +1];
	if ($ freebies_count == 0)
		$ reward_status = 1;
	end;
	
OnInit:
	setarray .items, 501,10,502,10;
	end;
}

 

Edited by BeWan
  • Like 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...