Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] you want to store player object ? in table ?

[DiscordArchive] you want to store player object ? in table ?

[DiscordArchive] you want to store player object ? in table ?

rektbyfaith
Administrator
0
04-28-2020, 12:32 PM
#1
Archived author: iThorgrim • Posted: 2020-04-28T12:32:16.184000+00:00
Original source

you want to store player object ? in table ?
rektbyfaith
04-28-2020, 12:32 PM #1

Archived author: iThorgrim • Posted: 2020-04-28T12:32:16.184000+00:00
Original source

you want to store player object ? in table ?

rektbyfaith
Administrator
0
04-28-2020, 12:33 PM
#2
Archived author: iThorgrim • Posted: 2020-04-28T12:33:57.976000+00:00
Original source

if you want to store player ionformation on table in lua it's simple :

```lua
local storage = {};
local function blablabla(event, player)
local pGuid = player:GetGUIDLow();
if not storage[pGuid] then
storage[pGuid] = {
level = player:GetLevel();
};
end
end
```
rektbyfaith
04-28-2020, 12:33 PM #2

Archived author: iThorgrim • Posted: 2020-04-28T12:33:57.976000+00:00
Original source

if you want to store player ionformation on table in lua it's simple :

```lua
local storage = {};
local function blablabla(event, player)
local pGuid = player:GetGUIDLow();
if not storage[pGuid] then
storage[pGuid] = {
level = player:GetLevel();
};
end
end
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)