Jump to content

agamanaros

Members
  • Posts

    34
  • Joined

  • Last visited

Community Answers

  1. agamanaros's post in DICE ITEM BET GAME was marked as the answer   
    @Emistry
    I was able to get it working! Thank you very much!

     
    moc_para01,102,20,2 script Dice Dealer 57,{ set .itemid, 7179; set .MaxDiceBet,30000; mes "[Dyceman]"; mes "We each roll two dice and the highest total wins. I will match however much money you put in."; goto DiceStart; close; DiceStart: next; if(select("Lets throw some dice!:Not wasting a zeny!")==2) { mes "[Dyceman]"; mes "Please come again!"; close; } mes "[Dyceman]"; mes "How much Proof of Donations would you like to bet?"; switch(prompt( "50 Proof of Donations", "100 Proof of Donations", "200 Proof of Donations", "Custom Amount" )) { case 1: set [email protected],50; break; case 2: set [email protected],100; break; case 3: set [email protected],200; break; case 4: input [email protected]; if([email protected] < 1 || [email protected] > .MaxDiceBet) { next; mes "[Dyceman]"; mes "You must enter a number between ^FF00001^000000 and ^FF0000"+.MaxDiceBet+" Proof of Donations^000000."; goto DiceStart; close; } set [email protected],[email protected]; next; mes "[Dyceman]"; mes "You bet ^008800"[email protected]+" Proof of Donations^000000!"; break; default: case 255: mes "[Dyceman]"; mes "Please come again!"; close; } next; mes "[Dyceman]"; if(countitem(.itemid) < [email protected]) { mes "You you don't have enough Proof of Donations to make that bet!"; close; } delitem .itemid, [email protected]; set trustfundbalance, trustfundbalance + ([email protected] / 100); mes "The dice have been thrown..."; next; set [email protected],rand(1,3); if([email protected]==1) { mes "roll..."; } if([email protected]==2) { mes "roll... roll..."; } if([email protected]==3) { mes "roll... roll... roll..."; } next; set [email protected],rand(1,3); if([email protected]==1) { mes "roll..."; } if([email protected]==2) { mes "roll... roll..."; } if([email protected]==3) { mes "roll... roll... roll..."; } next; set [email protected],rand(1,3); if([email protected]==1) { mes "roll..."; } if([email protected]==2) { mes "roll... roll..."; } if([email protected]==3) { mes "roll... roll... roll..."; } set [email protected],rand(1,6); set [email protected],rand(1,6); set [email protected],([email protected][email protected]); set [email protected],rand(1,6); set [email protected],rand(1,6); set [email protected],([email protected][email protected]); next; mes "[Dyceman]"; mes "You rolled a ^0000FF"[email protected]+"^000000 and ^0000FF"[email protected]+"^000000!"; mes " "; mes "I rolled a ^0000FF"[email protected]+"^000000 and ^0000FF"[email protected]+"^000000!"; next; mes "[Dyceman]"; if([email protected]>[email protected]) { mes "My ^0000FF"[email protected]+"^000000 beats your ^0000FF"[email protected]+"^000000!"; next; mes "[Dyceman]"; mes "I win, your ^008800"[email protected]+"z^000000 is mine!"; } else if([email protected]<[email protected]) { mes "Your ^0000FF"[email protected]+"^000000 beats my ^0000FF"[email protected]+"^000000!"; getitem .itemid, ([email protected] * 2); next; mes "[Dyceman]"; mes "You won ^008800"+([email protected]*2)+"z^000000. I will get your Proof of Donations next time!"; } else if([email protected][email protected]) { mes "Draw, let's play again!"; getitem .itemid, [email protected]; set trustfundbalance,trustfundbalance - ( [email protected] / 100); goto DiceStart; } close; }  
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.