Jump to content
  • 0

Can i request some event npc?


Question

4 answers to this question

Recommended Posts

Posted

try this

prontera,155,181,5 script Sample 757,{
set .itemID,7539;
set .Amount,1000;
set .WinningRate,10;
mes "Do you want to gamble with yours "+getitemname( .itemID )+" ?";
mes "You need "+.Amound+" of it...and only "+.WinningRate+" % to win.";
next;
if( select("Yes:No") == 2 ) close;
if( countitem( .itemID ) < .Amount ){
 mes "You didnt have enough of "+.Amount+" each.";
}else{
 delitem .itemID,.Amount;
 if( rand(100) < 10 ){
  mes "Congratz...you win..";
  getitem .itemID,3 * .Amount;
 }else{
  mes "Failed";
 }
}
close;
}

  • Upvote 1
Posted

Emistry, try and expand on your script.

For example, you should make it so it will randomly give out of the choice

For example:

5 x Yggdrasil berry (20% chance)

1x Gym Membership box (20% chance)

20 x Yggdrasil berry (15% chance)

Then the grand prize will be 10x mithril coin (5% or 1% chance)

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