summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-25 12:27:31 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-25 12:27:31 -0300
commit72dce646fe3a901a222835c3ebef00f03281e5a7 (patch)
treebaaa83e0e0db61cd0ae2124cd9d0022400c6402f
parent4c3c83cf5678145a4ebb35fd9f0d0aa465b5a0a2 (diff)
downloadserverdata-72dce646fe3a901a222835c3ebef00f03281e5a7.tar.gz
serverdata-72dce646fe3a901a222835c3ebef00f03281e5a7.tar.bz2
serverdata-72dce646fe3a901a222835c3ebef00f03281e5a7.tar.xz
serverdata-72dce646fe3a901a222835c3ebef00f03281e5a7.zip
Sketches
-rw-r--r--npc/003-9/recepcionist.txt2
-rw-r--r--npc/003-9/scripted.txt30
2 files changed, 31 insertions, 1 deletions
diff --git a/npc/003-9/recepcionist.txt b/npc/003-9/recepcionist.txt
index ac6c62e5e..69b0ad890 100644
--- a/npc/003-9/recepcionist.txt
+++ b/npc/003-9/recepcionist.txt
@@ -29,7 +29,7 @@
POL_PlayerMoney(.@price);
percentheal 100, 100;
.@buff=(is_night() ? 15 : 10);
- SC_Bonus(900, INCMHPRATE, .@buff, .@buff); // FIXME: We don't want stacking
+ SC_Bonus(900, SC_INCMHPRATE, .@buff, .@buff); // FIXME: We don't want stacking
closeclientdialog;
warp "003-9", 36, 47;
dispbottom l("You feel refreshed!");
diff --git a/npc/003-9/scripted.txt b/npc/003-9/scripted.txt
index 673beeafe..d59ea7dea 100644
--- a/npc/003-9/scripted.txt
+++ b/npc/003-9/scripted.txt
@@ -18,7 +18,37 @@ OnInit:
end;
OnEvent1:
+ .@mapn$="tinn@"+getcharid(0);
+ @tinn_assa=monster(.@mapn$, 47, 56, "???", Assassin, 1);
+ @tinn_boss=monster(.@mapn$, 48, 57, "???", HoodedAssassin, 1);
+ unitwalk(@tinn_boss, 40, 47);
+ addtimer 400, .name$+"::OnEvent2";
+ end;
+
+OnEvent2:
+ .@mapn$="tinn@"+getcharid(0);
+ setunitdata(@tinn_assa, UDT_SPEED, 200); // So they walk at same pace
+ unitwalk(@tinn_assa, 40, 48);
+ addtimer 1860, .name$+"::OnEvent3"; // Roughly 9/11 tiles time
+ end;
+
+OnEvent3:
+ .@mapn$="tinn@"+getcharid(0);
+ unitwarp(@tinn_boss, .@mapn$, 40, 47);
+ sc_start(SC_STUN, 1440, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, @tinn_boss);
+ addtimer 440, .name$+"::OnEvent4"; // Roughly 2/11 tiles time
+ end;
+
+OnEvent4:
+ .@mapn$="tinn@"+getcharid(0);
+ unitwarp(@tinn_assa, .@mapn$, 40, 48);
+ sc_start(SC_STUN, 1000, 1, 10000, SCFLAG_NOAVOID|SCFLAG_FIXEDTICK, @tinn_assa);
+ addtimer 1000, .name$+"::OnEvent5";
+ end;
+
+OnEvent5:
setpcblock(255, false);
+ dispbottom l("I better report this to Lua!");
end;
}