Jump to content
  • 0

Reward NPC


Takuyakii

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

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