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 07-09-2014, 11:00 AM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default Is it posible

Is it possible to have a quest to unlock expansions providing you kill lets says a boss mob or two?
Reply With Quote
  #2  
Old 07-09-2014, 01:12 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I would think it would be rather easy, you just make the zone require a key. The mob would drop the key.
Reply With Quote
  #3  
Old 07-10-2014, 05:59 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

but how would this work to unlock a full expantion... say velious ?

i can see how it would work to unlock one zone

even using a quest script id imagain id have to flag players in one way or another or maybe even accounts using the status setting
Reply With Quote
  #4  
Old 07-10-2014, 06:46 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I do not see where that changes anything, take for instance if you wanted to make all of expansion 15 require a certain key.

Code:
UPDATE zone SET flag_needed='some_flag' WHERE expansion='15';
There may be some better way of doing it, but I think this would work.
Reply With Quote
  #5  
Old 07-11-2014, 05:11 AM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,105
Default

Qglobals ftw.
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #6  
Old 07-11-2014, 06:03 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

if this can be done by qglobals... can you give any pointers as to howi would config this?

and thanks prov for the flag thing thats the idea i orig had but if theres a better way im all ears
Reply With Quote
  #7  
Old 07-11-2014, 06:56 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

You could set all the zones for one expansion behind the same 'key' then you should be able to do something like:

Code:
$client->KeyRingAdd();
Or, set 'flag_needed' in the zone table to 1, then:

Code:
quest::set_zone_flag(zone_id)
You could couple that with a qglobal just for tracking in your database/to have a mob that checks flags, something like:

Code:
quest::setglobal("Velious_Access",1,5,"F");
Thing is whenever you perform the quest::set_zone_flag(zone_id) on the client you would have to do it for however many zones are in the particular expansion you're locking up.

Provocating's idea seems a better way to do it to me.

Although, if you wanted to lock it behind multiple bosses, use qglobals upon the bosses death then use another NPC to unlock the expansion, i.e.:

This will signal all the clients in the zone at the time, the signal is then received in the player.pl for that zone..

Code:
sub EVENT_DEATH_COMPLETE {
    $entity_list->SignalAllClients(1);
}

in player.pl, this will set this qglobal for every player in the zone at the time of the bosses death, so, if you want it to only be a certain # of people, put your boss in an instance or something

Code:
sub EVENT_SIGNAL {
    if ($signal == 1) {
      quest::setglobal("boss1dead",1,5,"F");
      }
}
So you could replicate that for however many bosses you have locking the expansion, lets say 3. Then on the NPC you're using to check boss kills you would do something like:

Code:
sub EVENT_SAY {
    if ($text =~/hail/i) {
        if (defined $qglobals{"boss1dead"} && $qglobals{"boss2dead"} && $qglobals{"boss3dead"}) {
            quest::set_zone_flag(zone_id);
            }
    }
}
This would check to see if the player has the qglobals from killing the other 3 bosses, if they do, then the NPC can unlock the expansion for them.

P.S.:

Make sure your signals are unique between player.pl's and the global_player.pl, signals will be sent to the global and player.pl for the particular zone so if you had a signal of 1 being received in the global_player.pl it would also fire
Reply With Quote
  #8  
Old 07-11-2014, 07:32 PM
knight-mare
Sarnak
 
Join Date: Jun 2014
Posts: 69
Default

another idea ive thought of is... make some custom items (such as shards etc)
have them drop from said raid mobs and people have to return them in order for expansions to unlock
Reply With Quote
  #9  
Old 07-15-2014, 05:30 AM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,105
Default

Or...............qglobals
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
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:32 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