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 07-07-2010, 10:26 AM
sithouse
Fire Beetle
 
Join Date: Apr 2006
Posts: 3
Default qglobals didn't work normally

I compiled the Bot version by myself.

(Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped)

I download the source code by SVN, the version is Rev1586
And I use the Rev1549 database.

PHP Code:
sub EVENT_DEATH{
    
  
quest::spawn2(189026,0,0,$x,$y,$z,$h);
  
quest::emote("'s corpse stops moving");
  
  if (!
defined $qglobals{rufu}){
      
quest::delglobal("rufu");
      
quest::setglobal("rufu",1,3,"F");
  }else {
      
my $killtime $qglobals{rufu} + 1;
      
quest::delglobal("rufu");
      
quest::setglobal("rufu",$killtime,3,"F");
  }
      

When I set the setglobal option variables "0".
It can work normally.
But when it set to 1 or 2 or 3 or .....
The $qglobals was not work.

I am sure the MOB's qglobal=1 in npc_types.
I don't know how to fix it.
Reply With Quote
  #2  
Old 07-07-2010, 11:06 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Not sure why yours isn't working, but this works for me:

Code:
my $killtime = 0;

sub EVENT_DEATH {
  quest::spawn2(189026,0,0,$x,$y,$z,$h);
  quest::emote("'s corpse stops moving");
  if (!defined($qglobals{rufu})) {
    $killtime = 1;
  }
  else {
    $killtime = $qglobals{rufu} + 1;
  }
  quest::setglobal("rufu",$killtime,3,"F");
  quest::say("I have been killed $killtime times.");
}
Reply With Quote
  #3  
Old 07-07-2010, 01:42 PM
sithouse
Fire Beetle
 
Join Date: Apr 2006
Posts: 3
Default

yes, it's work now when i copy your code to my formula .
And I know why it's not work

If the formula quest::setglobal("myglobal") before
Add the row " quest::delglobal("myglobal")
the qglobals can not work

And when I comment that quest::delglobal("myglobal") by #
the qglobals is normally work now

thank you to reslove my question.

But I saw many pl files which related the Quest "Hollowshade War" in Hollowshade Moor
Write the formula by
Code:
quest::delglobal("defder1");
quest::setglobal("defder1",1,3,"F");
So the quest was not work normally
And I also commented the delgloobal
The quest work normally.
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 03:10 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