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

Development::Tools 3rd Party Tools for EQEMu (DB management tools, front ends, etc...)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2009, 02:18 AM
core
Sarnak
 
Join Date: Aug 2005
Posts: 32
Default Web Based PH Char Mover (Stuck)

Hey all.

Hope this is the right spot for it. Been looking around for a PHP web based character mover. I saw one a long time ago with login, psw and charname and it moves the stuck char to Nexus or somewhere and you can have it on your webpage for users to access themselves.

If anyone knows of a code such as this or has a simple code to right I would be more than happy. Been looking for awhile but cant find any.
Reply With Quote
  #2  
Old 08-08-2009, 04:30 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

I would love to see this in the default web templates coming with the eqemu.. Thanks in advance if anyone takes his time to make it happen.
__________________
Reply With Quote
  #3  
Old 08-10-2009, 08:26 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

if nobody responds with code / solution I may be able to whip something up for ya. Just will wait a day or so to see.
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #4  
Old 08-13-2009, 04:28 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

This would be awesome mate. I would like to implement this code to our server portal too for players as a new feature. Really looking forward to it.
__________________
Reply With Quote
  #5  
Old 08-17-2009, 08:10 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Ok, I'm hacking up the all purpose tool "Custom" (http://www.eqemulator.net/forums/showthread.php?t=23892) to be modular and was going to add this feature, but uh.. this code is also pretty bad at the moment.

Here's some questions to you:
By default, latest PEQ database has login sessions handled via the EQEMU login server unless you use a minilogin server. I'm assuming you're using the EQEMU server, and with that, how do you plan to authenticate legitimate users from non-legitimate?

