Jump to content
  • 0
Get Backers

need to cutin to received gold points

Question

Hi, guys can you fix it this script when I input is 0 i'm stock in the image. but when I put with cutin "",255; I don't get  gold points thanks everyone

        if (input([email protected], 1, 30000))
            close;
        if ([email protected] > goldPoint) {
            mes "Sorry, you don't have any Gold";
            close2;
            cutin "",255;
            end;

Edited by Get Backers
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 12/2/2020 at 12:13 PM, Get Backers said:

Hi, guys can you fix it this script when I input is 0 i'm stock in the image. but when I put with cutin "",255; I don't get  gold points thanks everyone

        if (input([email protected], 1, 30000))
            close;
        if ([email protected] > goldPoint) {
            mes "Sorry, you don't have any Gold";
            close2;
            cutin "",255;
            end;

switch(input([email protected], 1, 30000)) {
    case -1: //Values less than 1
    case 1: //Values greater than 30000
        mes "Something went wrong!";
        close2;
        cutin "",255;
        end;
    default:
        break;
}
if ([email protected] > goldPoint) {
    mes "Sorry, you don't have any Gold";
    close2;
    cutin "",255;
    end;
}

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1556

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

Important Information

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