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 02-13-2015, 09:37 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default Question on global and flagging

I am using quest::set_zone_flag(87); and $client->SetGlobal("CharMaxLevel", 60, 5, "F"); for progression to next expansion. The 87 just applies to Kunark. Do I have to set those zones as Flag:Yes?
Reply With Quote
  #2  
Old 02-13-2015, 10:10 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

I locked mine via navicat and this is my code

Code:
  if ($text=~/kunark/i && $ulevel <= 51){
	if(plugin::check_hasitem($client, 1079)) { 
		quest::setglobal("CharMaxLevel", "55", 5, 'F');
		$client->Message(4,"You are now flagged for Kunark!");
		quest::set_zone_flag(87);#1 burning woods
		quest::set_zone_flag(103);#2 chardok
		quest::set_zone_flag(90);#3 City of mist
		quest::set_zone_flag(104);#4 dalnir
		quest::set_zone_flag(86);#5 dreadlands
		quest::set_zone_flag(106);#6 cabeast
		quest::set_zone_flag(82);#7 cabwest
		quest::set_zone_flag(94);#8 emeraldjungle
		quest::set_zone_flag(78);#9 fieldofbone
		quest::set_zone_flag(84);#10 firiona
		quest::set_zone_flag(92);#11 frontiermtns
		quest::set_zone_flag(88);#13 kaesora
		quest::set_zone_flag(102);#14 karnor
		quest::set_zone_flag(97);#15 Kurn
		quest::set_zone_flag(85);#16 lakeofillomen
		quest::set_zone_flag(107);#17 nurga
		quest::set_zone_flag(91);#19 skyfire
		quest::set_zone_flag(83);#20 swampofnohope
		quest::set_zone_flag(96);#21 timorous
		quest::set_zone_flag(95);#22 trakanon
		quest::set_zone_flag(79);#24 warsliks
		quest::set_zone_flag(81);#25 droga
		quest::set_zone_flag(93);#26 overthere
		quest::set_zone_flag(89);#8 sebilis
		quest::set_zone_flag(277);#28 CHARDOKB
		quest::set_zone_flag(108);#29 vp
		quest::set_zone_flag(105);#29 vp
		quest::exp(5000);

    		quest::ding();
 		quest::movepc(84,1404,-3963,-102);}
   }
If you notice mine checks to see if they have a special item achieved from killing Vox and naggy. It moves them to the docks in firiona right after.
Reply With Quote
  #3  
Old 02-13-2015, 10:23 PM
epilz
Hill Giant
 
Join Date: Sep 2013
Posts: 247
Default

Did you set those zones you have listed as FLAG: yes?
Reply With Quote
  #4  
Old 02-14-2015, 12:24 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

I'm not quite sure what you're attempting to ask, but you just set a flag then in the zone table you put a '1' in the flag_needed column to require the zone flag to enter it. I hope I answered your question. You can also check the flags in a script by using this:
Code:
sub EVENT_ENTERZONE {
    if (quest::has_zone_flag($zoneid))) {
        $client->Message(315, "You're flagged!")
    } else {
        $client->Message(315, "You're not flagged, be gone!");
        quest::zone("nexus");
    }
}
Reply With Quote
  #5  
Old 02-14-2015, 10:14 AM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

I have
Code:
flag_needed
kunark
I didn't know how to grant the character the flag for every zone that was "kunark" flag_needed so I just gave them individual zone flags. I used the flag_needed section more or less as a restriction to keep them from entering
Reply With Quote
Reply


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:47 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3