// TMW2 scripts. // Author: // Jesusalva // Description: // Scripted functions (Lua) 003-9,58,121,0 script #TInnClockPassage NPC_NO_SPRITE,{ dispbottom l("If I only could find another way in..."); close; OnInit: .sex = G_OTHER; .distance = 3; end; } 003-9,0,0,0 script #TulimInnStory NPC_HIDDEN,{ 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; }