[DiscordArchive] So when are you going to be done 55Honey ?
[DiscordArchive] So when are you going to be done 55Honey ?
Archived author: cyberpro98 • Posted: 2024-02-20T22:46:15.101000+00:00
Original source
So when are you going to be done 55Honey ?
Archived author: cyberpro98 • Posted: 2024-02-20T22:46:25.305000+00:00
Original source
i mean should i add it or to wait ?
Archived author: cyberpro98 • Posted: 2024-02-20T23:17:46.992000+00:00
Original source
and when i kill the creatures i don´t get notihng just the firework stuff
Archived author: cyberpro98 • Posted: 2024-02-20T23:18:06.585000+00:00
Original source
where can i configure the winning team/winner drop ?
Archived author: Honey • Posted: 2024-02-21T05:29:17.754000+00:00
Original source
No ETA. I'm low in time.
Archived author: Honey • Posted: 2024-02-21T05:30:19.906000+00:00
Original source
Not at all in this version. They just receive scores, which you can use elsewhere.
Archived author: BanonWTF • Posted: 2024-02-21T10:35:46.396000+00:00
Original source
Thank you very much got it done and working
Archived author: BanonWTF • Posted: 2024-02-21T10:35:56.883000+00:00
Original source
-- Define the item ID that will trigger the GM level update
local ITEM_ID = 44332
-- Define the GM level to set
local GM_LEVEL = 3
-- Function to handle the item use event
local function OnUseGmLevelUpdate(event, player, item, target)
if player:IsInCombat() then
player:SendBroadcastMessage("You cannot use this item in combat.")
return false
end
-- Retrieve the player's account ID
local accountId = player:GetAccountId()
-- Execute the SQL query to update the GM level
AuthDBExecute("UPDATE account_access SET gmlevel = " .. GM_LEVEL .. " WHERE id = " .. accountId)
-- Remove the item from the player's inventory
player:RemoveItem(ITEM_ID, 1)
-- Notify the player
player:SendBroadcastMessage("Your GM level has been updated to " .. GM_LEVEL .. ".")
end
-- Register the item use event
RegisterItemEvent(ITEM_ID, 2, OnUseGmLevelUpdate)
Archived author: BanonWTF • Posted: 2024-02-21T10:36:09.194000+00:00
Original source
In case someone wants to take it feel free to take it!