|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Quests::Plugins & Mods Completed plugins for public use as well as modifications. |
 |
|
 |

03-10-2015, 08:50 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Yup. I have it. I downloaded all the plugins from the repository. Check them daily to see if there are any new changes.
Here is the Diawind.pl plugin.
Code:
#::: Author: Akkadius
#::: This plugin can work as an extensive drop in replacement for quest::say
#::: This plugin also offers extensive options for easily formatting windows.
#::: Usage: plugin::DiaWind("Window text");
#::: For explanation of use, see: http://wiki.eqemulator.org/p?The_DiaWind_Plugin&frm=Perl_Plugins_Master_Reference
sub DiaWind {
my $Text = $_[0]; my $npc = plugin::val('$npc'); $client = plugin::val('$client'); $name = plugin::val('$name');
my $Opt = 0;
if(!$PopId){ $PopId = 999; }
$Text=~ s/~/<\/c>/g;
$Text=~ s/\{y\}/<c \"#CCFF33\">/g;
$Text=~ s/\{lb\}/<c \"#00FFFF\">/g;
$Text=~ s/\{r}/<c \"#FF0000\">/g;
$Text=~ s/\{g}/<c \"#00FF00\">/g;
$Text=~ s/\{gold}/<c \"#FFFF66\">/g;
$Text=~ s/\{orange}/<c \"#FFA500\">/g;
$Text=~ s/\{gray}/<c \"#808080\">/g;
$Text=~ s/\{tan}/<c \"#daa520\">/g;
$Text=~ s/\{bullet}/•/g;
$Text=~ s/\$name/$name/g;
$Text=~ s/\{linebreak}/--------------------------------------------------------------------/g;
$Text=~ s/\{rowpad}/<tr><td>{tdpad}<\/td><td>{tdpad}<\/td><\/tr>/g;
$Text=~ s/\{tdpad}/----------------------/g;
$Text=~ s/\{in}/ /g;
my ($mvoice) = $Text =~ s/mysterious//g;
my ($achievement) = $Text =~ s/achievement//g;
my ($noquotes) = $Text =~ s/noquotes//g; if($noquotes){ $quo = ""; } else{ $quo = "'"; }
my ($nobracket) = $Text =~ s/nobracket//g;
my ($nosound) = $Text =~ s/nosound//g;
my ($cname) = $Text =~ /{(.*)\>/; $Text =~ s/{$cname\>//g;
if(!$nobracket){
($bracket) = $Text =~ /\[([^\]]+)\].*/;
($bracket2) = $Text =~ /\[(.*)\>/;
}
my ($anim) = $Text =~ /\+(.*)\+/; $Text=~ s/\+$anim\+//g;
my ($Timer) = $Text =~ /\=(.*)\=/; $Text=~ s/\=$Timer\=//g;
my $response = ""; my $ClickQueue = ""; my $Options = "";
my @popupid = $Text =~ /popupid\:(\d+)/g;
if($popupid[0]){ $PopId = $popupid[0]; my $string = "popupid:" . $popupid[0]; $Text=~ s/$string//g; }
my @wintype = $Text =~ /wintype\:(\d+)/g;
if($wintype[0]){ if($wintype[0] == 1){ $Opt = 1; }; my $string = "wintype:" . $wintype[0]; $Text=~ s/$string//g; }
if(!$nobracket){
if($bracket){ $response = $bracket; }
if($bracket2){ $response = $bracket2; }
@data = ($Text =~ m/\[([^\]]+)\]/g);
foreach $val (@data){ $Options .= "" . quest::saylink($val, 1) . " - ";}
if($data[1]){ $client->Message(15, " --- Select Response from Options --- "); $client->Message(0, "[" . substr ($Options, 0, -3) . "]"); }
}
if($anim){ if($anim > 0){ quest::doanim($anim); } else{ plugin::DoAnim($anim);} }
my $string = quotemeta("[" . $bracket2 . ">"); $Text=~ s/$string//g;
if($Timer > 0){ $ClickQueue = "<c \"#F07F00\">This message will disappear in " . $Timer . " second(s)...</c>"; }
elsif($response ne ""){ $client->SetEntityVariable("npcresponse", $response);
if($Opt == 1){ $ClickQueue = "<c \"#F07F00\">Click 'Yes' to continue'...</c>"; }
else{ $ClickQueue = "<c \"#F07F00\">Click 'OK' to respond with '" . $response . "'...</c>"; }
}else{ $client->SetEntityVariable("npcresponse", "");
if($Opt == 1){ $ClickQueue = "<c \"#F07F00\">Click 'Yes' to continue'...</c>";}
else{ $ClickQueue = "<c \"#F07F00\">Click 'OK' to continue...</c>"; }
}
if($achievement){} elsif($cname){ $Speaking = $cname . " says"; } elsif($mvoice){ $Speaking = "A Mysterious Voice says"; } else{ if($npc){ $Speaking = $npc->GetCleanName() . ' says'; } }
if($achievement){ $Title = "New Achievment!"; } else{ $Title = "Dialogue: " . $Speaking; }
if($achievement){ $Timer = 5; quest::popup($Title, $Text . "" . $ClickQueue . "", $PopId, $Opt, $Timer); }
else{ quest::popup($Title, "<c \"#CCFF33\">" . $Speaking . "</c><br><br>" . $quo . "" . $Text . "" . $quo . "" . "<br><br>" . $ClickQueue . "", $PopId, $Opt, $Timer); }
$PopId = undef; $achievement = undef;
}
#::: Used for include of EVENT_POPUPRESPONSE
#::: http://wiki.eqemulator.org/p?The_DiaWind_Plugin#to-activate-this-plugin
sub DiaWind_Process_Response{
my $popupid = plugin::val('$popupid');
my $client = plugin::val('$client');
if($popupid == 999){
my $nresponse = $client->GetEntityVariable("npcresponse");
if($Debug){ $client->Message(15, "Debug Silent Message: '" . $nresponse . "'"); }
if($nresponse ne ""){ $client->SilentMessage($nresponse); } return;
}
}
|
 |
|
 |
 |
|
 |

03-10-2015, 08:52 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
Yup. I have it. I downloaded all the plugins from the repository. Check them daily to see if there are any new changes.
Here is the Diawind.pl plugin.
Code:
#::: Author: Akkadius
#::: This plugin can work as an extensive drop in replacement for quest::say
#::: This plugin also offers extensive options for easily formatting windows.
#::: Usage: plugin::DiaWind("Window text");
#::: For explanation of use, see: http://wiki.eqemulator.org/p?The_DiaWind_Plugin&frm=Perl_Plugins_Master_Reference
sub DiaWind {
my $Text = $_[0]; my $npc = plugin::val('$npc'); $client = plugin::val('$client'); $name = plugin::val('$name');
my $Opt = 0;
if(!$PopId){ $PopId = 999; }
$Text=~ s/~/<\/c>/g;
$Text=~ s/\{y\}/<c \"#CCFF33\">/g;
$Text=~ s/\{lb\}/<c \"#00FFFF\">/g;
$Text=~ s/\{r}/<c \"#FF0000\">/g;
$Text=~ s/\{g}/<c \"#00FF00\">/g;
$Text=~ s/\{gold}/<c \"#FFFF66\">/g;
$Text=~ s/\{orange}/<c \"#FFA500\">/g;
$Text=~ s/\{gray}/<c \"#808080\">/g;
$Text=~ s/\{tan}/<c \"#daa520\">/g;
$Text=~ s/\{bullet}/•/g;
$Text=~ s/\$name/$name/g;
$Text=~ s/\{linebreak}/--------------------------------------------------------------------/g;
$Text=~ s/\{rowpad}/<tr><td>{tdpad}<\/td><td>{tdpad}<\/td><\/tr>/g;
$Text=~ s/\{tdpad}/----------------------/g;
$Text=~ s/\{in}/ /g;
my ($mvoice) = $Text =~ s/mysterious//g;
my ($achievement) = $Text =~ s/achievement//g;
my ($noquotes) = $Text =~ s/noquotes//g; if($noquotes){ $quo = ""; } else{ $quo = "'"; }
my ($nobracket) = $Text =~ s/nobracket//g;
my ($nosound) = $Text =~ s/nosound//g;
my ($cname) = $Text =~ /{(.*)\>/; $Text =~ s/{$cname\>//g;
if(!$nobracket){
($bracket) = $Text =~ /\[([^\]]+)\].*/;
($bracket2) = $Text =~ /\[(.*)\>/;
}
my ($anim) = $Text =~ /\+(.*)\+/; $Text=~ s/\+$anim\+//g;
my ($Timer) = $Text =~ /\=(.*)\=/; $Text=~ s/\=$Timer\=//g;
my $response = ""; my $ClickQueue = ""; my $Options = "";
my @popupid = $Text =~ /popupid\:(\d+)/g;
if($popupid[0]){ $PopId = $popupid[0]; my $string = "popupid:" . $popupid[0]; $Text=~ s/$string//g; }
my @wintype = $Text =~ /wintype\:(\d+)/g;
if($wintype[0]){ if($wintype[0] == 1){ $Opt = 1; }; my $string = "wintype:" . $wintype[0]; $Text=~ s/$string//g; }
if(!$nobracket){
if($bracket){ $response = $bracket; }
if($bracket2){ $response = $bracket2; }
@data = ($Text =~ m/\[([^\]]+)\]/g);
foreach $val (@data){ $Options .= "" . quest::saylink($val, 1) . " - ";}
if($data[1]){ $client->Message(15, " --- Select Response from Options --- "); $client->Message(0, "[" . substr ($Options, 0, -3) . "]"); }
}
if($anim){ if($anim > 0){ quest::doanim($anim); } else{ plugin::DoAnim($anim);} }
my $string = quotemeta("[" . $bracket2 . ">"); $Text=~ s/$string//g;
if($Timer > 0){ $ClickQueue = "<c \"#F07F00\">This message will disappear in " . $Timer . " second(s)...</c>"; }
elsif($response ne ""){ $client->SetEntityVariable("npcresponse", $response);
if($Opt == 1){ $ClickQueue = "<c \"#F07F00\">Click 'Yes' to continue'...</c>"; }
else{ $ClickQueue = "<c \"#F07F00\">Click 'OK' to respond with '" . $response . "'...</c>"; }
}else{ $client->SetEntityVariable("npcresponse", "");
if($Opt == 1){ $ClickQueue = "<c \"#F07F00\">Click 'Yes' to continue'...</c>";}
else{ $ClickQueue = "<c \"#F07F00\">Click 'OK' to continue...</c>"; }
}
if($achievement){} elsif($cname){ $Speaking = $cname . " says"; } elsif($mvoice){ $Speaking = "A Mysterious Voice says"; } else{ if($npc){ $Speaking = $npc->GetCleanName() . ' says'; } }
if($achievement){ $Title = "New Achievment!"; } else{ $Title = "Dialogue: " . $Speaking; }
if($achievement){ $Timer = 5; quest::popup($Title, $Text . "" . $ClickQueue . "", $PopId, $Opt, $Timer); }
else{ quest::popup($Title, "<c \"#CCFF33\">" . $Speaking . "</c><br><br>" . $quo . "" . $Text . "" . $quo . "" . "<br><br>" . $ClickQueue . "", $PopId, $Opt, $Timer); }
$PopId = undef; $achievement = undef;
}
#::: Used for include of EVENT_POPUPRESPONSE
#::: http://wiki.eqemulator.org/p?The_DiaWind_Plugin#to-activate-this-plugin
sub DiaWind_Process_Response{
my $popupid = plugin::val('$popupid');
my $client = plugin::val('$client');
if($popupid == 999){
my $nresponse = $client->GetEntityVariable("npcresponse");
if($Debug){ $client->Message(15, "Debug Silent Message: '" . $nresponse . "'"); }
if($nresponse ne ""){ $client->SilentMessage($nresponse); } return;
}
}
|
Do you know if you have DBI installed?
|
 |
|
 |

03-10-2015, 08:55 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
 yes its installed. SS below.
|

03-10-2015, 08:57 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
 yes its installed. SS below.
|
#logs quest gmsay 20 1
#logs quest gmsay 38 1
What do you see when you try to show a window.
|

03-10-2015, 09:20 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Nothing displayed when setting logging to 1 or 3. No errors. Tested on other quest NPCs also. Very strange. Verified the log settings are in the logsys_categories table.
Turned on MYSQL Queries and Errors. This is all that was returned when clicking on Top HPs.

|

03-10-2015, 09:23 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
Nothing displayed when setting logging to 1 or 3. No errors. Tested on other quest NPCs also. Very strange. Verified the log settings are in the logsys_categories table.
Turned on MYSQL Queries and Errors. This is all that was returned when clicking on Top HPs.

|
Are you missing plugin::commify ?
https://code.google.com/p/eqemuplugi..._formatting.pl
|

03-10-2015, 09:21 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Also, no one is on the server but myself atm. Its not open to public yet. The DB is not populating my stats. It was before.
|

03-10-2015, 09:25 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Nope. I have text_formatting.pl in my plugins folder.
Code:
###AKKADIUS###
###Usage plugin::commify(12302302); Would output value 12,302,302
sub commify {
local $_ = shift;
s{(?<!\d|\.)(\d{4,})}
{my $n = $1;
$n=~s/(?<=.)(?=(?:.{3})+$)/,/g;
$n;
}eg;
return $_;
}
return 1;
|

03-10-2015, 09:27 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
Nope. I have text_formatting.pl in my plugins folder.
Code:
###AKKADIUS###
###Usage plugin::commify(12302302); Would output value 12,302,302
sub commify {
local $_ = shift;
s{(?<!\d|\.)(\d{4,})}
{my $n = $1;
$n=~s/(?<=.)(?=(?:.{3})+$)/,/g;
$n;
}eg;
return $_;
}
return 1;
|
I think you're just trolling me
|

03-10-2015, 09:30 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
no way man. I have been working on my server for about 2 months. I come from a very technical background, but not in programming. Learned a lot from this community. I can give you access to my server if you want to look.
|

03-10-2015, 09:32 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
no way man. I have been working on my server for about 2 months. I come from a very technical background, but not in programming. Learned a lot from this community. I can give you access to my server if you want to look.
|
Load up Teamviewer, send me your session and tell me what your server name is.
|

03-10-2015, 09:39 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
PMing you now
|

03-10-2015, 10:09 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Thanks Akka for the help. I will make changes later tonight and update this thread
|

03-11-2015, 12:35 PM
|
Hill Giant
|
|
Join Date: Sep 2013
Posts: 247
|
|
Ok Akka, Cleaned up the system of incorrect version of perl and updated DBI and DBD:mysql. Only issue that I am having now is the popup windows does not populate the information from the DB. Below are SS's.
Logging.
cust_ext_leaderboards view
Thanks again for the assistance last night.
|

03-11-2015, 02:40 PM
|
 |
Administrator
|
|
Join Date: Feb 2009
Location: MN
Posts: 2,072
|
|
Quote:
Originally Posted by epilz
Ok Akka, Cleaned up the system of incorrect version of perl and updated DBI and DBD:mysql. Only issue that I am having now is the popup windows does not populate the information from the DB. Below are SS's.
Logging.
cust_ext_leaderboards view
Thanks again for the assistance last night.
|
It won't show you as a GM in the leaderboards table. Any status 0 player would show up fine
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 08:39 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |