Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-15-2012, 10:23 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

First you mark a zone as being "flagged" by setting the Flag column to 1 in the zone table. You could also put an item name in there, see Sebilis for an example of that.

Then in your quest script, you set the zone flag.

Here is an example from Tublik Narwethar in kodtaz that grants access to Qvic.

Code:
sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 60174 => 1)){
    if (plugin::check_hasitem($client, 60252)) {
      quest::say("You have done great things for us, but your journey is not yet over.");  #need live text
      $client->Message(4, "Finished! - You've recovered the Sliver of the High Temple! Congratulations!");
      $client->Message(4, "You feel the magic protecting Qvic has softened.");
      quest::summonitem(60176);
      quest::setglobal("god_qvic_access",1,5,"F");
      quest::set_zone_flag(295); 
    }
See the quest::set_zone_flag(295); that's it. 295 is the zoneidnumber for Qvic in the zone table, and Qvic has the flag_needed column set to 1.
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 05:51 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