Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-25-2013, 08:42 PM
Disorder
Hill Giant
 
Join Date: Apr 2010
Location: USA
Posts: 133
Default Checking Quest Repetition

Greetings!

I'm making a quest that is repeatable. I'd like to have quest globals track the number of times it has been repeated. I'm not sure how to add to the value stored in quest globals.

here is my script (shortened)

Code:
sub EVENT_ITEM
{
	if ((plugin::check_handin(\%itemcount, 1374 => 4)))
	{
		
		if ((!defined $qglobal{fish_mort}))
		{
			quest::setglobal("fish_mort","0","4","F");
		}
		
		elsif ((defined $qglobal{fish_mort}))
		{
			quest::setglobal("fish_mort","0","4","F");
			plugin::Whisper("Well thanks, friend.. er.. stranger. ");
			quest::givecash(2,0,0,0);
			quest::exp("5000");
			quest::ding();
			
		}
		
		
	}
	
}
I'd like to find a way to add +1 to the global "fish_mort".

Are we able to do:

Code:
$x = $questglobal{fish_mort};
$x=$x+1;
quest::setglobal("fish_mort","$x","4","F");
or something similar?

Thank, guys. I was unable to find an example of this.
__________________
Disorder
Reply With Quote
 


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:04 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