Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You can reload all the gossip_* tables with .reload gossip
- ingame, but you can only reload the menu_id and combat_check from the `units` table.
- table: Units
- Entry = entry of the NPC, item or gameobject used for gossip
- Type = if 0, then NPC. If 1, then object. If 2, then item.
- menu_id = the ID number of the menu that is opened when the unit is clicked
- check_combat = if 1, then send error on combat and no gossip menus, if 0, no gossip checking
- table: gossip_conditions
- menu_id = the ID of the menu where the option you want to have a condition is in
- order = the order of the option you want to have the condition
- has_id = the ID of the condition. Here is a list:
- 0 = player has spell (value)
- 1 = player has aura (value)
- 2 = player has skill (value)
- 3 = player has item (value)
- 4 = player has quest (value)
- 5 = player has finished quest (value)
- 6 = player has title (value)
- 7 = player is in phase (value)
- 8 = player is stealthed
- 9 = player is male
- value = the Entry or other number used in condition
- bool = If 1, player HAS/IS, if 0 player DOES NOT HAVE/IS NOT
- table: gossip_menu
- menu_id = the ID of the menu you want to add header text to
- npc_text = the entry of the text from your world database => npc_text table
- table: gossip_menu_option
- menu_id = the id of the menu that all items with the same menu_id belong to
- order = specifies the order of the options. minimum 1 and maximum 30. (1 is first, 2 is second ..)
- icon = the ID number of the icon. Here is a list:
- 0 GOSSIP_ICON_CHAT white chat bubble
- 1 GOSSIP_ICON_VENDOR brown bag
- 2 GOSSIP_ICON_TAXI flight
- 3 GOSSIP_ICON_TRAINER book
- 4 GOSSIP_ICON_INTERACT_1 interaction wheel
- 5 GOSSIP_ICON_INTERACT_2 interaction wheel
- 6 GOSSIP_ICON_MONEY_BAG brown bag with yellow dot
- 7 GOSSIP_ICON_TALK white chat bubble with black dots
- 8 GOSSIP_ICON_TABARD tabard
- 9 GOSSIP_ICON_BATTLE two swords
- 10 GOSSIP_ICON_DOT yellow dot
- name = name of the option (label)
- script_id = an ID that links the option to scripts (gossip_scripts table script_id)
- next_menu_id = the menu_id of the following menu shown (a submenu)
- cost = cost of clicking the option in copper.
- popup = the text shown in a popup when the option is clicked.
- req_level = required level to see the option
- team = if 0, then you need to be alliance. If 1, then horde. if 2, then either.
- table: gossip_scripts
- script_id = the number from gossip_menu_option.script_id. You can have multiple rows in gossip_scripts with the same script_id. They will all be run.
- command = this defines what we are doing:
- 0 = teleport
- 1 = set scale
- 2 = set phase
- 3 = play sound
- 4 = set level / add levels
- 5 = set NPC faction
- 6 = morph/demorph
- 7 = NPC casts spell
- 8 = Player casts spell
- 9 = remove aura
- 10 = send message to ppl sent by player
- 11 = send areatrigger message to player
- 12 = unlearn/teach a spell
- 13 = reset talents
- 14 = add/remove title
- 15 = dismount
- 16 = possess/unpossess gossip NPC (not for item or gob)
- 17 = set Hearthstone to player point or coordinates
- 18 = join a guild if not in one -- only on Luabridge
- 19 = set guild rank
- 20 = give/take gold (in copper)
- 21 = give/take items
- 22 = send a message to everyone
- 23 = make an SQL query
- 24 = spawn an NPC to player or coordinates (temporary)
- 25 = emote
- 26 = activate gameobject
- 27 = NPC instant casts spell
- 28 = Player instant casts spell
- float = a float value like 1,5 used in command 1
- value = a number used for command:
- 2 as phase number
- 3 as soundID
- 4 as level / level amount
- 5 as faction
- 6 as morph ID
- 8 as spellID
- 9 as spellID
- 10 as message type
- 12 as spell
- 14 as titleID
- 18 as guildID
- 19 as guild rank
- 20 as money amount (copper)
- 21 as item entry
- 22 as message type
- 24 as NPC entry
- 25 as emoteID
- 26 as gameobject entry
- value2 = a number used for command:
- 21 as amount
- 24 as despawn time (time until despawn) if 0 then no despawn
- 25 as time to emote. will emote as long as the time is in milliseconds.
- string = a text used for command:
- 10 as message
- 11 as message
- 22 as message
- 23 as SQL code
- bool = a field that should have only 0 indicating false and 1 indicating true.
- used in command:
- 3 true: play sound to everyone in sight, false: play sound to player
- 4 true: set player level, false: add levels to player
- 6 true: demorph, false: morph
- 7 true: NPC casts on self, false: on player
- 8 true: player casts on NPC, false: on self
- 11 true: red text (error). false: yellow text
- 12 true: teach spell, false: unlearn spell -- Only on LHA
- 14 true: add title, false: remove title
- 16 true: possess, false: unpossess
- 17 true: to coordinates (fields map, x, y, z). false: to player position
- 20 true: give money. false: take money
- 21 true: add items, false take items
- 24 true: to coordinates (fields x, y, z, orientation). false: to player position
- 25 true: player emotes, false: NPC emotes
- 26 true: nearest to x,y,z, false: nearest to player
- 27 true: NPC casts on self, false: on player
- 28 true: player casts on NPC, false: on self
- map = mapID from .gps used in commands 0, 17
- x, y, z = float like 1,5. Coordinates from .gps used in commands 0, 17, 24, 26
- o = float like 1,5. Orientation from .gps used in commands 0, 24
- comment = a text that you can write to describe your script command not used anywhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement