Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 12-01-2019, 03:14 PM
strugglegenerator's Avatar
strugglegenerator
Hill Giant
 
Join Date: May 2012
Location: Minnesota
Posts: 231
Default Spawn NPC from global_player.pl

I'm trying to spawn a Translocator NPC (Gandalf) at my player character when I shout the word "Gandalf" from any zone. This is the code I put into global_player.pl, but it's not working:

Code:
sub EVENT_ENTERZONE { 
$client->quest::unique_spawn(2001017,0,0,1985,-2243,-75);
}
I'm having a really hard time. I don't know how to spawn the NPC, nor do I know how to get it to spawn at the player instead of at the coordinates. I feel like I'm close, but obviously I have no idea what I'm doing. Coding is my weakness so I rely heavily on reverse engineering someone else's similar code, which is why I have been sifting through other scripts in the quests folder trying to find one that spawns an NPC at the player (like how pet's spawn when summoned) but it's proven illusive.

Can anyone point me in the right direction?
Reply With Quote
  #2  
Old 12-01-2019, 04:11 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Do you also have a global_player.lua?
Reply With Quote
  #3  
Old 12-01-2019, 04:56 PM
strugglegenerator's Avatar
strugglegenerator
Hill Giant
 
Join Date: May 2012
Location: Minnesota
Posts: 231
Default

Yes sir I have a global_player.lua file too
Reply With Quote
  #4  
Old 12-01-2019, 09:09 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

global_player.lua (or any .lua script) will rule over the .pl scripts, if you have two with same name. disable/rename the .lua one for the .pl to become active.
__________________
Hanging out at Antonica.World
Reply With Quote
Reply


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 06:44 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3