Shaiya Player Title?

07/29/2018 17:01 [GameAdvisor]Finn#1
Hello, Epvpers may i know if it is possible to have player title here in shaiya? like other mmorpg games? :)
09/03/2018 14:20 Ashura313#2
some servers have it like EG shaiya, dont know how but seems intresting..
09/06/2018 18:41 JujiPoli#3
Can you develop what do you mean exactly with some example or idk
09/08/2018 19:02 [ADMIN]Phreak#4
Quote:
Originally Posted by JujiPoli View Post
Can you develop what do you mean exactly with some example or idk
I believe he wants to do something like this. The "Killer" title.
[Only registered and activated users can see links. Click Here To Register...]
Source: Shaiya Asterios
09/09/2018 00:42 [GameAdvisor]Finn#5
Quote:
Originally Posted by [ADMIN]Phreak View Post
I believe he wants to do something like this. The "Killer" title.
[Only registered and activated users can see links. Click Here To Register...]
Source: Shaiya Asterios
Yeah exactly
09/20/2018 09:32 jackangel124#6
09/20/2018 11:12 Velocity.#7
Quote:
Originally Posted by jackangel124 View Post
this has nothing to do with this post?
that edits the character name, if you read the post he wants to add another title.
09/20/2018 14:44 Cups#8
It's an extra string present in the character details packet for Ep6+ clients, was first used for the "Champion of Shaiya" title in OS afaik.
08/18/2019 06:37 [GameAdvisor]Finn#9
[Only registered and activated users can see links. Click Here To Register...]

i saw its possible on other episode.. like shaiya mystra
08/21/2019 15:18 Cups#10
It's only possible on lower episodes as the feature has been ported over from higher episode clients. Here are my notes on the title packet present in Ep6+, for what it's worth:

Code:
#define NONE_FLAG               0
#define NAME_COLOUR_FLAG        2
#define TITLE_FLAG              4
#define OVERLAY_EFFECT_FLAG     8
#define UNDERLAY_EFFECT_FLAG    16

/**
 *  [MENTION=1332190]author[/MENTION] Triston Plummer ("Cups")
 *
 * Represents the outgoing character overlay packet.
 */
namespace Shaiya::Episodes::Outgoing {

	/**
	 * The character attributes structure
	 */
	struct CharacterOverlay {
		unsigned short opcode = 0x0240;
		unsigned int charId;
		bool visible;
		unsigned char flag = 0;
		unsigned int firstNameColour = 0;
		unsigned int secondNameColour = 0;
		unsigned int overlayEffect = 0;
		unsigned int underlayEffect = 0;
		char title[32] = { 0 };
	};
};

/**
 * Sends the player's overlay
 *
 *  [MENTION=1985011]param[/MENTION] user	The user instance
 */
void Ep8::sendOverlay(Shaiya::Models::CUser* user) {

	bool titleBool = true;
	bool nameColourBool = true;
	bool overlayEffectBool = true;

	int nameColour = 0xFF0000;
	const char* title = "The Vanquisher";
	int effect = 100;

	// The outgoing packet
	Shaiya::Episodes::Outgoing::CharacterOverlay overlay;
	overlay.charId = user->charId;
	overlay.visible = true;

	// The outgoing flag
	int flag = 0;
	if (titleBool) flag |= TITLE_FLAG;
	if (nameColourBool) flag |= NAME_COLOUR_FLAG;
	if (overlayEffectBool) flag |= OVERLAY_EFFECT_FLAG;
	overlay.flag = flag;

	// If the overlay is visibile
	if (overlay.visible) {
		overlay.firstNameColour = (flag & NAME_COLOUR_FLAG) ? nameColour : -1;
		overlay.secondNameColour = (flag & NAME_COLOUR_FLAG) ? nameColour : -1;
		overlay.underlayEffect = (flag & OVERLAY_EFFECT_FLAG) ? effect : -1;
		overlay.overlayEffect = (flag & OVERLAY_EFFECT_FLAG) ? effect : -1;

		if (flag & TITLE_FLAG) std::memcpy(&overlay.title, title, 32);
	}

	// Send the outgoing packet
	GameWorld::sendPacket(user, &overlay, sizeof(overlay));
}
12/28/2020 19:03 RapSandy#11
how the new Titel modus HOOW i want that :o