Jump to content
  • 0

Npc ramdon costume x 1 coins


nicolasdemartini

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.02
  • Content Count:  29
  • Reputation:   0
  • Joined:  09/21/22
  • Last Seen:  

good afternoon I hope you are having an excellent day friends ? I would like to ask for an npc that gives you 1 costume for poring coins but that the npc gives you ramdon the costume that has implemented that you can not choose the costume if not that gives it ramdon

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample	757,{
	mes "Exchange "+.amount+"x "+getitemname(.itemid)+" into a costume.";
	if (select("Yes" , "Cancel") == 1) {
		if (countitem(.itemid) < .amount) {
			mes "not enough item.";
		}
		else {
			delitem .itemid, .amount;
			getitem F_Rand(501, 502, 503, 504, 505), 1;
			mes "You gained a costume.";
		}
	}
	close;
	
	OnInit:
		.itemid = 512;
		.amount = 1;
		end;
}

there are probably thousand of exchanger NPCs like these can be found in the forum, might as well try to search for it next time.

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