Adcid
12-18-2014, 01:52 PM
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.
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?
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.
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?