* Some minor issue on Payment Healer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5690 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
d314909d79
commit
d8aebfa933
@ -26,7 +26,8 @@ Nexon
|
|||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
Date Added
|
Date Added
|
||||||
======
|
03/21
|
||||||
|
* Improved payment healer. [Lance]
|
||||||
03/20
|
03/20
|
||||||
* Added temp Job quests of Ninja and Gunslinger, thx2 Gywall [Lupus]
|
* Added temp Job quests of Ninja and Gunslinger, thx2 Gywall [Lupus]
|
||||||
* Fixed endless warping loops, thanks to Manipulator [Lupus]
|
* Fixed endless warping loops, thanks to Manipulator [Lupus]
|
||||||
|
@ -19,9 +19,10 @@
|
|||||||
|
|
||||||
prontera.gat,150,184,5 script Healer#h1-1::Healer 742,{
|
prontera.gat,150,184,5 script Healer#h1-1::Healer 742,{
|
||||||
set @tempHp, MaxHp-Hp;
|
set @tempHp, MaxHp-Hp;
|
||||||
|
set @tempSpReal, MaxSp-Sp;
|
||||||
set @tempSp, ((MaxSp-Sp) * BaseLevel) / 5;
|
set @tempSp, ((MaxSp-Sp) * BaseLevel) / 5;
|
||||||
if (@tempHp > 0) goto WOUNDED;
|
if (@tempHp > 0) goto WOUNDED;
|
||||||
if (@tempSp > 0) goto ONLY_REGENERATION;
|
if (@tempSpReal > 0) goto ONLY_REGENERATION;
|
||||||
|
|
||||||
mes "[Healer]";
|
mes "[Healer]";
|
||||||
mes "Oh?";
|
mes "Oh?";
|
||||||
@ -55,19 +56,19 @@ prontera.gat,150,184,5 script Healer#h1-1::Healer 742,{
|
|||||||
HEALINGS:
|
HEALINGS:
|
||||||
if (Zeny < @tempHp) goto NO_ZENYS;
|
if (Zeny < @tempHp) goto NO_ZENYS;
|
||||||
set Zeny, Zeny-@tempHp;
|
set Zeny, Zeny-@tempHp;
|
||||||
heal 30000,0;
|
heal @tempHp,0;
|
||||||
goto FIN;
|
goto FIN;
|
||||||
|
|
||||||
REGENERATION:
|
REGENERATION:
|
||||||
if (Zeny < @tempSp) goto NO_ZENYS;
|
if (Zeny < @tempSp) goto NO_ZENYS;
|
||||||
set Zeny, Zeny-@tempSp;
|
set Zeny, Zeny-@tempSp;
|
||||||
heal 0,30000;
|
heal 0,@tempSpReal;
|
||||||
goto FIN;
|
goto FIN;
|
||||||
|
|
||||||
HEALINGS_AND_REGEN:
|
HEALINGS_AND_REGEN:
|
||||||
if (Zeny < (@tempHp+@tempSp)) goto NO_ZENYS;
|
if (Zeny < (@tempHp+@tempSp)) goto NO_ZENYS;
|
||||||
set Zeny, Zeny-(@tempHp+@tempSp);
|
set Zeny, Zeny-(@tempHp+@tempSp);
|
||||||
heal 30000,30000;
|
heal @tempHp,@tempSpReal;
|
||||||
goto FIN;
|
goto FIN;
|
||||||
|
|
||||||
NO_ZENYS:
|
NO_ZENYS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user