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 02-03-2009, 11:17 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

ok only part of that I wouldn't know how to do is make the global variable
Reply With Quote
  #2  
Old 02-04-2009, 03:07 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Have you tried using KLS's tool for creating tasks via the task system? It does help quite a bit. It's in the SVN if you are interested in using it.

As for global variables, look in the wiki. They are explained fairly well. Keep in mind that any NPC that you use for global variables has to have that enabled on them in the database. You might not need that for this particular quest, but you might later. Also you can look in a number of other quests for examples of using globals. Just grep(or search if Windoze) out qglobal from your quests directory. That'll bring up some quests with that used.
Reply With Quote
  #3  
Old 02-05-2009, 11:40 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

OK when I make this quest, what iwll be the command to increase the global value? In one quest I am using I have
Code:
quest::setglobal("buffbot", $buffbot+$itemcount{1440}, 0, "Y9");
to increase the global for it, but I do not know how to adjust that to be for when the mob dies increase it.
Reply With Quote
  #4  
Old 02-06-2009, 12:12 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

soemthing like this:

Code:
sub EVENT_DEATH

{

	quest::setglobal("buffbot", $buffbot+1, 0, "Y9");
}
this should increment the variable by 1 when mob dies
hopefuly for player who kills it
Reply With Quote
  #5  
Old 02-06-2009, 12:14 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Alright, sounds good. I should change the variable name though, right?
Reply With Quote
  #6  
Old 02-06-2009, 12:15 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

and Since no trade is disabled on my server, I can see someone just chain hailing the mob for the reward for alts, so is there a check I can do so he doesn't respond if they have done the quest already?
Reply With Quote
  #7  
Old 02-06-2009, 12:40 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

I am not sure what you referign to.

If reward is given after 10 mobs have been killed - then "just hailing" the npc won't do you any good
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:42 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