Jump to content
  • 0

Requesting for Quest with random Item reward.


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

Requesting for 1 npc quest that example is There are 3 items Bronze item, Silver item, Gold Item where the requirements are for example is 1 ygg 1 white potion 1 elunium but it will randomly make the one item by chance for about the Bronze item is 60% the silver item is 40% and lastly the Gold item is 20% only. Thank you in advance who will try to do this kind of Script.



Bump

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  163
  • Reputation:   7
  • Joined:  01/07/12
  • Last Seen:  

there you go

prontera,155,181,5	script	Sample	757,{

if((countitem(607)<1) && (countitem(504)<1) && (countitem(985)<1)) {
mes "[Quest NPC]";
mes "Bring me the Stuff!";
close;
}
set @cb,rand(1,10);
mes "[Quest NPC]";
mes "Proceed now?";
switch(select("Yes:no")) {
	case 1:
	delitem 607,1;
	delitem 504,1;
	delitem 985,1;
	if (@cb <= 6)
		getitem 673,1;
	if (@cb == 7 || @cb == 8)
		getitem 675,1;
	if (@cb >= 9)
		getitem 671,1;	
	break;
	case 2:
		close;
	break;
}

end;
}
  • 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...