Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Tools

Archive::Tools Archive area for Tools's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2004, 08:32 AM
_OZZY_
Hill Giant
 
Join Date: Jan 2002
Location: Shreveport, Louisiana, USA
Posts: 129
Default PHP Interface

A long time ago a guy named Stormgod had a PHP interface to EQEmu that'd tell players, stats, etc. Has anyone picked up on this project or developed something similar? If not, does anyone have any sorta idea as to the best way to approach doing something like this?

Thanks!
Reply With Quote
  #2  
Old 01-18-2004, 10:44 AM
var1ety
Sarnak
 
Join Date: Jan 2003
Posts: 59
Default

Edit: This post concerns player statistics (strength, constitution, etc), bank account, worn equipment, etc. This, however, does not report players online, or anything like that - if that's what you wanted, then disregard.

I'm not aware of any public projects. However, this is easily accomplished in PHP - I was writing a simple parser last night for fun at the same time another friend was. The following link is a compilation of some basic scripts I wrote last night, they could be easily modified to display character information in any way you chose. They are just proof of concept kind of stuff, you could mix and match lines from them to get the data, and in turn display them in any fashion you wished.

These were made referencing Shawn319's CVS from January 12, 2004, but may work with previous versions.

http://cobblering.kicks-ass.net/~tim...q/eqphp.tar.gz

Files:
eqphp/profile.php
eqphp/pp.sed
eqphp/pp.awk
eqphp/equip.php
eqphp/db.inc.php

Details:

================================================== ============

eqphp/profile.php

Generated using common/eq_packet_structs.h in conjunction with pp.sed and pp.awk. To re-generate:

awk -f pp.awk ~/devel/eqemu/cur/src/common/eq_packet_structs.h | sed -f pp.sed > profile.php

Note: There are errors in the listed offset in that file - last_name begins around byte 70, not byte 68. Gold begins at offset 2924, not 2922. These are correct in my local copy, and in profile.php

================================================== ============

eqphp/pp.sed

sed script that turns the lines in the PlayerProfile_Struct into a php script to read in and display them.

================================================== ============

eqphp/pp.awk

awk script that extracts the PlayerProfile_Struct from common/eq_packet_structs.h

================================================== ============

eqphp/equip.php

PHP script that parses the inventory table, real basic - displays slot, item name that is equipped in the slot, and charges.

================================================== ============

eqphp/db.inc.php

Loaded in the other PHP scripts included - this file contains database login
information, and initiates the connection to the specified MySQL database.
Reply With Quote
Reply


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 10:22 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