insarius Posted October 9, 2012 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
WhiteEagle Posted October 9, 2012 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
Emistry Posted October 9, 2012 Posted October 9, 2012 any error show in your map server ? check it...or show it here... Quote
insarius Posted October 9, 2012 Author 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
Emistry Posted October 9, 2012 Posted October 9, 2012 mes "Healing costs "+ ( BaseLevel * 100 )+" Zeny."; Quote
insarius Posted October 9, 2012 Author Posted October 9, 2012 mes "Healing costs "+ ( BaseLevel * 100 )+" Zeny."; Thanks, I missed that one! Quote
WhiteEagle Posted October 9, 2012 Posted October 9, 2012 (edited) Tip: write "next;" befor you start "switch(select" Edited October 9, 2012 by WhiteEagle Quote
Vach Posted October 9, 2012 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
insarius Posted October 9, 2012 Author Posted October 9, 2012 Thanks everyone, my healer works perfectly now! Should I release it? Quote
Spre Posted October 9, 2012 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
insarius Posted October 10, 2012 Author 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
Question
insarius
What's wrong with it?
[atleast Im trying]
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.