summaryrefslogtreecommitdiff
path: root/npc/042-10/ctrl.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 04:55:21 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 04:55:21 -0300
commitc53d1cfb3d94fb364ceaa123359e5ac7a4b9d065 (patch)
treebf81e547451514a3cab88891f74a0dbafd206c27 /npc/042-10/ctrl.txt
parent78a36343504d42a6af3d5421ead1b1448fa737e0 (diff)
downloadserverdata-c53d1cfb3d94fb364ceaa123359e5ac7a4b9d065.tar.gz
serverdata-c53d1cfb3d94fb364ceaa123359e5ac7a4b9d065.tar.bz2
serverdata-c53d1cfb3d94fb364ceaa123359e5ac7a4b9d065.tar.xz
serverdata-c53d1cfb3d94fb364ceaa123359e5ac7a4b9d065.zip
Fix several tiny bugs and add some debug level to Jail
On the first live test I'm doing
Diffstat (limited to 'npc/042-10/ctrl.txt')
-rw-r--r--npc/042-10/ctrl.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt
index e50df4c47..1e8bca386 100644
--- a/npc/042-10/ctrl.txt
+++ b/npc/042-10/ctrl.txt
@@ -40,7 +40,7 @@ L_NoAccess:
}
// Boss Room Warning
-042-10,150,25,0 script Warning#Kamelot NPC_HIDDEN,{
+042-10,150,25,0 script Warning#Kamelot NPC_NO_SPRITE,{
mesc ".:: "+l("DANGER!")+" ::.", 1;
mes "";
mesc l("I've sealed a massive amount of dark magic here."), 1;
@@ -227,7 +227,7 @@ function script KatazuliCore {
////////////////////////
// Katazuli's Engravings
-042-10,36,110,0 script Engraving#Katazuli1 NPC_HIDDEN,{
+042-10,36,110,0 script Engraving#Katazuli1 NPC_NO_SPRITE,{
mes "Read tutorial?";
select l("No"), l("Yes");
if (@menu == 2)
@@ -237,7 +237,7 @@ OnInit:
.distance=4;
end;
}
-042-10,124,85,0 duplicate(Engraving#Katazuli1) Engraving#Katazuli2 NPC_HIDDEN
+042-10,124,85,0 duplicate(Engraving#Katazuli1) Engraving#Katazuli2 NPC_NO_SPRITE
////////////////////////
@@ -297,7 +297,7 @@ OnTimer60000:
// Recover energy
.@id=.kataId;
.@m$=instance_mapname("042-10");
- .@power=min(0, getd("$@GTEMP_"+.@id+"_"+.@m$)-.@pow);
+ .@power=max(0, getd("$@GTEMP_"+.@id+"_"+.@m$)-.@pow);
setd("$@GTEMP_"+.@id+"_"+.@m$, .@power);
initnpctimer;
end;
@@ -361,7 +361,7 @@ OnTimer60000:
// Recover energy
.@id=.kataId;
.@m$=instance_mapname("042-10");
- .@power=min(0, getd("$@GTEMP_"+.@id+"_"+.@m$)-.@pow);
+ .@power=max(0, getd("$@GTEMP_"+.@id+"_"+.@m$)-.@pow);
setd("$@GTEMP_"+.@id+"_"+.@m$, .@power);
initnpctimer;
end;
@@ -500,10 +500,10 @@ OnInit:
}
// Other switches
-042-10,80,115,0 duplicate(#K4210Switch_1) #K4210Switch_2 NPC_HIDDEN,0,0 // S
-042-10,63,76,0 duplicate(#K4210Switch_1) #K4210Switch_4 NPC_HIDDEN,0,0 // W
-042-10,100,79,0 duplicate(#K4210Switch_1) #K4210Switch_8 NPC_HIDDEN,0,0 // E
-042-10,82,64,0 duplicate(#K4210Switch_1) #K4210Switch_16 NPC_HIDDEN,0,0 // C
+042-10,80,115,0 duplicate(#K4210Switch_1) #K4210Switch_2 NPC_SWITCH_OFFLINE,0,0 // S
+042-10,63,76,0 duplicate(#K4210Switch_1) #K4210Switch_4 NPC_SWITCH_OFFLINE,0,0 // W
+042-10,100,79,0 duplicate(#K4210Switch_1) #K4210Switch_8 NPC_SWITCH_OFFLINE,0,0 // E
+042-10,82,64,0 duplicate(#K4210Switch_1) #K4210Switch_16 NPC_SWITCH_OFFLINE,0,0 // C