Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] can it not be tostring?

[DiscordArchive] can it not be tostring?

[DiscordArchive] can it not be tostring?

rektbyfaith
Administrator
0
06-07-2025, 12:47 PM
#1
Archived author: Yuppls • Posted: 2025-06-07T12:47:59.505000+00:00
Original source

can it not be tostring?
rektbyfaith
06-07-2025, 12:47 PM #1

Archived author: Yuppls • Posted: 2025-06-07T12:47:59.505000+00:00
Original source

can it not be tostring?

rektbyfaith
Administrator
0
06-07-2025, 12:48 PM
#2
Archived author: Tereneckla • Posted: 2025-06-07T12:48:28.951000+00:00
Original source

guid in cpp has an IsEmpty method
rektbyfaith
06-07-2025, 12:48 PM #2

Archived author: Tereneckla • Posted: 2025-06-07T12:48:28.951000+00:00
Original source

guid in cpp has an IsEmpty method

rektbyfaith
Administrator
0
06-07-2025, 12:55 PM
#3
Archived author: Yuppls • Posted: 2025-06-07T12:55:35.392000+00:00
Original source

```local function HasActivePetBlockPrestige(player)
local petGUID = tostring(player:GetPetGUID())

print("GetPetGUID(): " .. tostring(petGUID))

if not petGUID or petGUID == "0" or petGUID == nil then
print("NO BIG NUMBER, YOU CAN GO AHEAD")
return false
end
print("BIG NUMBER, REFUSED")
return true
end```

seems to have worked
rektbyfaith
06-07-2025, 12:55 PM #3

Archived author: Yuppls • Posted: 2025-06-07T12:55:35.392000+00:00
Original source

```local function HasActivePetBlockPrestige(player)
local petGUID = tostring(player:GetPetGUID())

print("GetPetGUID(): " .. tostring(petGUID))

if not petGUID or petGUID == "0" or petGUID == nil then
print("NO BIG NUMBER, YOU CAN GO AHEAD")
return false
end
print("BIG NUMBER, REFUSED")
return true
end```

seems to have worked

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