EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Question on global and flagging (https://www.eqemulator.org/forums/showthread.php?t=39362)

epilz 02-13-2015 09:37 PM

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?

Maceblade 02-13-2015 10:10 PM

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.

epilz 02-13-2015 10:23 PM

Did you set those zones you have listed as FLAG: yes?

Kingly_Krab 02-14-2015 12:24 AM

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");
    }
}


Maceblade 02-14-2015 10:14 AM

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


All times are GMT -4. The time now is 03:38 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.