ServersMU - Comunidad
Zona Programadores => Sources => Mensaje iniciado por: Applayo en Abril 22, 2021, 12:14:52 am
-
(https://i.upanh.org/2021/03/25/Untitled-1.png)
[b]User.cpp[/b] =>[b]Gameserver[/b]
[code]int gObjGetRelationShip(LPOBJ lpObj, LPOBJ lpTargetObj)
{
if ( lpObj == NULL || lpTargetObj == NULL )
{
return false;
}
if ( lpObj->Guild == NULL || lpTargetObj->Guild == NULL )
{
return 0;
}
int iUnion = (!lpObj->Guild->GuildUnion) ? lpObj->Guild->Number : lpObj->Guild->GuildUnion;
int iUnion2 = (!lpTargetObj->Guild->GuildUnion) ? lpTargetObj->Guild->Number : lpTargetObj->Guild->GuildUnion;
return gUnionManager.GetGuildRelationShip(iUnion,iUnion2);
}[/code]
Creditos: LeeHenry
-
Very helpful, thanks for sharing.