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

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-18-2014, 01:52 PM
Adcid
Fire Beetle
 
Join Date: Nov 2014
Location: Idaho
Posts: 23
Default quest::popup with linked response...

Code:
sub EVENT_SAY{
	if($text=~/hail/i){
	my $TextToCenter = plugin::PWAutoCenter("Hail there! Would you like to test your strength against Lady ["..quest::saylink("Vox",false,"Vox").."] or Lord [Nagafen]? Please remember these Dragons will banish you above level 52.  Once you've been ported to your location, you are on your own getting back here!");
	my $TextToCenter2 = plugin::PWAutoCenter("2nd line to be centered");
	my $TextToCenter3 = plugin::PWAutoCenter("3rd line");
	my $TextToCenter4 = plugin::PWAutoCenter("4th line to be centered");
	my $TextToCenter5 = plugin::PWAutoCenter("5th line to be centered, blah, blah, blah, blah, blah");
	my $Indent = plugin::PWIndent();
	my $Yel = plugin::PWColor("Yellow");
	my $Blu = plugin::PWColor("Light Blue");
	my $Red = plugin::PWColor("Red");
	my $grn = plugin::PWColor("Forest Green");
	quest::popup("Stage Zero Raids", "$TextToCenter <br>
	$Yel $TextToCenter2 </c> <br>
	$Blu $TextToCenter3 </c> <br>
	<br><br>
	$Red $TextToCenter4 </c> <br>
	$grn $TextToCenter5 </c> <br><br><br>
	$Indent $Link
	");
	}
}
I've used this as my building block to create a popup. Little has been modified until I can resolve the link issue. What I've created are NPC's that will port you to raid locations allowing people to bypass trash mobs. My example above is an NPC that ports to Lady Vox or Lord Nagafen. In terms of simple code, it works fine without the popup. I've create spells to teleport to safe locations near said mobs. However, I would like the user to hail this NPC, then simply click on the Dragons name to implement the port rather than type in "/say Vox".

in /lua I found this code for going to plane of time without a popup.
Code:
function event_say (e)
	if(e.message:findi("hail")) then
		e.self:Say("Oh, yes, I'm still of one mind, for now. Time, time is all that matters. Would you like to see the [" .. eq.say_link("time",false,"time") .. "]?");
	elseif (e.message:findi("time")) then
		if (e.other:HasZoneFlag(219) == true) then
			--Plane of Time A
			e.other:MovePC(219, 110, 0, 8, 0);
		end
	end
end
I believe what I'm looking for can be done. Any ideas?
Reply With Quote
 


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 09:01 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3