diff options
Diffstat (limited to 'npc/custom/healers')
-rw-r--r-- | npc/custom/healers/heal.txt | 22 | ||||
-rw-r--r-- | npc/custom/healers/heal_payment.txt | 104 |
2 files changed, 64 insertions, 62 deletions
diff --git a/npc/custom/healers/heal.txt b/npc/custom/healers/heal.txt index 94d2f4f3b..09f14cb60 100644 --- a/npc/custom/healers/heal.txt +++ b/npc/custom/healers/heal.txt @@ -1,11 +1,11 @@ //===== rAthena Script ======================================= -//= Heal Npc +//= Healer //===== By: ================================================== -//= Lotsa People (1.x) +//= lots of people //===== Current Version: ===================================== //= 3.1 //===== Compatible With: ===================================== -//= rAthena 0.1+; +//= rAthena SVN //===== Description: ========================================= //= Healer NPC Which Heals For Free //===== Additional Comments: ================================= @@ -16,20 +16,22 @@ //============================================================ - script Healer#h1-1::Healer 742,{ + callfunc "F_ClearGarbage",0; + mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; - if (select("Heal:No thanks") == 2) { + if (select("Heal:No thanks") == 1) { + percentheal 100,100; mes "[Healer]"; - mes "Allright, come back if you need a heal."; - close; + mes "Wonderfull, You are now healed!."; + mes "Have fun adventuring!!"; + } else { + mes "[Healer]"; + mes "Alright, come back if you need a heal."; } - percentheal 100,100; - mes "[Healer]"; - mes "Wonderfull, You are now healed!."; - mes "Have fun adventuring!!"; close; } diff --git a/npc/custom/healers/heal_payment.txt b/npc/custom/healers/heal_payment.txt index da1cd87db..0cc30e6f6 100644 --- a/npc/custom/healers/heal_payment.txt +++ b/npc/custom/healers/heal_payment.txt @@ -1,11 +1,11 @@ //===== rAthena Script ======================================= -//= Healer Script (/w payments) +//= Healer (/w payments) //===== By: ================================================== //= Yor & abunch of other people //===== Current Version: ===================================== //= 1.3 //===== Compatible With: ===================================== -//= Any Athena Version +//= rAthena SVN //===== Description: ========================================= //= NPC heals/regenerates people against zenys //===== Additional Comments: ================================= @@ -24,69 +24,69 @@ set @tempSp, ((MaxSp-Sp) * BaseLevel) / 5; if (@tempHp > 0) goto WOUNDED; if (@tempSpReal > 0) goto ONLY_REGENERATION; - + mes "[Healer]"; mes "Oh?"; mes "You do not look like a person in pain."; close; - WOUNDED: - if (@tempSp > 0) goto WITH_REGENERATION; - mes "[Healer]"; - mes "Oh dear, you look really hurt,"; - mes "I can cure you for: "+@tempHp+" z)"; - mes "Do you want me to cure you?"; - next; - menu "Healings ("+@tempHp+"z)",HEALINGS,"No, thanks",CANCEL; +WOUNDED: + if (@tempSp > 0) goto WITH_REGENERATION; + mes "[Healer]"; + mes "Oh dear, you look really hurt,"; + mes "I can cure you for: "+@tempHp+" z)"; + mes "Do you want me to cure you?"; + next; + menu "Healings ("+@tempHp+"z)",HEALINGS,"No, thanks",CANCEL; - WITH_REGENERATION: - mes "[Healer]"; - mes "Do you want only your HP to be healed? ("+@tempHp+" z)"; - mes "Do you want only your SP to be healed? ("+@tempSp+" z)?"; - mes "Or Would you like both? ("+(@tempHp+@tempSp)+" z)"; - next; - menu "Only HP ("+@tempHp+"z)",HEALINGS,"Only SP ("+@tempSp+"z)",REGENERATION,"Both HP & SP ("+(@tempHp+@tempSp)+"z)",HEALINGS_AND_REGEN,"Nothing, thanks",CANCEL; +WITH_REGENERATION: + mes "[Healer]"; + mes "Do you want only your HP to be healed? ("+@tempHp+" z)"; + mes "Do you want only your SP to be healed? ("+@tempSp+" z)?"; + mes "Or Would you like both? ("+(@tempHp+@tempSp)+" z)"; + next; + menu "Only HP ("+@tempHp+"z)",HEALINGS,"Only SP ("+@tempSp+"z)",REGENERATION,"Both HP & SP ("+(@tempHp+@tempSp)+"z)",HEALINGS_AND_REGEN,"Nothing, thanks",CANCEL; - ONLY_REGENERATION: - mes "[Healer]"; - mes "So, you only want your SP to heal? ("+@tempSp+" z)"; - mes "I need to make a living..."; - next; - menu "Regeneration ("+@tempSp+"z)",REGENERATION,"No, thanks",CANCEL; +ONLY_REGENERATION: + mes "[Healer]"; + mes "So, you only want your SP to heal? ("+@tempSp+" z)"; + mes "I need to make a living..."; + next; + menu "Regeneration ("+@tempSp+"z)",REGENERATION,"No, thanks",CANCEL; - HEALINGS: - if (Zeny < @tempHp) goto NO_ZENYS; - set Zeny, Zeny-@tempHp; - heal @tempHp,0; - goto FIN; +HEALINGS: + if (Zeny < @tempHp) goto NO_ZENYS; + set Zeny, Zeny-@tempHp; + heal @tempHp,0; + goto FIN; - REGENERATION: - if (Zeny < @tempSp) goto NO_ZENYS; - set Zeny, Zeny-@tempSp; - heal 0,@tempSpReal; - goto FIN; +REGENERATION: + if (Zeny < @tempSp) goto NO_ZENYS; + set Zeny, Zeny-@tempSp; + heal 0,@tempSpReal; + goto FIN; - HEALINGS_AND_REGEN: - if (Zeny < (@tempHp+@tempSp)) goto NO_ZENYS; - set Zeny, Zeny-(@tempHp+@tempSp); - heal @tempHp,@tempSpReal; - goto FIN; +HEALINGS_AND_REGEN: + if (Zeny < (@tempHp+@tempSp)) goto NO_ZENYS; + set Zeny, Zeny-(@tempHp+@tempSp); + heal @tempHp,@tempSpReal; + goto FIN; - NO_ZENYS: - mes "[Healer]"; - mes "Oh dear, you don't look like you have enough zeny."; - mes "Sorry, i can't help you."; - close; +NO_ZENYS: + mes "[Healer]"; + mes "Oh dear, you don't look like you have enough zeny."; + mes "Sorry, i can't help you."; + close; - FIN: - mes "[Healer]"; - mes "You are Completely Healed."; - close; +FIN: + mes "[Healer]"; + mes "You are Completely Healed."; + close; - CANCEL: - mes "[Healer]"; - mes "Allright. Please come again if you need anything."; - close; +CANCEL: + mes "[Healer]"; + mes "Allright. Please come again if you need anything."; + close; } |