Jump to content
  • 0

Pls help me fix this script. zenny to creds script lotto gambling


BabaVoss

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.03
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/17/20
  • Last Seen:  

hello guys, so i found this script. its kinda interesting but the current currency is zenny. i want it to be creds or other option of currency. can you guys help me fix this script, thank you.


    next;
    if(zeny<10000) { mes "[Leon]"; mes "You do not have 10,000z"; close; }
    set zeny,zeny-10000;
    set trustfundbalance,trustfundbalance+100;
    set $JackpotAmount,$JackpotAmount+9000;
    mes "[Leon]";
    mes "You have chipped ^0088009,000z^000000 into the Jackpot!";
    mes "Total Jackpot : ^FF0000"+$JackpotAmount+"z^000000";
    next;
    mes "[Leon]";
    mes "If your guess is not correct, you will lose the zeny you chipped in, and will need to try again!";
    mes "However, the pot will be that much bigger the next time anyone plays!";
    next;
    mes "[Leon]";
    mes "Please enter the number that you think will win the Jackpot!";
    mes "It is between numbers ^FF00001^000000 and ^FF0000100^000000.";
    next;
    input .@JackpotPick;
    if(.@JackpotPick<1||.@JackpotPick>100) { next; mes "[Leon]"; mes "You must enter a number between ^FF00001^000000 and ^FF0000100^000000. I do not give refunds!"; goto JackpotStart; close; }
    mes "["+strcharinfo(0)+"]";
    mes "My number is ^880000"+.@JackpotPick+"^000000!";
    next;
    if(.@JackpotPick!=$JackpotNumber) { mes "[Leon]"; mes "You guessed the wrong number."; mes "You can always try again!"; goto JackpotStart; close; }
    mes "[Leon]";
    mes "You guessed the correct number!";
    next;
    mes "[Leon]";
    mes "Congratulations! You have won the Jackpot of ^008800"+$JackpotAmount+" zeny^000000!";
    set zeny,zeny+$JackpotAmount;
    announce "[ Jackpot ]: "+strcharinfo(0)+" has won the Jackpot of "+$JackpotAmount+" zeny !!",0x76EE00;
    set $JackpotAmount,0;
    close2;
    announce "[ Jackpot ]: The number that won the Jackpot was "+$JackpotNumber+".",0x76EE00;
    set $JackpotNumber,0;
    sleep2 5000;
    announce "[ Jackpot ]: To win Jackpot come chip in some zeny and take a guess!",0x76EE00;
    end;
case 2:

 

Edited by abalahim
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  101
  • Reputation:   16
  • Joined:  07/28/12
  • Last Seen:  

try adding the full script in a codebox

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