Plugin: Player Leaderboards (In-Game)
Purpose:
To display an in-game leaderboards for players to see where they rank. ------------------------ I've had this code written for ages so the quality is so-so. But it definitely does what it needs to do. Feel free to modify if want. ------------------------ Required: Perl DBI - See Google for installing Perl DBI/DBD for Mysql, until I create an article explaining otherwise. Required: plugin::LoadMysql(); - See thread HERE Required: Popup Window plugin utils Required: Mysql table `cust_ext_leaderboards` http://wiki.eqemulator.org/i?Module=...Paste=BgtI3fWi http://i.imgur.com/stzAiqT.png Source Table: Code:
-- ---------------------------- Code:
sub EVENT_SAY{ Code:
plugin::LeaderBoardsUpdate(); Name: Leaderboards.pl Options: You can set your website Magelo Path under LoadMageloPath, or you can put in javascript:; or # if you don't have a site. Enjoy, let me know if you experience issues. |
Quote:
Nice Akkadius! +1 I prefer to run the collection routine in this sub: sub EVENT_CONNECT {} That way code runs only 1 time when player logs in, instead of every time they zone. That way it won't spam update the database each time a player dies or zones. |
Is this still working? I installed everything, and queries are working. When I say 'player leaderboards' I get the text "Player Leaderboards" and a list of classes in saylink format. If I click any of the saylinks, nothing happens. If I manually type the trigger, nothing happens as well.
Im not sure if Im missing a plugin. I downloaded the popup_window_utils, DBI is working, and the database table is working and being populated. |
Quote:
I would download a fresh batch of plugins from the stickied SVN in the thread: http://www.eqemulator.org/forums/showthread.php?t=32608 |
I have tried this plugin, and I am running into the same issue that Nibiuno stated above. Verified DBI is working, the cust_ext_leaderboards is being populated correctly. The popup_windows_utils and leaderboards.pl are in the plugin folder. I get the saylinks for classes, but once I click one of them, nothing happens.
|
Quote:
|
yes I have logging set to 3, I can see the queries happening, but no errors
|
Quote:
THE GIRLS NEVER CAME. I have to help someone quick but I will check into this plugin. Thanks for reporting. |
LMAO Akka, thanks
|
Looking at this now
|
OK, spent about an hour cleaning this up.
Replace Leaderboards.pl in your plugins folder with this code: http://wiki.eqemulator.org/i?Module=...Paste=BgtI3fWi http://i.imgur.com/stzAiqT.png Source Table: Code:
-- ---------------------------- |
Thanks for the update. Copied the new code to Leaderboards.pl in my plugins folder and resourced my DB. Do not get the popup window, but that maybe because the cust_ext_leaderboards table has not been populated yet. I have the following in my global_player.pl file.
Code:
sub EVENT_ENTERZONE { |
Quote:
It has become apparent to me we need a decent way to update plugins because people are apparently downloading the wrong ones... |
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 |
Quote:
|
All times are GMT -4. The time now is 01:04 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.