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
  #12  
Old 04-29-2011, 01:07 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I follow up question if I may

So this is a simple Door click code:

Code:
sub EVENT_CLICKDOOR 
{
	
	#postorms enter check
	if($doorid == 16) {
		if($client->GetLevel() >= 55 {
			if(quest::has_zone_flag(210) != 1) {
				quest::set_zone_flag(210);
				$client->Message(15, "You have received a character flag!");
			}
		}
	}
}
it check if you are lev 55, if yes it gives you access flag to enter PoStorms.
this assumes that zone is flag LOCKED to begin with.

If you NOT lev 55, it will bounce you back

1st question:

-player hits lev 55
-players clicks the door
-player gets the flag
-player DIES, looses a level

CAN HE STILL ENTER THE ZONE? He should still have flag from before.
But if I am reading the script right- the level is ALWAYS checked? or not?

But if its always checked, what a point of setting a zone flag?

My 2nd question is, is it possible to create some sort of "bounce back" WITHOUT using flags at all?

So the script will check your level, and only let you in, if level is right - without setting any flags?

thanks!
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:50 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