Jump to content
  • 0

need to cutin to received gold points


Question

Posted (edited)

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(.@gpoint, 1, 30000))
            close;
        if (.@gpoint > goldPoint) {
            mes "Sorry, you don't have any Gold";
            close2;
            cutin "",255;
            end;

Edited by Get Backers

1 answer to this question

Recommended Posts

  • 0
Posted
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(.@gpoint, 1, 30000))
            close;
        if (.@gpoint > goldPoint) {
            mes "Sorry, you don't have any Gold";
            close2;
            cutin "",255;
            end;

switch(input(.@gpoint, 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 (.@gpoint > 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

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