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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2012, 01:45 PM
Apoc.Index
Sarnak
 
Join Date: Aug 2011
Posts: 67
Default How to make a zone flag

Not exactly sure how to do this, I was going over some of the PoTime quests to understand it better but I just cant figure it out.

Anyone able to give me a crash course on how to add a flag to a zone and write the script.

Here is the run down,
You need 3 heads, all from various targets, you return to the quest giver in zone (a) hand in the heads, he then flags you to access zone (b).

I am not an expert at scripting, I tried to muddle through the PoT ones but they elude me lol.

Thanks!
Reply With Quote
  #2  
Old 05-15-2012, 10:23 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 966
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
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 08:52 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3