Advertisement
Rochet2

Wiki 2.0

Aug 4th, 2011
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. You can reload all the gossip_* tables with .reload gossip
  2. ingame, but you can only reload the menu_id and combat_check from the `units` table.
  3.  
  4.  
  5. table: Units
  6.  
  7. Entry = entry of the NPC, item or gameobject used for gossip
  8. Type = if 0, then NPC. If 1, then object. If 2, then item.
  9. menu_id = the ID number of the menu that is opened when the unit is clicked
  10. check_combat = if 1, then send error on combat and no gossip menus, if 0, no gossip checking
  11.  
  12.  
  13. table: gossip_conditions
  14.  
  15. menu_id = the ID of the menu where the option you want to have a condition is in
  16. order = the order of the option you want to have the condition
  17. has_id = the ID of the condition. Here is a list:
  18. 0 = player has spell (value)
  19. 1 = player has aura (value)
  20. 2 = player has skill (value)
  21. 3 = player has item (value)
  22. 4 = player has quest (value)
  23. 5 = player has finished quest (value)
  24. 6 = player has title (value)
  25. 7 = player is in phase (value)
  26. 8 = player is stealthed
  27. 9 = player is male
  28.  
  29. value = the Entry or other number used in condition
  30. bool = If 1, player HAS/IS, if 0 player DOES NOT HAVE/IS NOT
  31.  
  32.  
  33. table: gossip_menu
  34.  
  35. menu_id = the ID of the menu you want to add header text to
  36. npc_text = the entry of the text from your world database => npc_text table
  37.  
  38.  
  39. table: gossip_menu_option
  40.  
  41. menu_id = the id of the menu that all items with the same menu_id belong to
  42. order = specifies the order of the options. minimum 1 and maximum 30. (1 is first, 2 is second ..)
  43. icon = the ID number of the icon. Here is a list:
  44. 0 GOSSIP_ICON_CHAT white chat bubble
  45. 1 GOSSIP_ICON_VENDOR brown bag
  46. 2 GOSSIP_ICON_TAXI flight
  47. 3 GOSSIP_ICON_TRAINER book
  48. 4 GOSSIP_ICON_INTERACT_1 interaction wheel
  49. 5 GOSSIP_ICON_INTERACT_2 interaction wheel
  50. 6 GOSSIP_ICON_MONEY_BAG brown bag with yellow dot
  51. 7 GOSSIP_ICON_TALK white chat bubble with black dots
  52. 8 GOSSIP_ICON_TABARD tabard
  53. 9 GOSSIP_ICON_BATTLE two swords
  54. 10 GOSSIP_ICON_DOT yellow dot
  55. name = name of the option (label)
  56. script_id = an ID that links the option to scripts (gossip_scripts table script_id)
  57. next_menu_id = the menu_id of the following menu shown (a submenu)
  58. cost = cost of clicking the option in copper.
  59. popup = the text shown in a popup when the option is clicked.
  60. req_level = required level to see the option
  61. team = if 0, then you need to be alliance. If 1, then horde. if 2, then either.
  62.  
  63.  
  64. table: gossip_scripts
  65.  
  66. 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.
  67. command = this defines what we are doing:
  68. 0 = teleport
  69. 1 = set scale
  70. 2 = set phase
  71. 3 = play sound
  72. 4 = set level / add levels
  73. 5 = set NPC faction
  74. 6 = morph/demorph
  75. 7 = NPC casts spell
  76. 8 = Player casts spell
  77. 9 = remove aura
  78. 10 = send message to ppl sent by player
  79. 11 = send areatrigger message to player
  80. 12 = unlearn/teach a spell
  81. 13 = reset talents
  82. 14 = add/remove title
  83. 15 = dismount
  84. 16 = possess/unpossess gossip NPC (not for item or gob)
  85. 17 = set Hearthstone to player point or coordinates
  86. 18 = join a guild if not in one -- only on Luabridge
  87. 19 = set guild rank
  88. 20 = give/take gold (in copper)
  89. 21 = give/take items
  90. 22 = send a message to everyone
  91. 23 = make an SQL query
  92. 24 = spawn an NPC to player or coordinates (temporary)
  93. 25 = emote
  94. 26 = activate gameobject
  95. 27 = NPC instant casts spell
  96. 28 = Player instant casts spell
  97.  
  98. float = a float value like 1,5 used in command 1
  99. value = a number used for command:
  100. 2 as phase number
  101. 3 as soundID
  102. 4 as level / level amount
  103. 5 as faction
  104. 6 as morph ID
  105. 8 as spellID
  106. 9 as spellID
  107. 10 as message type
  108. 12 as spell
  109. 14 as titleID
  110. 18 as guildID
  111. 19 as guild rank
  112. 20 as money amount (copper)
  113. 21 as item entry
  114. 22 as message type
  115. 24 as NPC entry
  116. 25 as emoteID
  117. 26 as gameobject entry
  118.  
  119. value2 = a number used for command:
  120. 21 as amount
  121. 24 as despawn time (time until despawn) if 0 then no despawn
  122. 25 as time to emote. will emote as long as the time is in milliseconds.
  123.  
  124. string = a text used for command:
  125. 10 as message
  126. 11 as message
  127. 22 as message
  128. 23 as SQL code
  129.  
  130. bool = a field that should have only 0 indicating false and 1 indicating true.
  131. used in command:
  132. 3 true: play sound to everyone in sight, false: play sound to player
  133. 4 true: set player level, false: add levels to player
  134. 6 true: demorph, false: morph
  135. 7 true: NPC casts on self, false: on player
  136. 8 true: player casts on NPC, false: on self
  137. 11 true: red text (error). false: yellow text
  138. 12 true: teach spell, false: unlearn spell -- Only on LHA
  139. 14 true: add title, false: remove title
  140. 16 true: possess, false: unpossess
  141. 17 true: to coordinates (fields map, x, y, z). false: to player position
  142. 20 true: give money. false: take money
  143. 21 true: add items, false take items
  144. 24 true: to coordinates (fields x, y, z, orientation). false: to player position
  145. 25 true: player emotes, false: NPC emotes
  146. 26 true: nearest to x,y,z, false: nearest to player
  147. 27 true: NPC casts on self, false: on player
  148. 28 true: player casts on NPC, false: on self
  149.  
  150. map = mapID from .gps used in commands 0, 17
  151. x, y, z = float like 1,5. Coordinates from .gps used in commands 0, 17, 24, 26
  152. o = float like 1,5. Orientation from .gps used in commands 0, 24
  153. 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