EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   zone instancing and zone points (https://www.eqemulator.org/forums/showthread.php?t=34965)

blackdragonsdg 02-27-2012 04:31 AM

zone instancing and zone points
 
I was working on an instance version of Hate's Fury when I encountered a snag. The up and down ladders within the zone are not working at all within the instance version of the zone despite creating new zone_points entries in the database. This is probably one of the reasons why the columns zoneinst and target_instance exist. The column target_instance is self-explanatory but still a problem since it is not a predictable value as I am using a plugin to create the zone instance. As for the column zoneinst I have no idea what is suppose to go in this field. Attempting to use the existing entries in the database as a template was not much help since the zones that had this field populated with something other than 0 have not been implemented yet.

I started to use proximity based quest triggers to move the players around but quest::movepc and quest::gmmove don't account for zone instancing which will cause the player to be sent to the normal version of the zone. Any ideas on how to get around this?

sorvani 02-27-2012 11:08 AM

MovePCInstance

Here is the zoner in Barindu that ports people into Vxed and Tipt
Code:

sub EVENT_SPAWN {
          $x = $npc->GetX();
          $y = $npc->GetY();
        quest::set_proximity($x - 25, $x + 25, $y - 25, $y + 25);
}

sub EVENT_ENTER {
        $InInstanceTipt = quest::GetInstanceID("tipt",0);
        $InInstanceVxed = quest::GetInstanceID("vxed",0);
        if($InInstanceTipt > 0){
                quest::MovePCInstance(289, $InInstanceTipt, -448, -2374, 12);
        }
        elsif($InInstanceVxed > 0){
                    quest::MovePCInstance(290, $InInstanceVxed, -427, -3552, 14);
        }       
        else {
                $client->Message(13, "You are not a part of an instance!");
        }
}


blackdragonsdg 02-27-2012 04:56 PM

Now how did I overlook that one. Thanks for pointing that out.


All times are GMT -4. The time now is 03:48 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.