Jump to content
  • 0

need to cutin to received gold points


Get Backers

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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

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