insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Share Posted October 9, 2012 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] Quote Link to comment Share on other sites More sharing options...
WhiteEagle Posted October 9, 2012 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 12 hours ago Share Posted October 9, 2012 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; Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 9, 2012 any error show in your map server ? check it...or show it here... Quote Link to comment Share on other sites More sharing options...
insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Author Share Posted October 9, 2012 (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 October 9, 2012 by insarius Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 9, 2012 mes "Healing costs "+ ( BaseLevel * 100 )+" Zeny."; Quote Link to comment Share on other sites More sharing options...
insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Author Share Posted October 9, 2012 mes "Healing costs "+ ( BaseLevel * 100 )+" Zeny."; Thanks, I missed that one! Quote Link to comment Share on other sites More sharing options...
WhiteEagle Posted October 9, 2012 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 12 hours ago Share Posted October 9, 2012 (edited) Tip: write "next;" befor you start "switch(select" Edited October 9, 2012 by WhiteEagle Quote Link to comment Share on other sites More sharing options...
Vach Posted October 9, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 326 Reputation: 19 Joined: 09/27/12 Last Seen: February 27, 2021 Share Posted October 9, 2012 (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 October 9, 2012 by Vach Quote Link to comment Share on other sites More sharing options...
insarius Posted October 9, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Author Share Posted October 9, 2012 Thanks everyone, my healer works perfectly now! Should I release it? Quote Link to comment Share on other sites More sharing options...
Vach Posted October 9, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 326 Reputation: 19 Joined: 09/27/12 Last Seen: February 27, 2021 Share Posted October 9, 2012 Pretty standard, but i'll use the formula. Quote Link to comment Share on other sites More sharing options...
Spre Posted October 9, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 103 Reputation: 28 Joined: 09/20/12 Last Seen: January 14, 2019 Share Posted October 9, 2012 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:? Quote Link to comment Share on other sites More sharing options...
insarius Posted October 10, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 106 Reputation: 3 Joined: 09/21/12 Last Seen: August 20, 2015 Author Share Posted October 10, 2012 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 Quote Link to comment Share on other sites More sharing options...
Question
insarius
What's wrong with it?
[atleast Im trying]
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.