Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 03-24-2017, 11:41 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by Castious View Post
Still struggling to get this to work. Can't change the status level to allow #commands to be used by players via a progressive quest line. Please help?
You must ensure you have the Perl DBI installed.

Ensure a filename by name of "MySQL.pl" exists in /plugins/ directory (not! /quests/plugins -- that isnt used)

It should look like:

Code:
## plugins/MySQL.pl -- be sure to change "peq" to whatever the name of your DB is you use, and change the first "root" to whatever
## MySQL you may be using with access (usually root fwiw) and the second "root" with whatever the password of said MySQL user is
sub MySQL_Connect {
	use DBI;
	use DBD::mysql;
	$dbh = DBI->connect("DBI:mysql:peq:localhost:3306;", "root", "root", {RaiseError => 1, AutoCommit =>1});
	return $dbh;
}

return 1;
Then place this on an any NPC (preferably one without a script already or just rename the existing script of a NPC to npc_name.pl.bak and replace with the below -- whichever method you choose):

Code:
# any NPC you want
sub EVENT_SAY
{
	my $dbh = plugin::MySQL_Connect();
	$npc->Shout ("By golly, I think he's got it!") if ($dbh->ping);
}
http://wiki.eqemulator.org/p?Install..._other_Modules
Reply With Quote
 

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 09:30 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