First of all, English is not my mother tongue, so sorry in advance for any mistakes.
This library is the first step in a bigger dream.
One day, I thought to myself that there weren't enough people on my TrinityCore server (i was alone).
I could have invited my friends to join me, but I don't have many and they aren't as geeky as I am.
I could have invited strangers to join me, but I should have spent time administering the server, chatting, maybe even organizing events, in short, I didn't have the courage or the inclination.
So I decided to create the players for my server (mainly to have fun and see what I can do).
This library is therefore a piece of a bot system for TrinityCore, a system that will see the light of day in a long time or never.
Have a nice day
- Authenticate with an existing account on authserver
- Get the list of world servers
- Connect to a world server
- Get the list of existing characters
- Enter the world with a character
- Stay connected
- Getting world properties
- Realtime entities (players, npcs, creatures, world items, gameobjects) properties (name, stats, position) update
- Facing an entity, a position or a specific angle
- Sit and stand
- Player chatting (say,group,shout,etc...)
- Player doing emotes
You can install the library by its nuget package : TrinityCore.GameClient.Net.Lib
Working on moving the player :
- Moving forward, backward, strafe, walking, running and sending movement heartbeats
- Jumps
- Player melee attack.
- Player joining a group.
- Player casting spells
- Player looting
- Player interracting with npc
- Player begging for some gold or an item
var gameClient = new GameClient();
var authServer = new AuthServerInfo("<serveur host>", 3724);
var credentials = new AuthServerCredentials("<login>", "<password>");
// Authenticating to the auth server
bool authAuthenticate = await gameClient.Authenticate(authServer, credentials);
// Retrieving realms list
List<WorldServerInfo> realms = await gameClient.GetRealms();
// Authenticating to the realm server
bool worldAuthenticate = await gameClient.ConnectToRealm(realms[0]);
// Retreiving the characters list
List<Character> characters = await gameClient.GetCharacters();
// Log the characters into the realm
bool characterLogin = await gameClient.EnterRealm(characters[0]);