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 05-15-2009, 08:49 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Damn do I love your comments. Keep up the great scripting =)
Reply With Quote
  #2  
Old 05-23-2009, 09:29 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Ok i tried to make my own thing like this, but it's not working. I have a quest that goes on the mobs that get killed, and then one on a trigger monster that will spawn the boss.

Code:
sub EVENT_DEATH {
quest::signalwith(1322,1,1);
}
thats for the monsters that are killed.

Code:
my $counter;
sub EVENT_SPAWN{
 $counter =0;
}
sub EVENT_SIGNAL{
 if($signal ==1){
  $counter+=1;
 if ($counter ==9);
 quest::spawn2(1323,0,0,251, -682.6, -27.2);
 }
}
I want it to spawn the boss after the 9 mobs are killed
Reply With Quote
  #3  
Old 05-23-2009, 09:48 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

spawn2 needs a heading
Reply With Quote
  #4  
Old 05-23-2009, 10:14 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

yeah I already changed that, it makes no difference
Reply With Quote
  #5  
Old 05-24-2009, 03:21 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Code:
 if ($counter ==9);
That should be:

Code:
 if ($counter == 9) {
And you will need another bracket to close that out after your spawn2.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #6  
Old 05-24-2009, 02:58 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Sweet, thank you! It's working now. Just one question though, why does $counter+=1; work? I was thinking it should be =+1, but I'm not going to mess with it if it already works
Reply With Quote
  #7  
Old 05-24-2009, 03:51 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

"$counter += 1" means the same as "$counter = $counter + 1".
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
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 05:16 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