I found this command while looking through the revision mod I released and thought I'd share it. It's a super basic command I used to invite people to parties without having to warp to them & click on them. It's more a novelty & I'm surprised one hasn't been made before tbh:
void AddToParty(const std::vector<std::string>& arguments, Character* from)
{
Character * ch = from->SourceWorld()->GetCharacter(arguments[0]);
if(ch){
if(!from->party){
new Party(from->world, from, ch);
}
else{
from->party->Join(ch);
}
ch->StatusMsg(util::ucfirst(from->SourceName())+" added you to a party");
}else{
from->ServerMsg("Player not found");
}
}
&&
RegisterCharacter({"partyadd", {"name"}, {}, 8}, AddToParty, CMD_FLAG_DUTY_RESTRICT);