Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] Basically, when someone creates a group you want to get their race and the race of the person invite

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
08-09-2020, 02:39 PM
#1
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?
rektbyfaith
08-09-2020, 02:39 PM #1

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?

rektbyfaith
Administrator
0
08-09-2020, 02:43 PM
#2
Archived author: Bset • Posted: 2020-08-09T14:43:16.235000+00:00
Original source

yeah, thats it
rektbyfaith
08-09-2020, 02:43 PM #2

Archived author: Bset • Posted: 2020-08-09T14:43:16.235000+00:00
Original source

yeah, thats it

rektbyfaith
Administrator
0
08-09-2020, 02:43 PM
#3
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
rektbyfaith
08-09-2020, 02:43 PM #3

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

rektbyfaith
Administrator
0
08-09-2020, 02:43 PM
#4
Archived author: Bset • Posted: 2020-08-09T14:43:52.463000+00:00
Original source

if not then action is cancelled immediately
rektbyfaith
08-09-2020, 02:43 PM #4

Archived author: Bset • Posted: 2020-08-09T14:43:52.463000+00:00
Original source

if not then action is cancelled immediately

rektbyfaith
Administrator
0
08-09-2020, 02:43 PM
#5
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);
```
rektbyfaith
08-09-2020, 02:43 PM #5

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);
```

rektbyfaith
Administrator
0
08-09-2020, 02:44 PM
#6
Archived author: Bset • Posted: 2020-08-09T14:44:14.366000+00:00
Original source

rektbyfaith
08-09-2020, 02:44 PM #6

Archived author: Bset • Posted: 2020-08-09T14:44:14.366000+00:00
Original source

rektbyfaith
Administrator
0
08-09-2020, 02:44 PM
#7
Archived author: Bset • Posted: 2020-08-09T14:44:30.386000+00:00
Original source

Thanks a heap!
rektbyfaith
08-09-2020, 02:44 PM #7

Archived author: Bset • Posted: 2020-08-09T14:44:30.386000+00:00
Original source

Thanks a heap!

rektbyfaith
Administrator
0
08-09-2020, 02:45 PM
#8
Archived author: iThorgrim • Posted: 2020-08-09T14:45:05.213000+00:00
Original source

whait 2scd
rektbyfaith
08-09-2020, 02:45 PM #8

Archived author: iThorgrim • Posted: 2020-08-09T14:45:05.213000+00:00
Original source

whait 2scd

rektbyfaith
Administrator
0
08-09-2020, 02:45 PM
#9
Archived author: iThorgrim • Posted: 2020-08-09T14:45:09.261000+00:00
Original source

just a little correction x)
rektbyfaith
08-09-2020, 02:45 PM #9

Archived author: iThorgrim • Posted: 2020-08-09T14:45:09.261000+00:00
Original source

just a little correction x)

rektbyfaith
Administrator
0
08-09-2020, 02:45 PM
#10
Archived author: Bset • Posted: 2020-08-09T14:45:16.084000+00:00
Original source

np
rektbyfaith
08-09-2020, 02:45 PM #10

Archived author: Bset • Posted: 2020-08-09T14:45:16.084000+00:00
Original source

np

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing