Jump to content
  • 0

Requesting for Quest with random Item reward.


Question

Posted

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

1 answer to this question

Recommended Posts

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...