summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorPatskie <escalona3413@gmail.com>2013-11-30 14:00:06 +0800
committerPatskie <escalona3413@gmail.com>2013-11-30 18:33:35 +0800
commit6f26bde38a967620b1d275136a72c5c181fbe6ae (patch)
tree3e3570dbeacaca91bc3bdd085febe7d9f495cf26 /npc
parent19758ee2206dd4d1183028e9f25c2b86f6716b73 (diff)
downloadhercules-6f26bde38a967620b1d275136a72c5c181fbe6ae.tar.gz
hercules-6f26bde38a967620b1d275136a72c5c181fbe6ae.tar.bz2
hercules-6f26bde38a967620b1d275136a72c5c181fbe6ae.tar.xz
hercules-6f26bde38a967620b1d275136a72c5c181fbe6ae.zip
- Fix Bug 7850
- Replace incorrect end commands with close - Update variable syntax Signed-off-by: Patskie <escalona3413@gmail.com> Fix variables and character stuck at healing Signed-off-by: Patskie <escalona3413@gmail.com>
Diffstat (limited to 'npc')
-rw-r--r--npc/custom/healer.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/npc/custom/healer.txt b/npc/custom/healer.txt
index e11e2a647..59d67b083 100644
--- a/npc/custom/healer.txt
+++ b/npc/custom/healer.txt
@@ -3,34 +3,35 @@
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
-//= 1.1
+//= 1.2
//===== Description: =========================================
//= Basic healer script.
//===== Additional Comments: =================================
//= 1.0 Initial script.
//= 1.1 Aligned coordinates with @go.
+//= 1.2 Fix variables and character stuck at healing
//============================================================
- script Healer -1,{
- set .@price,0; // Zeny required for heal
- set .@Buffs,0; // Also buff players? (1: yes / 0: no)
- set .@Delay,0; // Heal delay, in seconds
+ .@price = 0; // Zeny required for heal
+ .@Buffs = 0; // Also buff players? (1: yes / 0: no)
+ .@Delay = 0; // Heal delay, in seconds
if (@HD > gettimetick(2)) end;
if (.@price) {
message strcharinfo(0),"Healing costs "+.@price+" Zeny.";
if (Zeny < .@price) end;
- if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) end;
- set Zeny, Zeny-.@price;
+ if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close;
+ Zeny -= .@price;
}
specialeffect2 EF_HEAL2; percentheal 100,100;
if (.@Buffs) {
specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI,240000,10;
specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
}
- if (.@Delay) set @HD, gettimetick(2)+.@Delay;
- end;
+ if (.@Delay) @HD = gettimetick(2)+.@Delay;
+ close;
}