From 72dce646fe3a901a222835c3ebef00f03281e5a7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 Feb 2020 12:27:31 -0300 Subject: Sketches --- npc/003-9/recepcionist.txt | 2 +- npc/003-9/scripted.txt | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-60-g2f50