Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2017, 04:32 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

This isn't the best, but it'll do what you want it to do I believe. When the player zones in the script checks if NPC ID # is spawned. If it is a timer for 30 seconds is set on the player. When the timer expires, the client is moved to the NPC's current co-ordinates.

Code:
sub EVENT_ENTERZONE {
    if ($entity_list->GetNPCByNPCTypeID(#)) {
        quest::settimer("Summon", 30);
    }
}

sub EVENT_TIMER {
    if ($timer eq "Summon") {
        if ($entity_list->GetNPCByNPCTypeID(#)) {
            $client->MovePC($zoneid, $entity_list->GetNPCByNPCTypeID(#)->GetX(), $entity_list->GetNPCByNPCTypeID(#)->GetY(), $entity_list->GetNPCByNPCTypeID(#)->GetZ(), $entity_list->GetNPCByNPCTypeID(#)->GetHeading());
        }
        quest::stoptimer("Summon");
    }
}
Reply With Quote
  #2  
Old 08-12-2017, 07:10 AM
The_Beast's Avatar
The_Beast
Discordant
 
Join Date: May 2016
Location: Under a rock
Posts: 290
Default

Quote:
Originally Posted by Kingly_Krab View Post
This isn't the best, but it'll do what you want it to do I believe.
I just checked this out myself. I put it in the player script in nexus for one of the scion ID's and I did indeed get
summoned. I don't need it for FC's purpose, but it gives me other ideas. Thanks to you Kingly
I am curious if something like this would be picked up as a "warp" in the db radar system. I'll check it out later.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:37 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3