I was going to do an IP-based authentication system (compare the user's IP with the lastlogin_ip field inside the database, however this is a custom addition to VZTZ code apparantly.) Structure of PEQ's DB SVN looks like so:

CREATE TABLE `account` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(30) NOT NULL default '',
`charname` varchar(64) NOT NULL default '',
`sharedplat` int(11) NOT NULL default '0',
`password` varchar(50) NOT NULL default '',
`status` int(5) NOT NULL default '0',
`lsaccount_id` int(11) unsigned default NULL,
`gmspeed` tinyint(3) unsigned NOT NULL default '0',
`revoked` tinyint(3) unsigned NOT NULL default '0',
`karma` INT(5) UNSIGNED NOT NULL DEFAULT '0',
`minilogin_ip` varchar(32) NOT NULL DEFAULT '0',
`hideme` tinyint(4) NOT NULL default '0',
`rulesflag` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `lsaccount_id` (`lsaccount_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

No "lastlogin_ip" in it. :/

Anyways, while you help me try to figure out an authentication system, i'll be working on the code. If nothing else, it can be an administrative-based system.

Maybe I'll inquire to cavemandude adding the lastlogin_ip field. It is pretty handy if you ask me.

Any other features you'd like on top of the "PH Stuck Char Mover"?

It may be easier to fix the "Return Home" button inside the source to just have a faster repop timer.. Then they only have to wait ~10 mins to get back home/unstuck. Not sure if this solution is a simple DB edit or if it's a recompile.
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #6  
Old 08-17-2009, 05:14 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Good point about the authentication. Yes, we do use eqemu. I'm not an expert with php or sql tho, so sorry if I suggest or ask something dumb. Anyways, I saw that the account table in peq has a password frield. Could we just use that for authentication? It's the pw field that the default Templates admin tool uses too I think?

About the other features, it would be great to have a "Server Status" and a "Who is online" player list (name, guild, zone, magelo link). I was thinking some other useful admin tools too.. but not sure how much trouble it is to code something like that.. I don't want to ask for something time consuming, but once again, many thanks for your effort already done!
__________________
Reply With Quote
  #7  
Old 08-17-2009, 05:22 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

and yes, last ip would be awesome to have for some other reason too. hard to update the banned ip list from logs..
__________________
Reply With Quote
  #8  
Old 08-17-2009, 07:38 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

PEQ used to have their character mover tool available for download somewhere, but I can't seem to find it anymore. That is the one I use as well, and all you do to authenticate is enter the account name and character name you want to move. Basically, account names are private enough that it shouldn't be much of an issue. Plus, it isn't the end of the world if someone moved your character to Nexus, as long as they aren't doing it non-stop just to harass you.

The last_ip field would be awesome to have in the accounts table. I have been wanting to get one added for a long time now. I just haven't had time to really look into it. It would just make getting rid of the bad eggs and tracking people down much easier.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #9  
Old 08-18-2009, 06:59 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

I'll write the code for it and see if the devs want it, since it's essentially done in the VZTZ source.

Seems original maker of "Custom" php all in one tools contacted me, will try to commit my changes and throw this char ph mover tool in.

Char mover isn't really that tough code wise, it's just getting it hackproof and having an authentication method that can be a little tedious due to the PEQ/EQEMU SVN source structure right now. Working on it though. Will likely use the lastlogin_ip field for testing on IP authenticated char_move.

I've been thinking of a "Who's online" tool too. I actually have it partially coded on my source, but my method of counting players online is a bit hackjob. I have a feeling one of the veteran coders can direct me on a better route to get an accurate online count.

If you click my "Claws of Veeshan" picture below, you can see an in game spy tool I have been partially working on. The syncronization needs some work, but it's displaying PvP messages and OOC broadcasts from in game into an AJAX controlled (auto-refreshes) in game spy tool on the website.

__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #10  
Old 08-18-2009, 07:05 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

The 'password' columns is only used in minilogin based systems (Or maybe if you run your own EQEMULogin? not sure), you could populate a password in there but how do you authenticate who can set a password there? /ponder..
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #11  
Old 08-18-2009, 01:29 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

couldn't think of a way to populate the pw field automatically. maybe if we could populate it using the LS account names. then we would have the LSusername and Charname combo to authenticate.. like in the peq version of this tool what Trev mentioned. I saw that SH and Peq server uses the same authentication (LS username + charname) too.
but then again, it could be a security hole, since the default templates tool coming with emu uses the pw field to authenticate, and that is often public. I'm afraid I can't provide any good idea..

Trev, any luck finding the source?
__________________
Reply With Quote
  #12  
Old 08-18-2009, 05:16 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 506
Default

Quote:
Originally Posted by trevius View Post
The last_ip field would be awesome to have in the accounts table. I have been wanting to get one added for a long time now. I just haven't had time to really look into it. It would just make getting rid of the bad eggs and tracking people down much easier.
Maybe peek @ http://www.eqemulator.net/forums/showthread.php?t=29269
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #13  
Old 08-21-2009, 01:47 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Quote:
Originally Posted by trevius View Post
PEQ used to have their character mover tool available for download somewhere, but I can't seem to find it anymore. That is the one I use as well, and all you do to authenticate is enter the account name and character name you want to move. Basically, account names are private enough that it shouldn't be much of an issue. Plus, it isn't the end of the world if someone moved your character to Nexus, as long as they aren't doing it non-stop just to harass you.

The last_ip field would be awesome to have in the accounts table. I have been wanting to get one added for a long time now. I just haven't had time to really look into it. It would just make getting rid of the bad eggs and tracking people down much easier.
It's here: http://www.projecteq.net/phpBB2/viewtopic.php?t=3199

We lost it when we upgraded, so I restripped the file and reposted. Sorry about that!
Reply With Quote
  #14  
Old 08-21-2009, 01:53 PM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

Thank you Sir!
__________________
Reply With Quote
  #15  
Old 05-11-2010, 03:43 PM
kaos00723
Sarnak
 
Join Date: Apr 2010
Posts: 38
Default

I'm having trouble getting this to work correctly.

For some reason it works fine for the 1st admin account but will not work using any other accounts or character names.

I know I'm typing the loginserver name and character names correctly but I'm still getting "Character Name Incorrect! Aborting...".

I don't understand why it works for the admin account and not any others.

Can someone that uses this script please help me out? I'm using the latest PEQ database from the SVN.

Thanks!
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 08:52 AM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3