Jump to content
  • 0
Deku

Freebies Gepard (UniqueID)

Question

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 🙂

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 2

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

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.