Add files via upload

This commit is contained in:
Dinkledork
2023-02-13 08:42:42 -07:00
committed by GitHub
parent 08c1e0128e
commit dd1599b445
3 changed files with 55 additions and 6 deletions

17
LowQuestXP.lua Normal file
View File

@@ -0,0 +1,17 @@
local g_CustomDiffFactor = 3
local function OnGossipHello(event, player, object)
for i = 1, 10 do
player:GossipMenuAddItem(0, "Set difficulty factor to " .. i, 0, i)
end
player:GossipSendMenu(1, object)
end
local function OnGossipSelect(event, player, object, sender, intid, code, menu_id)
SetGlobalVariable("g_CustomDiffFactor", intid)
player:SendBroadcastMessage("Difficulty factor set to " .. intid)
player:GossipComplete()
end
RegisterCreatureGossipEvent(400031, 1, OnGossipHello)
RegisterCreatureGossipEvent(400031, 2, OnGossipSelect)