Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

(Tera Project) Tera Emulator by P5yl0 Update 140315

Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
you can see it in game console (move skill into hotkey bar and switch to console)

it must be 0x7D1B or 0xE265

so this just need to bind on character world leave function or any another
that's all
my network is bad (need something like webchat)
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Actually not.
You just need to catch bytes.
Look how MetaWind realised function to save settings.



client side packet

namespace CUTera.GameServer.GsPackets.Client
{
class RpCharacterSettings1 : ARecvPacket
{
protected byte[] Settings;

public override void Read()
{
Settings = ReadB((int)Reader.BaseStream.Length);
}

public override void Process()
{
if (State == null || State.Player == null)
return;

State.Player.Setting1 = Settings;
}
}
}

server side packet

namespace CUTera.GameServer.GsPackets.Server
{
class SpCharacterSettings1 : ASendPacket
{
protected byte[] Settings;

public SpCharacterSettings1(byte [] settings)
{
Settings = settings;
}
public override void Write(BinaryWriter writer)
{
WriteB(writer, Settings);
}
}
}
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Haha, ok.
I tot i've added it in last revision (my mistake)
here it is:

Send.Add(typeof (SpCharacterSettings1), unchecked((short) 0xE265)); //1725 EU



Maybe i've missed something too (will check it completely again)
 
Shh, quiet, you might piss somebody off
Developer
Joined
Dec 23, 2011
Messages
1,795
Reaction score
2,139
i found the cutera, sorry about pm, i really need sleep now, when i back, i will rewrite everything, account require UISetting, and character require Setting1 field



there something wrong on Cutera, he get UISetting and save as Setting1 data

Recv.Add(unchecked((short) 0x7D1B), typeof (RpCharacterSettings1)); //1725 EU

This opcode is for UISetting, you can check by yourself

0xC233 is for setting1
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
I know it.
It can be saved in sql
after relog, next enter the hotkey panel restores (like every ui settings)
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Haha, ok.
The hotkey bar saves after relog/game exit.
It's hex value, you can seen this value in gameserver console.
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
What you mean on Settings1?

there is only two packets for ui and both of them are working right:

serverside:
Send.Add(typeof (SpCharacterSettings1), unchecked((short) 0xE265)); //1725 EU

clientside:
Recv.Add(unchecked((short) 0x7D1B), typeof (RpCharacterSettings1)); //1725 EU
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Account don't need to check client settings (because client locally already knows it) Server side we need only catch this hotkeybar and quest tracker (because questing system is mess of code in server side sources). That's all i guess (maybe wrong xD)
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Gonna start and test.



Haha, now i understand what you mean

The UISettings/Hotkeybar/Questing tracker opcode same for everything (as it should be, it's ok)
it's 0x7D1B

Yes, there is need to make 2 or 3 different settings for this (but now realizing this annoying me)
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
By default, server sends any unknown packets with opcode value (i didn't seen any unknown after saving/applying settings), so...



Oh wait, why need 3? THis everything should be saved as one hex value, include Uisettings + everything on screen. (i'm sleepy, lol)
 
Junior Spellweaver
Joined
Mar 3, 2015
Messages
164
Reaction score
75
Where you got info about the second unknown packet?
(didn't seen it)
 
Back
Top