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 04-01-2008, 09:00 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

hmm could you try this - use the FIRST code sample, but replace "elseif"s with regular "if"s

if it works the way i understand it, it should produce chain leveling reaction =)
Reply With Quote
  #2  
Old 04-01-2008, 09:29 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Actually, I tried that first and it had the same effect as the elsif's, which was no effect.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 04-01-2008, 09:54 PM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Try adding $max_level=undef; in the script at the end.
__________________
Random Segments of Code....
Reply With Quote
  #4  
Old 04-01-2008, 10:52 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

Quote:
Originally Posted by Aramid View Post
Try adding $max_level=undef; in the script at the end.
won't this reset the variable every time script runs?
Reply With Quote
  #5  
Old 04-01-2008, 11:11 PM
mattmeck
Guest
 
Posts: n/a
Default

Why even use the globals in this case seems to be overkill?


a simple if level 70 and you turn in the item the npc does a #level 71
if level 71 and you turn in the items the npc does #level 72
etc etc

dont feel like writing it up but you get the idea.
Reply With Quote
  #6  
Old 04-01-2008, 11:31 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

Quote:
Originally Posted by mattmeck View Post
Why even use the globals in this case seems to be overkill?


a simple if level 70 and you turn in the item the npc does a #level 71
if level 71 and you turn in the items the npc does #level 72
etc etc

dont feel like writing it up but you get the idea.
yeah I was thinking the same thing, but still it is educational to know why the code won't work anyway.

btw I consulted the popular "credit card" code, and it indeed uses things such as $max_level=undef; after each adjustment statement.

I do not uderstand the processing logic behind it, but apperently this is how it supose to work
Reply With Quote
  #7  
Old 04-02-2008, 12:02 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Actually, in my real quest scripts, I do have:

Code:
{
$max_level=undef;
}
I only cut out the main part I was working on. I added in the sub EVENT_ITEM part before posting it.

The reason I want globals for this is mainly for my de-level quests. My server has quests to de-level characters to any level they want. Since my server's max level is 70, the quested levels have to be remembered so people can return to their previous level if it is higher than level 70. If I don't use globals on this quest, I will just have to use them on both different types of de-level quests (one is permanent and one is temporary). I figured I might as well define them here if possible.

Also, in reply to Mattmeck; I have a feeling that if qglobals doesn't work when turning in 1 item and having multiple different requirements for the same hand in, I am willing to bet that checking for character level would have the same problem. I will test it tonight. But, I think the issue is with the item check, and it won't let it be checked again for the other IFs. Actually, maybe it is the plugin. Maybe I can try it without it, but those plugins are handy.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 04-02-2008 at 08:06 AM..
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:43 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