• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Ghost mode

Donzscurr

Little Sneaky Poster
Joined
Jun 20, 2009
Messages
25
Reaction score
0
Is there anyway when you use /ghost, that i can make it use the effect "65" or Yalahari_Ghost? I been trying to figure this out.. If ya can help. I'll rep ya =] ++
 
Try editing:
Code:
void ProtocolGame::AddCreatureOutfit(NetworkMessage_ptr msg, const Creature* creature, const Outfit_t& outfit, bool outfitWindow/* = false*/)
{
	if(outfitWindow || !creature->getPlayer() || (!creature->isInvisible() && (!creature->isGhost()
		|| !g_config.getBool(ConfigManager::GHOST_INVISIBLE_EFFECT))))
	{
		msg->put<uint16_t>(outfit.lookType);
		if(outfit.lookType)
		{
			msg->put<char>(outfit.lookHead);
			msg->put<char>(outfit.lookBody);
			msg->put<char>(outfit.lookLegs);
			msg->put<char>(outfit.lookFeet);
			msg->put<char>(outfit.lookAddons);
		}
		else if(outfit.lookTypeEx)
			msg->putItemId(outfit.lookTypeEx);
		else
			msg->put<uint16_t>(outfit.lookTypeEx);
	}
	else
		msg->put<uint32_t>(0x00);
}
 
It's placed in protocolgame.cpp, you have to find it and try editing lookType to Yalahari Ghost Looktype.
 
Back
Top