summaryrefslogtreecommitdiff
path: root/world/map/npc/009-4/torches.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2013-07-07 12:51:32 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2013-07-07 12:51:32 +0200
commit0dd134db3f6f67bb5e4401f1ba7bf3e97f201505 (patch)
tree4a200c1eeb684039390959107a6f413e065384fd /world/map/npc/009-4/torches.txt
parenta89882b69d9f12499404ca9d471d5a735bc63988 (diff)
parent135f0fe12564decad0d3e2ff8af8f798b0a7f4cf (diff)
downloadserverdata-0dd134db3f6f67bb5e4401f1ba7bf3e97f201505.tar.gz
serverdata-0dd134db3f6f67bb5e4401f1ba7bf3e97f201505.tar.bz2
serverdata-0dd134db3f6f67bb5e4401f1ba7bf3e97f201505.tar.xz
serverdata-0dd134db3f6f67bb5e4401f1ba7bf3e97f201505.zip
Merge remote-tracking branch 'origin/master' into waric
Conflicts: world/map/db/mob_db.txt
Diffstat (limited to 'world/map/npc/009-4/torches.txt')
-rw-r--r--world/map/npc/009-4/torches.txt36
1 files changed, 24 insertions, 12 deletions
diff --git a/world/map/npc/009-4/torches.txt b/world/map/npc/009-4/torches.txt
index 86dd95fe..03acc6b0 100644
--- a/world/map/npc/009-4/torches.txt
+++ b/world/map/npc/009-4/torches.txt
@@ -1,6 +1,7 @@
//# see detailed description at orum.txt
//# see detailed description at orum.txt
-function|script|GetTorchColor|{
+function|script|GetTorchColor|,
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
set @Mask, 15;
@@ -13,7 +14,8 @@ L_Error:
close;
}
-function|script|SetTorchColor|{
+function|script|SetTorchColor|,
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
if (@TorchColor < 1 || @TorchColor > 12) goto L_Error2;
@@ -30,7 +32,8 @@ L_Error2:
close;
}
-function|script|GetTorchIntensity|{
+function|script|GetTorchIntensity|,
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
set @Mask, 15;
@@ -43,7 +46,8 @@ L_Error:
close;
}
-function|script|SetTorchIntensity|{
+function|script|SetTorchIntensity|,
+{
if (@Torch < 0 || @Torch > 2) goto L_Error;
if (@TorchIntensity < 0 || @TorchIntensity > 2) goto L_Error2;
@@ -60,7 +64,8 @@ L_Error2:
close;
}
-function|script|DoneWithTorches|{
+function|script|DoneWithTorches|,
+{
if (OrumQuest < 11 && OrumQuest >= 8)
return;
@@ -80,26 +85,30 @@ L_Different:
}
// To make sure in range of torches
-function|script|InRangeTorch1|{
+function|script|InRangeTorch1|,
+{
if (isin("009-4.gat",67,20,69,25))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|InRangeTorch2|{
+function|script|InRangeTorch2|,
+{
if (isin("009-4.gat",65,41,69,46))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|InRangeTorch3|{
+function|script|InRangeTorch3|,
+{
if (isin("009-4.gat",33,84,37,88))
return;
mes "You're too far away to do anything with that torch.";
close;
}
-function|script|TorchLoop|{
+function|script|TorchLoop|,
+{
// Variables used here:
// @Torch - pass before calling
// @TorchColor - initialized here, updated throughout
@@ -259,7 +268,8 @@ L_Failed:
}
// First Torch
-009-4.gat,68,21,0|script|Torch|400,{
+009-4.gat,68,21,0|script|Torch|400,
+{
callfunc "InRangeTorch1";
callfunc "DoneWithTorches";
@@ -269,7 +279,8 @@ L_Failed:
}
// Second Torch
-009-4.gat,67,42,0|script|Torch|400,{
+009-4.gat,67,42,0|script|Torch|400,
+{
callfunc "InRangeTorch2";
callfunc "DoneWithTorches";
@@ -279,7 +290,8 @@ L_Failed:
}
// Third Torch
-009-4.gat,33,86,0|script|Torch|400,{
+009-4.gat,33,86,0|script|Torch|400,
+{
callfunc "InRangeTorch3";
callfunc "DoneWithTorches";