[DiscordArchive] what's the problem?
[DiscordArchive] what's the problem?
Archived author: Roboto • Posted: 2023-06-27T14:54:06.473000+00:00
Original source
what's the problem?
Archived author: Datoby • Posted: 2023-06-27T14:55:01.399000+00:00
Original source
nothing happed
Archived author: Foe • Posted: 2023-06-27T14:57:50.678000+00:00
Original source
You really shouldn't be using ChatGPT
Archived author: Datoby • Posted: 2023-06-27T14:57:58.015000+00:00
Original source
i knoooooooow
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)
Archived author: Roboto • Posted: 2023-06-27T15:10:09.273000+00:00
Original source
<https://www.azerothcore.org/pages/eluna/Player/RemoveItem.html>
Archived author: Datoby • Posted: 2023-06-27T15:15:48.465000+00:00
Original source
it works thank you very much
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?