• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

Load character command

Newbie Spellweaver
Joined
Mar 9, 2016
Messages
29
Reaction score
0
Hello guys, Im trying to make a command that loads up character along with the inventory to my own client. It basically copies a character making me able to view their equips/items and move/talk as them without logging inside their accounts.
I am looking around playerloggedin handler to search for the called method used to load up a char,

I have tried client.setPlayer(character).
It does set myself as that player through interactive movements such as chatting, changing maps, npc player scripts, etc. When I move myself, the target player moves with me like a pet on my screen.

my appearance didnt change nor the inventory i'm viewing.*
 
Joined
Apr 10, 2008
Messages
4,087
Reaction score
1,264
If I'm understanding you correctly - what you're trying to achieve is logging in into a different character just like normally but without the need of the actual login process - similar to the old "remote hack". It's pretty simple.

  1. Obtain the target character ID using the name from the database
  2. (Optional) Change the target character's map and position to your current map/position.
  3. Disconnect the target character if they're logged in.
  4. Send a channel change packet to yourself with the target character ID and the same IP as the channel you're currently in (making the client reconnect without the login process)
  5. Modify PlayerLoggedInHandler to skip any checks for remote hack
 
Upvote 0
Back
Top