Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] what's the problem?

[DiscordArchive] what's the problem?

[DiscordArchive] what's the problem?

rektbyfaith
Administrator
0
06-27-2023, 02:54 PM
#1
Archived author: Roboto • Posted: 2023-06-27T14:54:06.473000+00:00
Original source

what's the problem?
rektbyfaith
06-27-2023, 02:54 PM #1

Archived author: Roboto • Posted: 2023-06-27T14:54:06.473000+00:00
Original source

what's the problem?

rektbyfaith
Administrator
0
06-27-2023, 02:55 PM
#2
Archived author: Datoby • Posted: 2023-06-27T14:55:01.399000+00:00
Original source

nothing happed
rektbyfaith
06-27-2023, 02:55 PM #2

Archived author: Datoby • Posted: 2023-06-27T14:55:01.399000+00:00
Original source

nothing happed

rektbyfaith
Administrator
0
06-27-2023, 02:57 PM
#3
Archived author: Foe • Posted: 2023-06-27T14:57:50.678000+00:00
Original source

You really shouldn't be using ChatGPT
rektbyfaith
06-27-2023, 02:57 PM #3

Archived author: Foe • Posted: 2023-06-27T14:57:50.678000+00:00
Original source

You really shouldn't be using ChatGPT

rektbyfaith
Administrator
0
06-27-2023, 02:57 PM
#4
Archived author: Datoby • Posted: 2023-06-27T14:57:58.015000+00:00
Original source

i knoooooooow
rektbyfaith
06-27-2023, 02:57 PM #4

Archived author: Datoby • Posted: 2023-06-27T14:57:58.015000+00:00
Original source

i knoooooooow

rektbyfaith
Administrator
0
06-27-2023, 02:58 PM
#5
Archived author: Datoby • Posted: 2023-06-27T14:58:20.063000+00:00
Original source

now using this
local function RemoveEquippedItems(event, player)
if event == 30 then
-- Odstranění všech nasazených předmětů do inventáře
for slot = 0, 19 do
local itemGuid = player:GetEquippedItemBySlot(slot)
if itemGuid then
player:RemoveItem(itemGuid)
end
end
end
end

RegisterPlayerEvent(30, RemoveEquippedItems)

problem: bad argument #2 to 'RemoveItem' (number expected, got no value)
rektbyfaith
06-27-2023, 02:58 PM #5

Archived author: Datoby • Posted: 2023-06-27T14:58:20.063000+00:00
Original source

now using this
local function RemoveEquippedItems(event, player)
if event == 30 then
-- Odstranění všech nasazených předmětů do inventáře
for slot = 0, 19 do
local itemGuid = player:GetEquippedItemBySlot(slot)
if itemGuid then
player:RemoveItem(itemGuid)
end
end
end
end

RegisterPlayerEvent(30, RemoveEquippedItems)

problem: bad argument #2 to 'RemoveItem' (number expected, got no value)

rektbyfaith
Administrator
0
06-27-2023, 03:10 PM
#6
Archived author: Roboto • Posted: 2023-06-27T15:10:09.273000+00:00
Original source

<https://www.azerothcore.org/pages/eluna/Player/RemoveItem.html>
rektbyfaith
06-27-2023, 03:10 PM #6

Archived author: Roboto • Posted: 2023-06-27T15:10:09.273000+00:00
Original source

<https://www.azerothcore.org/pages/eluna/Player/RemoveItem.html>

rektbyfaith
Administrator
0
06-27-2023, 03:15 PM
#7
Archived author: Datoby • Posted: 2023-06-27T15:15:48.465000+00:00
Original source

it works thank you very much
rektbyfaith
06-27-2023, 03:15 PM #7

Archived author: Datoby • Posted: 2023-06-27T15:15:48.465000+00:00
Original source

it works thank you very much

rektbyfaith
Administrator
0
06-27-2023, 04:23 PM
#8
Archived author: Honey • Posted: 2023-06-27T16:23:05.122000+00:00
Original source

Why not just remove the starter gear from the database though?
rektbyfaith
06-27-2023, 04:23 PM #8

Archived author: Honey • Posted: 2023-06-27T16:23:05.122000+00:00
Original source

Why not just remove the starter gear from the database though?

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