[DiscordArchive] Basically, when someone creates a group you want to get their race and the race of the person invite
[DiscordArchive] Basically, when someone creates a group you want to get their race and the race of the person invite
Archived author: iThorgrim • Posted: 2020-08-09T14:39:59.513000+00:00
Original source
Basically, when someone creates a group you want to get their race and the race of the person invited?
Archived author: Bset • Posted: 2020-08-09T14:43:16.235000+00:00
Original source
yeah, thats it
Archived author: Bset • Posted: 2020-08-09T14:43:43.349000+00:00
Original source
then if playerrace == leaderrace then they can be in same party
Archived author: Bset • Posted: 2020-08-09T14:43:52.463000+00:00
Original source
if not then action is cancelled immediately
Archived author: iThorgrim • Posted: 2020-08-09T14:43:59.920000+00:00
Original source
```lua
local function onInviteInGroup(event, group, guid)
local leader = GetPlayerByGUID(group:GetLeaderGUID());
local leaderRace = leader:GetRaceMask();
-- LeaderRace not LeaderPrice .. Ahah! I'm so funny!
local playerInvited = GetPlayerByGUID(guid)
local playerInvitedRace = playerInvited:GetRaceMask();
end
RegisterGroupEvent(2, onInviteInGroup);
```
Archived author: Bset • Posted: 2020-08-09T14:44:14.366000+00:00
Original source
Archived author: Bset • Posted: 2020-08-09T14:44:30.386000+00:00
Original source
Thanks a heap!
Archived author: iThorgrim • Posted: 2020-08-09T14:45:05.213000+00:00
Original source
whait 2scd
Archived author: iThorgrim • Posted: 2020-08-09T14:45:09.261000+00:00
Original source
just a little correction x)
Archived author: Bset • Posted: 2020-08-09T14:45:16.084000+00:00
Original source
np