Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] book as in GO or item?

[DiscordArchive] book as in GO or item?

[DiscordArchive] book as in GO or item?

rektbyfaith
Administrator
0
02-18-2025, 10:09 PM
#1
Archived author: Honey • Posted: 2025-02-18T22:09:18.985000+00:00
Original source

book as in GO or item?
rektbyfaith
02-18-2025, 10:09 PM #1

Archived author: Honey • Posted: 2025-02-18T22:09:18.985000+00:00
Original source

book as in GO or item?

rektbyfaith
Administrator
0
02-18-2025, 10:09 PM
#2
Archived author: Michael Crilly • Posted: 2025-02-18T22:09:23.785000+00:00
Original source

GO.
rektbyfaith
02-18-2025, 10:09 PM #2

Archived author: Michael Crilly • Posted: 2025-02-18T22:09:23.785000+00:00
Original source

GO.

rektbyfaith
Administrator
0
02-18-2025, 10:09 PM
#3
Archived 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
playerTonguelaySound(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
playerTonguelaySound(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
playerTonguelaySound(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)```
rektbyfaith
02-18-2025, 10:09 PM #3

Archived 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
playerTonguelaySound(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
playerTonguelaySound(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
playerTonguelaySound(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)```

rektbyfaith
Administrator
0
02-18-2025, 10:10 PM
#4
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.
rektbyfaith
02-18-2025, 10:10 PM #4

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)