diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-21 11:01:46 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-21 11:01:46 +0000 |
commit | 163a6fdbb3b579497c3572d3ccd052d16754f63f (patch) | |
tree | 64e8978aaad8835261b30524895fc7f99f400b3d /npc | |
parent | 1e0004db01b6590a3564b64ec13c7dcad2927ee7 (diff) | |
download | hercules-163a6fdbb3b579497c3572d3ccd052d16754f63f.tar.gz hercules-163a6fdbb3b579497c3572d3ccd052d16754f63f.tar.bz2 hercules-163a6fdbb3b579497c3572d3ccd052d16754f63f.tar.xz hercules-163a6fdbb3b579497c3572d3ccd052d16754f63f.zip |
* Some minor issue on Payment Healer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5690 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r-- | npc/Changelog.txt | 3 | ||||
-rw-r--r-- | npc/custom/healers/heal_payment.txt | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt index 9dd46e59d..6ff73049a 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -26,7 +26,8 @@ Nexon == Changelog ==
Date Added
-======
+03/21
+ * Improved payment healer. [Lance]
03/20
* Added temp Job quests of Ninja and Gunslinger, thx2 Gywall [Lupus]
* Fixed endless warping loops, thanks to Manipulator [Lupus]
diff --git a/npc/custom/healers/heal_payment.txt b/npc/custom/healers/heal_payment.txt index 325bfd008..bcb6d4e1e 100644 --- a/npc/custom/healers/heal_payment.txt +++ b/npc/custom/healers/heal_payment.txt @@ -19,9 +19,10 @@ prontera.gat,150,184,5 script Healer#h1-1::Healer 742,{
set @tempHp, MaxHp-Hp;
+ set @tempSpReal, MaxSp-Sp;
set @tempSp, ((MaxSp-Sp) * BaseLevel) / 5;
if (@tempHp > 0) goto WOUNDED;
- if (@tempSp > 0) goto ONLY_REGENERATION;
+ if (@tempSpReal > 0) goto ONLY_REGENERATION;
mes "[Healer]";
mes "Oh?";
@@ -55,19 +56,19 @@ prontera.gat,150,184,5 script Healer#h1-1::Healer 742,{ HEALINGS:
if (Zeny < @tempHp) goto NO_ZENYS;
set Zeny, Zeny-@tempHp;
- heal 30000,0;
+ heal @tempHp,0;
goto FIN;
REGENERATION:
if (Zeny < @tempSp) goto NO_ZENYS;
set Zeny, Zeny-@tempSp;
- heal 0,30000;
+ heal 0,@tempSpReal;
goto FIN;
HEALINGS_AND_REGEN:
if (Zeny < (@tempHp+@tempSp)) goto NO_ZENYS;
set Zeny, Zeny-(@tempHp+@tempSp);
- heal 30000,30000;
+ heal @tempHp,@tempSpReal;
goto FIN;
NO_ZENYS:
|