Jump to content
  • 0

@request Berry Machine


Subzero

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

hello guys and team rA

anyone can help me making a berry npc

this npc will give a 30% chance to receive 10 yggdrasilberry,

every times player want play,player need give 1 GOLD COIN

OMJ45r2l.png

Edited by Subzero
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  9
  • Reputation:   1
  • Joined:  02/14/18
  • Last Seen:  

desert,41,51,5	script	50/50 Game	504,{

	set .WinningRate,30;
	mes "[ Gambit ]";
	mes "Do you want to gamble ?";
	if( select("Yes:No") == 2 ) close;
	next;
	set .itemID,40001; // Set ID Gold Coin
	mes "[ Gambit ]";
	mes "This is a betting game with a 30% win rate";
	mes "Just bet the amount you want and push your luck !";
	next;
	mes "[ Gambit ]";
	mes "Do you want to gamble your "+getitemname( .itemID )+" with a "+.WinningRate+" % Win rate?";
	next;
	if( select("Yes:No") == 2 ) close;
	mes "[ Gambit ]";
	mes "Enter amount of "+getitemname( .itemID )+" you want to gamble";
	input .Amount;
	next;
	mes "[ Gambit ]";
	mes "Are you sure you want to gamble "+.Amount+" Gold Coin ?";
	next;
	if( select("Yes:No") == 2 ) close;
	if( countitem( .itemID ) < .Amount ){
	mes "[ Gambit ]";
	mes "You dont have enough "+getitemname( .itemID )+" to gamble.";
	}else{
	delitem .itemID,.Amount;
	if( rand(100) < .WinningRate ){
	mes "[ Gambit ]";
	mes "Congratulations ! You won !";
	getitem 607,10*.Amount;
	}else{
	mes "[ Gambit ]";
	mes "Sad ! You lost. Better luck next time !";
	}
	}
close;

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

its posibble guys to make receive a random item??

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