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 09-30-2008, 01:37 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default variables not reseting?

im making a quest and its not the only one i have had this happen in and it eventually breaks all my quest that use them.

if i use a $var then it does not reset without a reload quest.

example.

Code:
my $Random = quest::ChooseRandom(Warrior,Cleric,Paladin,Ranger,Shadowknight,Druid,Monk,Bard,Rogue,Shaman,Necromancer,Wizard,Magician,Enchanter,Beastlord,Berserker);

sub EVENT_SPAWN 
{ 
quest::setnexthpevent(99);
}

sub EVENT_HP 
{ 	
if($hpevent == 99)
{ 
quest::shout("Only The powers of a $Random can defeat me!");
}
}
this quest should say every time it gets to 99% that whatever class can kill him.. but i hit it it says wiz then i repop it it still says wiz and will continue to say wiz until i reload quest then it will redo the random and say something else.

is there something i can put in here to clear the variables like a #reloadquest
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 07:57 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