summaryrefslogtreecommitdiff
path: root/npc/002-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-18 00:19:27 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-18 00:19:27 -0200
commit7a8274887f2240698531d9692fcc9aeb97ed75c8 (patch)
tree133f30873f0337911f896d80740d932d1e45df24 /npc/002-1
parent32d3eff4e50cceec9e6eee88ae107326f85abbe5 (diff)
downloadserverdata-7a8274887f2240698531d9692fcc9aeb97ed75c8.tar.gz
serverdata-7a8274887f2240698531d9692fcc9aeb97ed75c8.tar.bz2
serverdata-7a8274887f2240698531d9692fcc9aeb97ed75c8.tar.xz
serverdata-7a8274887f2240698531d9692fcc9aeb97ed75c8.zip
Simplify ship hold doors
Diffstat (limited to 'npc/002-1')
-rw-r--r--npc/002-1/peter.txt22
1 files changed, 6 insertions, 16 deletions
diff --git a/npc/002-1/peter.txt b/npc/002-1/peter.txt
index 221f33f84..0202ff984 100644
--- a/npc/002-1/peter.txt
+++ b/npc/002-1/peter.txt
@@ -27,27 +27,17 @@
// @pt_mob = ID of the monster you were tasked with killing
002-1,35,24,0 script AreaNPC#Peter NPC_HIDDEN,0,1,{
-
+ end;
OnTouch:
- .@q = getq(ShipQuests_Peter);
- .@q2 = getq2(ShipQuests_Peter);
- .@q3 = getq3(ShipQuests_Peter);
- if (BaseLevel < 8) goto L_Stop;
-
- if (.@q && isinstance(.@q3) && .@q3 > 0) goto L_Rfail;
- doevent "Peter::OnGiveTask";
- close;
-
-L_Stop:
- doevent "Peter::OnStop";
- close;
-
-L_Rfail:
- doevent "Peter::OnReturnFail";
+ doevent "Peter::OnPeterMain";
close;
}
002-1,33,25,0 script Peter NPC_RATTO_SAILOR,{
+ goto L_Main;
+
+OnPeterMain:
+L_Main:
.@q = getq(ShipQuests_Peter);
.@q2 = getq2(ShipQuests_Peter);
.@q3 = getq3(ShipQuests_Peter);