EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Kunark flag + increase in lvl quest (https://www.eqemulator.org/forums/showthread.php?t=36316)

Maceblade 01-22-2013 07:45 PM

Kunark flag + increase in lvl quest
 
Just some basic back ground: my server has a lvl 50 norrath limit on it currently. Kunark is flag locked as is every expansion. Perhaps my understanding of qglobals is a bit slow and retarded but im posting it for review and critique.

Whats working: everything but the level increase. Item handins, rewards, flags and exp is all working.

Code:

#Dumptruck

sub EVENT_SAY {
  if ($text=~/hail/i) {
    quest::say("So you are the one Seeking a charm of advanced power? Don't look like much but i'll give you the [task] anyway.");
  }
  if ($text=~/task/i) {
  quest::say("Bring me back a burnt book and a frost covered book from Norrath's dragons as well as your old charm.");}

}

sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 59943 => 1, 19070 => 1, 19071 => 1)) {
    quest::say("Interesting mortal, you have succeeded where others have failed.");
    quest::summonitem ("1079");}
$client->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::exp(5000);

    quest::ding();
  }

 else {
 plugin::return_items(\%itemcount); # return unused items
  }
}

#End of File

in my quest globals table i see this:

Code:

130 | 1 | 0 | 0 | CharMaxLevel| 55 | (null)
but none of the characters that have done this can level higher. Am I supposed to change my max level limit for the server? And if so how do i put a strict limitation to every character with out progression flags?

LordAdakos 01-31-2013 02:59 PM

As far as I know when i dabbled around in the database, there was no way to set individual max level caps.

The way i used when i was screwing around was to set the max level to 60, set the max exp obtainable level to be 50.
After 50, you get repeatable quests , series quests, etc, that add up on a qglobal, once it reaches a certain amount, it 'dings' you to the next level and sets your qglobal highestlevel to that,
if for some reason you died and un-dinged the priest would set you back to your qglobal 'maxlevel'.

it was a roundabout way of doing it, but hey, it worked... kind of.

c0ncrete 01-31-2013 04:04 PM

Code:

UPDATE `rule_values` SET `rule_value` = 'true' WHERE `rule_name` = 'Character:PerCharacterQglobalMaxLevel' LIMIT 1;
if the rule isn't there, you'll have to add it instead.

Maceblade 02-09-2013 10:33 PM

Already had Rule just had to turn it to true. Currently dabbling with encounter based level progression to see if I can force direction.


All times are GMT -4. The time now is 12:33 PM.

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