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 04-18-2009, 10:03 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Having monster attack player when spawns.

I am trying to get this to happen. The player talks to one person and then that person will disappear and spawn another NPC. I am trying to make that monster attack the player right when it spawns, but it isn't working. I tried Sub EVENT_SPAWN{
quest::attack($name);
}
and also tried setting up a proximity for the mob when it spawns and have it attack anyone who enters that proximity. Neither of these worked.
Reply With Quote
  #2  
Old 04-18-2009, 11:46 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Also, i was testing
Code:
sub EVENT_SPAWN{
quest::attack($char);
}
on a mob in gfay to see if it worked, and when the monster spawns it just says "I am unable to attack."
Reply With Quote
  #3  
Old 04-18-2009, 12:36 PM
covou
Sarnak
 
Join Date: Jan 2006
Posts: 31
Default

A round about way of doing it would be to have the mob set a temp global with the persons name who spoke to them as the value. Make sure you put this command BEFORE the depop command or it may result in errors.


and then when the mob spawns
Code:
sub EVENT_SPAWN
{
quest::attack($qglobals{TempGlobal});
quest::delglobal("TempGlobal");
}
Reply With Quote
  #4  
Old 04-18-2009, 12:40 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I'm not sure how I would write that first part. I am not very good with globals.
Reply With Quote
  #5  
Old 04-18-2009, 12:42 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Why bother with scripting a quest file? Just set the NPC to a KOS faction.
Reply With Quote
  #6  
Old 04-18-2009, 12:44 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Wow, I didn't even think about that. Just make it KoS and have a huge aggro radius
Reply With Quote
  #7  
Old 04-18-2009, 12:47 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Bingo =)

(Extra text here to satisfy the stupid 10 character minimum per post.)
Reply With Quote
  #8  
Old 04-18-2009, 02:26 PM
covou
Sarnak
 
Join Date: Jan 2006
Posts: 31
Default

Code:
quest::setglobal('TempGlobal','$name',7,'H1');
Add that before your quest::depop();....

agro is also fine, but be aware you can't control who it agro's with KoS faction =D
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 12:08 PM.


 

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