Index: Mobs/Knotted_Root.lua =================================================================== --- Mobs/Knotted_Root.lua (revision 0) +++ Mobs/Knotted_Root.lua (working copy) @@ -0,0 +1,106 @@ +----------------------------------- +-- Area: Cirdas +-- NPC: Knotted roots +----------------------------------- + +require("scripts/globals/settings"); +require("scripts/globals/missions"); +require("scripts/globals/titles"); +require("scripts/globals/status"); + +----------------------------------- +-- onMobSpawn Action +----------------------------------- + +function onMobSpawn(mob) +end; + + +----------------------------------- +-- onMobEngaged +----------------------------------- +function onMobEngaged(mob,target) +end; + +----------------------------------- +-- onMobDeath Action +----------------------------------- + +function onMobDeath(mob,killer) + +local A = GetMobAction(17883664); +local B = GetMobAction(17883665); +local D = GetMobAction(17883670); +local E = GetMobAction(17883671); +local G = GetMobAction(17883677); +local H = GetMobAction(17883678); +local J = GetMobAction(17883685); +local K = GetMobAction(17883686); +local M = GetMobAction(17883693); +local N = GetMobAction(17883694); +local P = GetMobAction(17883656); +local Q = GetMobAction(17883657); + + + +local C = A+B; +local F = D+E; +local I = G+H; +local L = J+K; +local O = M+N; +local R = P+Q; + + + +if(C >= 42 and C <= 50)then +GetNPCByID(17883832):openDoor(3600); +GetNPCByID(17883833):openDoor(3600); +DespawnMob(17883666); +DespawnMob(17883667); +DespawnMob(17883668); +DespawnMob(17883669); +elseif(F >= 42 and F <= 50)then +GetNPCByID(17883840):openDoor(3600); +GetNPCByID(17883841):openDoor(3600); +DespawnMob(17883672); +DespawnMob(17883673); +DespawnMob(17883674); +DespawnMob(17883675); +DespawnMob(17883676); +elseif(I >= 42 and I <= 50)then +GetNPCByID(17883842):openDoor(3600); +GetNPCByID(17883843):openDoor(3600); +DespawnMob(17883679); +DespawnMob(17883680); +DespawnMob(17883681); +DespawnMob(17883682); +DespawnMob(17883683); +DespawnMob(17883684); +elseif(L >= 42 and L <= 50)then +GetNPCByID(17883836):openDoor(3600); +GetNPCByID(17883837):openDoor(3600); +DespawnMob(17883687); +DespawnMob(17883688); +DespawnMob(17883689); +DespawnMob(17883690); +DespawnMob(17883691); +DespawnMob(17883692); +elseif(O >= 42 and O <= 50)then +GetNPCByID(17883834):openDoor(3600); +GetNPCByID(17883835):openDoor(3600); +DespawnMob(17883695); +DespawnMob(17883696); +DespawnMob(17883697); +DespawnMob(17883698); +DespawnMob(17883699); +elseif(R >= 42 and R <= 50)then +GetNPCByID(17883844):openDoor(3600); +GetNPCByID(17883845):openDoor(3600); +DespawnMob(17883658); +DespawnMob(17883659); +DespawnMob(17883660); +DespawnMob(17883661); +DespawnMob(17883662); +DespawnMob(17883663); +end +end; Index: Zone.lua =================================================================== --- Zone.lua (revision 4120) +++ Zone.lua (working copy) @@ -19,12 +19,14 @@ -- onZoneIn ----------------------------------- -function onZoneIn(player,prevZone) -cs = -1; +function onZoneIn(player,prevZone) + cs = -1; + if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then + player:setPos(422,39,-284,196); + end + return cs; +end; -return cs; -end; - ----------------------------------- -- onRegionEnter -----------------------------------