mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
11 lines
315 B
Lua
11 lines
315 B
Lua
local ITEM_ID = 66000 -- The item ID
|
|
|
|
local function OnPlayerLogin(event, player)
|
|
-- Check if the player already has the item
|
|
if not player:HasItem(ITEM_ID) then
|
|
-- If not, add the item to the player's inventory
|
|
player:AddItem(ITEM_ID, 1)
|
|
end
|
|
end
|
|
|
|
RegisterPlayerEvent(3, OnPlayerLogin)
|