Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 12-22-2014, 04:02 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,604
Default

Yeah, saylinks are not supported in the popup window. However, there is a EVENT_POPUPRESPONSE you can use based on you hitting 'Yes' on the popup window, use $popupid. Although I believe you have to specify ID in quest::popup(title, text, popupid, buttons, duration) in order to have different outcomes based on different popup windows.
Reply With Quote
  #2  
Old 12-22-2014, 05:24 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

I'm out the door, hoping syntax is correct:
Code:
sub EVENT_ENTERZONE {

	quest::settimer ("dopopup",5);

}


sub EVENT_TIMER {
use Switch;

	switch ($timer) {
		
		case ("dopopup") {
			quest::stoptimer ("dopopup");
			
			my $Indent = plugin::PWIndent();
			my $Yel = plugin::PWColor ("Yellow");
			my $PopupLink = plugin::PWHyperLink ("HERE","http://www.google.com");
			my $PopupLink2 = plugin::PWHyperLink ("HERE","http://www.eqemulator.org");
			my $PopupTextCentered = plugin::PWAutoCenter ("Welcome");
			
			quest::popup ("Popup Window Title", 
			"<br>$Indent $Indent $Indent [$Yel Welcome </c> ]<br> <br>
			If you wish to search Google click $PopupLink<br><br>
			If you wish to go to the EQEMu Site click $PopupLink2<br> <br> <br>
			So do you understand the webz?",1,1,0); 
			
			# usage quest::popup (title,text,popupid,buttons,duration) 
			# 	-- whereas buttons 0 = just ok, 1 = yes (1) and no (0) 
			# 	-- duration in seconds before vanish 0 = wait for click response
		}
	}
}


sub EVENT_POPUPRESPONSE {

	if ($popupid == 1) {
		quest::gmsay ("Hey all $name understands the interwebz!",335,1,0,0);
	}
}
Reply With Quote
Reply

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