Jump to content
  • 0

My healer doesn't work D:


Question

Posted

prontera,162,193,4    script    Healer    569,{

   if( BaseLevel < 50 ){
   mes "You are below level 50, healing is free for you!";
   specialeffect2 313; percentheal 100,100;
   close;
}
   if( Zeny < ( BaseLevel * 100 ) ){
   mes "I'm sorry, healing costs "+ ( BaseLevel * 100 )+" Zeny.";
   close;
}
   mes "Healing costs "+ ( BaseLevel * 100 )+ Zeny.""
   mes "Would you like a heal?"
   switch(select("Yes, nurse!:No, thanks!")){
   case 1:
   set Zeny,Zeny - ( BaseLevel * 100 );
   mes "All healed up!";
   case 2:
   mes "Alright, stay safe!";
   close2;
}
close;

}

What's wrong with it?

[atleast Im trying]

11 answers to this question

Recommended Posts

Posted (edited)

any error show in your map server ? check it...or show it here...

close;
}
mes "Healing costs "+ ( BaseLevel * 100 )+ Zeny.""
mes "Would you like a heal?"

Error in that line, it doesn't execute the step where you are above... wait...

close;
}
if( BaseLevel > 49 ){
mes "Healing costs "+ ( BaseLevel * 100 )+ Zeny.""
mes "Would you like a heal?"
switch(select("Yes, nurse!:No, thanks!")){
case 1:
set Zeny,Zeny - ( BaseLevel * 100 );
mes "All healed up!";
specialeffect2 313; percentheal 100,100;
case 2:
mes "Alright, stay safe!";
close2;
}

Like this?

EDIT: Missed some curly's, fixed those aswell.

Edited by insarius
Posted (edited)

This is unrelated to the script executing properly, but it is still an error.

Change this:

mes "Healing costs "+ ( BaseLevel * 100 )+ Zeny.""

To this:

mes "Healing costs "+ ( BaseLevel * 100 ) + "Zeny."

WhiteEagle solved your other issue...

EDIT: Wow I typed that way too slow, lol.

Edited by Vach
Posted

how does it work perfectly?

in the revised fixed portion submitted to you it is missing a key part of the script to even load.

mes "Would you like a heal?"

Notice anything missing? it should not load with that piece missing.

also where is your close; just before case 2:?

Posted

how does it work perfectly?

in the revised fixed portion submitted to you it is missing a key part of the script to even load.

mes "Would you like a heal?"

Notice anything missing? it should not load with that piece missing.

also where is your close; just before case 2:?

It's fixed now mate, and it works perfectly now. ^^

I noticed some missing commands and curlies aswell, fixed them on my own.

I'm being proud of myself lol, learning to script yay

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