Jump to content

Question

Posted

Hi!

If i put the "else" into the script, its not working anymore, otherwise it needs the "else" to has sense. could you help me out?

                if(Zeny <= 100000){mes "You dont have enough zeny";}close;
        else{
        set Zeny, Zeny-100000;
        skilleffect 34,0; sc_start SC_BLESSING,500000,10;
        skilleffect 29,0; sc_start SC_INCREASEAGI,500000,10;
        skilleffect 33,0; sc_start SC_ANGELUS,500000,10;
        skilleffect 74,0; sc_start SC_MAGNIFICAT,500000,5;
        skilleffect 75,0; sc_start SC_GLORIA,500000,5;
        skilleffect 66,0; sc_start SC_IMPOSITIO,500000,5;
        skilleffect 361,0; sc_start SC_ASSUMPTIO,500000,5;}
        close;
 

3 answers to this question

Recommended Posts

  • 0
Posted
    if(Zeny <= 100000){
        mes "You dont have enough zeny";
        close;
    }
    else{
        set Zeny, Zeny-100000;
        skilleffect 34,0; sc_start SC_BLESSING,500000,10;
        skilleffect 29,0; sc_start SC_INCREASEAGI,500000,10;
        skilleffect 33,0; sc_start SC_ANGELUS,500000,10;
        skilleffect 74,0; sc_start SC_MAGNIFICAT,500000,5;
        skilleffect 75,0; sc_start SC_GLORIA,500000,5;
        skilleffect 66,0; sc_start SC_IMPOSITIO,500000,5;
        skilleffect 361,0; sc_start SC_ASSUMPTIO,500000,5;
        close;
    }

 

  • Upvote 1
  • 0
Posted (edited)

because there was a close outside the bracket.   if(Zeny <= 100000){mes "You dont have enough zeny";}close;

Just remove it and it should work fine.

 

 

Edited by Technoken
  • Upvote 1

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