Jump to content
  • 0

My healer doesn't work D:


insarius

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   3
  • Joined:  09/21/12
  • Last Seen:  

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]

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Change This:

case 1:
set Zeny,Zeny - ( BaseLevel * 100 );
mes "All healed up!";

To:

case 1:
set Zeny,Zeny - ( BaseLevel * 100 );
mes "All healed up!";
percentheal 100,100;
close;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   3
  • Joined:  09/21/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   3
  • Joined:  09/21/12
  • Last Seen:  

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

Thanks, I missed that one! :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Tip: write "next;" befor you start "switch(select"

Edited by WhiteEagle
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   3
  • Joined:  09/21/12
  • Last Seen:  

Thanks everyone, my healer works perfectly now!

Should I release it? :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Pretty standard, but i'll use the formula.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

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:?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  106
  • Reputation:   3
  • Joined:  09/21/12
  • Last Seen:  

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

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