Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2007, 06:15 AM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default NPC summon another NPC

Any ideas on how to do this? Basically an npc will get spawned by the main npc and the main npc then summons the second npc to him, plain and simple, any help would be great.
__________________
Reply With Quote
  #2  
Old 01-20-2007, 08:19 AM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Default

Call of the Hero might work for ya.

$npc->castspell(1771,$mobid);

Replace the $mobid with the id of the spawned mob.

or mabe even

$npc->summon($mobid);
or
$npc->command_summon($mobid);

Hope that helps.
Later,
Rob
Reply With Quote
  #3  
Old 01-20-2007, 08:34 AM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default

will give that a try thanks
__________________
Reply With Quote
  #4  
Old 01-25-2007, 01:35 PM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default

Ok, I tried the above with no luck, I just want an npc to summon another npc once they pop. Here is what I have so far , which doesn't work. any help would be great.

elsif($itemcount {24075} && $itemcount {22056} == 1) {
quest::say("Ha.");
quest::spawn2(12032,0,0,1719.9,-1468.9,-96,10;
quest::castspell(1771,$12032);
quest::depop();

This is just a segment of the whole quest, btw. Just need this part working.

Or worst case, anyway the spawned npc can upon spawn goto the quest npc.
__________________

Last edited by solid11; 01-25-2007 at 10:07 PM..
Reply With Quote
  #5  
Old 01-25-2007, 02:41 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

you could use a signal and tell the npc to move possibly.. 1sec ill post script
Code:
elsif($itemcount {24075} && $itemcount {22056} == 1) {
quest::say("Ha.");
quest::spawn2(12032,0,0,1719.9,-1468.9,-96,108);
quest::signalwith(12032,"npcmov1");
quest::depop();
npc 12032..
Code:
sub EVENT_SIGNAL
{
if ($signal eq "npcmov1")
{
$npc->SendTo(x,y,z); #coords to move npc too
}
}
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com

Last edited by Cripp; 01-25-2007 at 10:48 PM..
Reply With Quote
  #6  
Old 01-25-2007, 02:47 PM
solid11's Avatar
solid11
Discordant
 
Join Date: Dec 2004
Posts: 266
Default

needs to be an instant move though, not walk or run to them since the roaming npc has a large grid.
__________________
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 11:23 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