[DiscordArchive] book as in GO or item?
[DiscordArchive] book as in GO or item?
Archived author: Honey • Posted: 2025-02-18T22:09:18.985000+00:00
Original source
book as in GO or item?
Archived author: Michael Crilly • Posted: 2025-02-18T22:09:23.785000+00:00
Original source
GO.
laySound(8959) -- Example: Play a mystical sound effect
laySound(8959) -- Example: Play a mystical sound effect
laySound(8959) -- Example: Play a mystical sound effectArchived author: Michael Crilly • Posted: 2025-02-18T22:09:58.677000+00:00
Original source
I've tried a few things. I can't even see if my script is being loaded by Eluna (I wish it would print that to the logs by default): ```
-- When the GameObject is used
local ON_PLAYER_USE = 2
local function OnUse(event, go, player)
player:SendBroadcastMessage("You feel a strange power as you read the book...") -- Message to the player
player
laySound(8959) -- Example: Play a mystical sound effect
-- Global:Kick(player)
player_level = player:GetLevel()
if player_level < 10
then
player:SetLevel(10)
return
end
if player_level >= 10 and player_level < 20
then
player:SetLevel(20)
return
end
end
local function OnUseGossip(event, player, object)
player:SendBroadcastMessage("You feel a strange power as you read the book...") -- Message to the player
player
laySound(8959) -- Example: Play a mystical sound effect
end
local function OnDialogStatus(event, player, go)
player:SendBroadcastMessage("You feel a strange power as you read the book...") -- Message to the player
player
laySound(8959) -- Example: Play a mystical sound effect
end
local ONE_USE = 1 -- how many times the script fires for this object
RegisterGameObjectEvent(501000, 2, OnUse)
RegisterGameObjectEvent(501000, 14, OnUse)
RegisterGameObjectEvent(501000, 6, OnDialogStatus)
RegisterGameObjectGossipEvent(501000, 1, OnUseGossip)```
Archived author: Michael Crilly • Posted: 2025-02-18T22:10:43.748000+00:00
Original source
I thought it might have been a Gossip event as you're getting a gossip like result, but nothing so far.