Index: Mobs/Broadleaf_palm.lua =================================================================== --- Mobs/Broadleaf_palm.lua (revision 0) +++ Mobs/Broadleaf_palm.lua (working copy) @@ -0,0 +1,111 @@ +----------------------------------- +-- Area: Hennetiel +-- NPC: broadleaf palm +----------------------------------- + +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) +if(mob:getID() == 17850743)then +GetNPCByID(17850901):openDoor(3600); +GetNPCByID(17850902):openDoor(3600); +DespawnMob(17850744); +DespawnMob(17850745); +DespawnMob(17850746); +DespawnMob(17850747); +DespawnMob(17850748); +elseif(mob:getID() == 17850749)then +GetNPCByID(17850899):openDoor(3600); +GetNPCByID(17850900):openDoor(3600); +DespawnMob(17850750); +DespawnMob(17850751); +DespawnMob(17850752); +DespawnMob(17850753); +DespawnMob(17850754); +elseif(mob:getID() == 17850755)then +DespawnMob(17850756); +DespawnMob(17850757); +DespawnMob(17850758); +DespawnMob(17850759); +DespawnMob(17850760); +GetNPCByID(17850897):openDoor(3600); +GetNPCByID(17850898):openDoor(3600); +elseif(mob:getID() == 17850761)then +DespawnMob(17850762); +DespawnMob(17850763); +DespawnMob(17850764); +DespawnMob(17850765); +DespawnMob(17850766); +GetNPCByID(17850895):openDoor(3600); +GetNPCByID(17850896):openDoor(3600); +elseif(mob:getID() == 17850767)then +DespawnMob(17850768); +DespawnMob(17850769); +DespawnMob(17850770); +DespawnMob(17850771); +DespawnMob(17850772); +GetNPCByID(17850909):openDoor(3600); +GetNPCByID(17850910):openDoor(3600); +elseif(mob:getID() == 17850773)then +DespawnMob(17850774); +DespawnMob(17850775); +DespawnMob(17850776); +DespawnMob(17850777); +DespawnMob(17850778); +GetNPCByID(17850907):openDoor(3600); +GetNPCByID(17850908):openDoor(3600); +elseif(mob:getID() == 17850779)then +DespawnMob(17850780); +DespawnMob(17850781); +DespawnMob(17850782); +DespawnMob(17850783); +DespawnMob(17850784); +GetNPCByID(17850905):openDoor(3600); +GetNPCByID(17850906):openDoor(3600); +elseif(mob:getID() == 17850785)then +DespawnMob(17850786); +DespawnMob(17850787); +DespawnMob(17850788); +DespawnMob(17850789); +DespawnMob(17850790); +GetNPCByID(17850903):openDoor(3600); +GetNPCByID(17850904):openDoor(3600); +elseif(mob:getID() == 17850791)then +DespawnMob(17850792); +DespawnMob(17850793); +DespawnMob(17850794); +DespawnMob(17850795); +DespawnMob(17850796); +GetNPCByID(17850893):openDoor(3600); +GetNPCByID(17850894):openDoor(3600); +elseif(mob:getID() == 17850796)then +DespawnMob(17850797); +DespawnMob(17850798); +DespawnMob(17850799); +DespawnMob(17850800); +DespawnMob(17850801); +GetNPCByID(17850891):openDoor(3600); +GetNPCByID(17850892):openDoor(3600); +end +end; \ No newline at end of file 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(350,2,441,69); + end + return cs; +end; -return cs; -end; - ----------------------------------- -- onRegionEnter -----------------------------------