Add files via upload

This commit is contained in:
Dinkledork
2023-03-03 16:35:23 -07:00
committed by GitHub
parent 9fc55f4488
commit 989a52db5b
4 changed files with 74 additions and 30 deletions

View File

@@ -1,27 +1,3 @@
--[==[
= How to add new locations =
Example:
The first line will be the main menu ID (Here [1],
increment this for each main menu option!),
the main menu gossip title (Here "Horde Cities"),
as well as which faction can use the said menu (Here 1 (Horde)).
0 = Alliance, 1 = Horde, 2 = Both
The second line is the name of the main menu's sub menus,
separated by name (Here "Orgrimmar") and teleport coordinates
using Map, X, Y, Z, O (Here 1, 1503, -4415.5, 22, 0)
[1] = { "Horde Cities", 1, -- This will be the main menu title, as well as which faction can use the said menu. 0 = Alliance, 1 = Horde, 2 = Both
{"Orgrimmar", 1, 1503, -4415.5, 22, 0},
},
You can copy paste the above into the script and change the values as informed.
ItemEntry is set to Hearthstone. You may use another entry with a spell cast.
]==]
local ItemEntry = 6948 -- Hearthstone. You can change this item ID to whatever.
local T = {
@@ -86,9 +62,6 @@ local T = {
},
}
-- CODE STUFFS! DO NOT EDIT BELOW
-- UNLESS YOU KNOW WHAT YOU'RE DOING!
local function OnGossipHello(event, player, item)
-- Show main menu
for i, v in ipairs(T) do