EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Set heading of new character when entering start zone (https://www.eqemulator.org/forums/showthread.php?t=35014)

iluvseq 03-08-2012 01:41 AM

Set heading of new character when entering start zone
 
I've modified the starting zone for characters using the World:SoFStartZoneID rule. New characters start in this zone properly. They appear at the zone 'safe point' so I modified the zone entry and set the safe_x, safe_y and safe_z appropriately.

However, new characters enter the world facing the wrong way!

How can I modify their heading?

iluvseq 03-09-2012 02:10 PM

I figured out a way to do it, but not sure if it's the best/most elegant solution.

I implemented a player.pl quest for the zone, with an EVENT_ENTERZONE routine that checks if they are entering the zone at the safe spot, and if so, calls quest::movepc() to change their heading.

One thing I noticed, the heading parameter in movepc() has to be double the heading returned by #loc


All times are GMT -4. The time now is 11:35 PM.

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