Jump to content
  • 0

Freebies Gepard (UniqueID)


Deku

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  11/10/14
  • Last Seen:  

I've been looking in the forum, and I didn't find a functional npc with Gepard, I would rather like a npc Freebies with Gepard in it

 

Thx ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 2

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  11/10/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

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