Jump to content
  • 0
Sign in to follow this  
Takuyakii

Reward NPC

Question

can someone help me ,

 

im requesting for this script

 

1. NPC that will give item

2. the npc will only give to the selected account id. 

example

200004,20006,200030 and so on 

 

3. and can only obtained once

 

Thank you.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
map,x,x,x	script	Sample	x,{
	if(getcharid(3) == 2000004 || getcharid(3) == 2000006|| getcharid(3) == 2000030){
		if (#EVENT_REWARD <= 0) {
			#EVENT_REWARD = gettimetick(2);
			getitem 501, 1;
			getitem 501, 2;
			getitem 501, 3;
			mes "You gained reward.";
			close;
		}
	}
	end;
}

Haven't tried this but it should do the trick. If you want to make it itembound then use getitembound2.

  • Upvote 1

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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