[DiscordArchive] Is this made by Chat GPT?
[DiscordArchive] Is this made by Chat GPT?
Archived author: Honey • Posted: 2024-02-12T16:54:37.402000+00:00
Original source
Is this made by Chat GPT?
Archived author: cyberpro98 • Posted: 2024-02-12T16:57:40.921000+00:00
Original source
Well i tried it by myself and i had errors so i tried fixing it by use of blackbox
Archived author: cyberpro98 • Posted: 2024-02-12T16:58:26.891000+00:00
Original source
on eluna documentation are no examples how a itemsumm script should look like its too much complicated for me without examples :X
Archived author: Honey • Posted: 2024-02-12T17:02:15.563000+00:00
Original source
Your first and biggest mistake is that you're not using the global function `RegisterPlayerEvent`. Instead you try to `:register` a function to a `player` object, which does not exist.
Archived author: cyberpro98 • Posted: 2024-02-12T17:02:42.518000+00:00
Original source
okay
Archived author: cyberpro98 • Posted: 2024-02-12T17:02:43.367000+00:00
Original source
so
Archived author: cyberpro98 • Posted: 2024-02-12T17:03:05.734000+00:00
Original source
local itemEntry = 100156
local function OnUseItem(event, player, item)
if player:IsInCombat() or player:IsInArena() or player:IsInBattleGround() then
player:SendBroadcastMessage("You cannot use this item while in combat or in an arena/battleground.")
return
end
player:Teleport(1, 4635.839844, -3823.530029, 943.051025, 1.199600) -- replace with your coordinates
end
local function OnItemUse(event, player, item)
if item:GetEntry() == itemEntry then
OnUseItem(event, player, item)
end
end
RegisterPlayerEvent( 100156, 2, 0)
Archived author: Foe • Posted: 2024-02-12T17:03:28.008000+00:00
Original source
Read the RegisterPlayerEvent documentation
Archived author: cyberpro98 • Posted: 2024-02-12T17:04:04.038000+00:00
Original source
lua_scripts/hyjalitemsummon.lua:18: bad argument #1 to 'RegisterPlayerEvent' (number expected, got string)
Archived author: cyberpro98 • Posted: 2024-02-12T17:05:32.099000+00:00
Original source
well that´s what i dont understand