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 06-25-2006, 08:41 PM
Adrianne
Fire Beetle
 
Join Date: Oct 2004
Posts: 20
Default

sigh.. dont kno what to do.. think Im gonna rewrite everything.
Reply With Quote
  #2  
Old 06-25-2006, 11:21 PM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

2 little suggestions.

Add parenthesis to your tests :

Code:
if (plugin::check_handin(\%itemcount, 51510 => 4) && ($zavious == 1))

Second one. This structure :
Code:
if (plugin::check_handin(\%itemcount, 51510 => 4) && $zavious == 1) {

} elsif (plugin::check_handin(\%itemcount, 69977 => 1) && $zavious == 3) {

} else {
  plugin::return_items(\%itemcount);
}
Will lead to some issues with item turn in and items returned.
The tests with check_handin remove items from the list of handed items if it succeded. In that case, lets say for your first test, if the player gives 4x51510 but $zavious is not set to 1, the test will fail and he WONT get his items back (because check_handin succeded).

2 possibilities :
Code:
if (($zavious==1) && plugin::check_handin(\%itemcount, 51510 => 4)) {
or

Code:
if ($zavious==1) {
  if (plugin::check_handin(\%itemcount, 51510 => 4)) {

  }
} elsif ($zavious==3) {
  if (plugin::check_handin(\%itemcount, 59977=>1)) {

  }
}
plugin::return_items(\%itemcount);
If the tests $zavious==2 stil don't work, you could try with ($zavious eq "2")...
__________________
Muuss - [PEQGC] Dobl, the ogre that counts for 2 !
http://www.vilvert.fr/page.php?id=10
Reply With Quote
  #3  
Old 08-12-2006, 03:19 PM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Quote:
Originally Posted by Adrianne
sigh.. dont kno what to do.. think Im gonna rewrite everything.
Was wondering if you ever got this working?

I picked up a Gambling Script that used Quest::setglobal and it wouldn't reset them either. I ended up having to delete the global variable and reset them each time along with using ($variable=undef);

Even if you set the Global Variable to last only 3 seconds, I could never change it without deleting it.

It's probably ugly by script writers standards, but it works...

I'm learning, but what a pain it is when your in the dark. Having to stop the server and restart it in order to change the quest (you DO have to do this, right) takes so much time. Oh well, once I get it under my belt, It won't take so long.
Reply With Quote
  #4  
Old 08-13-2006, 08:02 AM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

don't need to restart the server, #reloadpl in the zone after you've made changes to the .pl file.
Reply With Quote
  #5  
Old 08-13-2006, 08:22 AM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Thanks ylosh.. I'm printing out the # commands now so I don't make this mistake again.. What a time saver this would have been... lol
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 10:46 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