Elgenady
Veteran OT User
- Joined
- Aug 5, 2011
- Messages
- 1,629
- Solutions
- 34
- Reaction score
- 337
this will help player use 0.3777 or 0.4
github.com
in monsters.cpp
change
for
and in party.cpp add
after
void Party::broadcastMessage(MessageClasses messageClass, const std::string& text, bool sendToInvitations/* = false*/)
add
and in party.h add
same idea i saw for 1.3 source but i converted it for 0.777 or 0.4
3777/src at main · Fir3element/3777
The Forgotten Server 0.4 (rev 3777) with several improvements and bugfixes - 3777/src at main · Fir3element/3777
change
C++:
std::stringstream ss;
ss << "Loot of " << nameDescription << ": " << corpse->getContentDescription() << ".";
if(owner->getParty() && message > LOOTMSG_PLAYER)
owner->getParty()->broadcastMessage((MessageClasses)g_config.getNumber(ConfigManager::LOOT_MESSAGE_TYPE), ss.str());
else if(message == LOOTMSG_PLAYER || message == LOOTMSG_BOTH)
owner->sendTextMessage((MessageClasses)g_config.getNumber(ConfigManager::LOOT_MESSAGE_TYPE), ss.str());
}
for
C++:
std::stringstream ss;
ss << "Loot of " << nameDescription << ": " << corpse->getContentDescription() << ".";
if(owner->getParty())
{
owner->getParty()->broadcastPartyLoot(ss.str());
}
else
{
owner->sendChannelMessage("", ss.str(), SPEAK_CHANNEL_Y, uint16_t (12)); // 12 is number for loot channel
}
}
and in party.cpp add
after
void Party::broadcastMessage(MessageClasses messageClass, const std::string& text, bool sendToInvitations/* = false*/)
add
C++:
void Party::broadcastPartyLoot(const std::string& loot)
{
PlayerVector::iterator it;
leader->sendChannelMessage("", loot, SPEAK_CHANNEL_Y, 12); // 12 is number for loot channel
if(!memberList.empty())
{
for(it = memberList.begin(); it != memberList.end(); ++it)
(*it)-> sendChannelMessage("", loot, SPEAK_CHANNEL_Y, 12);
}
}
and in party.h add
C++:
void broadcastPartyLoot(const std::string& loot);
same idea i saw for 1.3 source but i converted it for 0.777 or 0.4