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 08-05-2010, 05:57 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Yes, you would spawn it in perl upon task completion.

If you want to use globals, this might be what you are trying to do:

(untested)
Code:
sub EVENT_DEATH {
  if (defined($qglobals{orcpawndeath}) {
    quest::setglobal("orcpawndeath",$qglobals{orcpawndeath}+1,0,"F");
  }
  else {
    quest::setglobal("orcpawndeath",1,0,"F");
  }
  if ($qglobals{orcpawndeath} == 4) {
    quest::setglobal("orcpawndeath",0,0,"F");
    quest::unique_spawn(999149,0,0,1652,1535,-9,69);
  }
}
Reply With Quote
  #2  
Old 08-06-2010, 08:20 AM
Bellos
Hill Giant
 
Join Date: Jul 2007
Posts: 111
Default

Quote:
Originally Posted by joligario View Post
Yes, you would spawn it in perl upon task completion.

If you want to use globals, this might be what you are trying to do:

(untested)
Code:
sub EVENT_DEATH {
  if (defined($qglobals{orcpawndeath}) {
    quest::setglobal("orcpawndeath",$qglobals{orcpawndeath}+1,0,"F");
  }
  else {
    quest::setglobal("orcpawndeath",1,0,"F");
  }
  if ($qglobals{orcpawndeath} == 4) {
    quest::setglobal("orcpawndeath",0,0,"F");
    quest::unique_spawn(999149,0,0,1652,1535,-9,69);
  }
}
Ill give it a try and see if i can get it to work. I just realized i dont need it to be for each player, just server wide so whenever all 4 orcs are dead at the same time the mob spawns.

Lemme see if i understand what your doing here so i actually learn and dont have to beg people to write scripts for me lol.

If its defined you set it to orcpawndeath +1, if its not defined you just set it to 1, when it hits 4, you reset it and spawn the mob. Do i have to enter this variable in to the database at all or just enable the qglobals on the mob like you said before
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 07:21 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3