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 01-31-2010, 03:19 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Pop up works fine, it's just not porting me after I hit OK...
Reply With Quote
  #2  
Old 01-31-2010, 03:46 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

It doesn't work because when you click OK to the popup, you have no NPC targeted, and so the EVENT_POPUPRESPONSE doesn't get called.

This was what KLS was getting at further back in the thread, about this being better handled in the player.pl.

I could alter the behaviour, but it would break any existing scripts using this event, or maybe even have both the npc and player.pl receive the event ... let me test it.
Reply With Quote
  #3  
Old 01-31-2010, 04:12 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

OK, using Rev1202 code, do it like this. In your NPC quest:
Code:
sub EVENT_SPAWN
{
        my $x = $npc->GetX();
        my $y = $npc->GetY();
        my $range = 12;
        quest::set_proximity($x - $range, $x + $range, $y - $range, $y + $range);

}

sub EVENT_ENTER {

    quest::popup("Test Popup", "Test popup with ID 10", 10);
}
And in player.pl, add
Code:
sub EVENT_POPUPRESPONSE
{
        if($popupid eq "10")
        {
                quest::movepc(176,1900.0,-474.8,24.75);
        }

}
Reply With Quote
  #4  
Old 02-02-2010, 03:08 PM
KingMort
Banned
 
Join Date: Sep 2006
Posts: 841
Default

Still not working ... *boggle*
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 11:23 PM.


 

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