Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-31-2008, 05:19 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Try Rev167. I extended quest::popup, so there are three variants:

Code:
quest::popup(<Window Title>, <Window Text>)

quest::popup(<Window Title>, <Window Text>, <PopupID>)

quest::popup(<Window Title>, <Window Text>, <PopupID>, <Buttons>)
Where Buttons = 0 means just display an OK button, or Buttons = 1 means display Yes/No buttons.

If PopupID > 0, clicking on OK or Yes will call sub EVENT_POPUPRESPONSE:

Code:
sub EVENT_POPUPRESPONSE {

        quest::say("Popup response");
        if($popupid eq "10") {
                quest::say("You clicked OK/Yes to popup with id 10");
        }

}

sub EVENT_SAY {
  if ($text=~ /Hail/i){
    quest::popup("Test Popup", "Test popup with ID 10", 10);
  }
}
If you lose focus on the NPC, e.g. by hitting Escape while the popup is up, EVENT_POPUPRESPONSE won't be called. Not sure if it is like this on live. The ID of the NPC that produced the popup could be stored, if this is deemed to be an issue.

Edit: There is a new Opcode, so copy the patch*conf files from the utils directory.

Last edited by Derision; 11-01-2008 at 01:21 AM..
Reply With Quote
 

Thread Tools
Display Modes

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 04:04 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