Advertisement
Guest User

Multivendor Glyph/Created by MrSolid/Exclusively for ACWeb

a guest
Apr 23rd, 2017
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 10.63 KB | None | 0 0
  1. /*
  2. // / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / //
  3. //                                                                                           //
  4. //    ____                _           _   _             __  __      ____        _ _     _    //
  5. //   / ___|_ __ ___  __ _| |_ ___  __| | | |__  _   _  |  \/  |_ __/ ___|  ___ | (_) __| |   //
  6. //  | |   | '__/ _ \/ _` | __/ _ \/ _` | | '_ \| | | | | |\/| | '__\___ \ / _ \| | |/ _` |   //
  7. //  | |___| | |  __/ (_| | ||  __/ (_| | | |_) | |_| | | |  | | |   ___) | (_) | | | (_| |   //
  8. //   \____|_|  \___|\__,_|\__\___|\__,_| |_.__/ \__, | |_|  |_|_|  |____/ \___/|_|_|\__,_|   //
  9. //                                              |___/                                        //
  10. //                                                                                           //
  11. // / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / //
  12.  
  13. Created by MrSolid, 2017. Exclusively for the ACWeb Community.
  14. */
  15.  
  16. SET @ENTRY = (SELECT MAX(entry)+1 FROM creature_template);
  17. SET @MENU_ID = (SELECT MAX(menu_id)+1 FROM gossip_menu_option);
  18. SET @VENDOR_NAME1 = 'Warrior';
  19. SET @VENDOR_ID1 = 500111;
  20. SET @VENDOR_NAME2 = 'Paladin';
  21. SET @VENDOR_ID2 = 500068;
  22. SET @VENDOR_NAME3 = 'Death Knight';
  23. SET @VENDOR_ID3 = 500026;
  24. SET @VENDOR_NAME4 = 'Hunter';
  25. SET @VENDOR_ID4 = 500046;
  26. SET @VENDOR_NAME5 = 'Shaman';
  27. SET @VENDOR_ID5 = 500097;
  28. SET @VENDOR_NAME6 = 'Rogue';
  29. SET @VENDOR_ID6 = 500095;
  30. SET @VENDOR_NAME7 = 'Druid';
  31. SET @VENDOR_ID7 = 500027;
  32. SET @VENDOR_NAME8 = 'Mage';
  33. SET @VENDOR_ID8 = 500057;
  34. SET @VENDOR_NAME9 = 'Priest';
  35. SET @VENDOR_ID9 = 500113;
  36. SET @VENDOR_NAME10 = 'Warlock';
  37. SET @VENDOR_ID10 = 500110;
  38.  
  39. INSERT INTO `creature_template` (`entry`, `modelid1`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`) VALUES
  40. (@ENTRY, 1298, "Glyphs", "MultiVendor", NULL, @MENU_ID, 10, 10, 0, 35, 129, 1, 1.14286, 1, 0, 0, 1500, 0, 1, 512, 2048, 8, 0, 0, 0, 0, 0, 7, 138412032, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 0, 0, 1, 0, 2, '');
  41.  
  42. DELETE FROM `npc_vendor` WHERE entry BETWEEN 500026 AND 500113;
  43. INSERT INTO `npc_vendor` (`entry`,`item`) VALUES
  44. ('500026','43533'),
  45. ('500026','43534'),
  46. ('500026','43535'),
  47. ('500026','43536'),
  48. ('500026','43537'),
  49. ('500026','43538'),
  50. ('500026','43539'),
  51. ('500026','43541'),
  52. ('500026','43542'),
  53. ('500026','43543'),
  54. ('500026','43544'),
  55. ('500026','43545'),
  56. ('500026','43546'),
  57. ('500026','43547'),
  58. ('500026','43548'),
  59. ('500026','43549'),
  60. ('500026','43550'),
  61. ('500026','43551'),
  62. ('500026','43552'),
  63. ('500026','43553'),
  64. ('500026','43554'),
  65. ('500026','43671'),
  66. ('500026','43672'),
  67. ('500026','43673'),
  68. ('500026','43825'),
  69. ('500026','43826'),
  70. ('500026','43827'),
  71. ('500026','45799'),
  72. ('500026','45800'),
  73. ('500026','45803'),
  74. ('500026','45804'),
  75. ('500026','45805'),
  76. ('500026','45806'),
  77. ('500027','40896'),
  78. ('500027','40897'),
  79. ('500027','40899'),
  80. ('500027','40900'),
  81. ('500027','40901'),
  82. ('500027','40902'),
  83. ('500027','40903'),
  84. ('500027','40906'),
  85. ('500027','40908'),
  86. ('500027','40909'),
  87. ('500027','40912'),
  88. ('500027','40913'),
  89. ('500027','40914'),
  90. ('500027','40915'),
  91. ('500027','40916'),
  92. ('500027','40919'),
  93. ('500027','40920'),
  94. ('500027','40921'),
  95. ('500027','40922'),
  96. ('500027','40923'),
  97. ('500027','40924'),
  98. ('500027','43316'),
  99. ('500027','43331'),
  100. ('500027','43332'),
  101. ('500027','43334'),
  102. ('500027','43335'),
  103. ('500027','43674'),
  104. ('500027','44922'),
  105. ('500027','44928'),
  106. ('500027','45601'),
  107. ('500027','45602'),
  108. ('500027','45603'),
  109. ('500027','45604'),
  110. ('500027','45622'),
  111. ('500027','45623'),
  112. ('500027','46372'),
  113. ('500027','48720'),
  114. ('500027','50125'),
  115. ('500046','42897'),
  116. ('500046','42898'),
  117. ('500046','42899'),
  118. ('500046','42900'),
  119. ('500046','42901'),
  120. ('500046','42902'),
  121. ('500046','42903'),
  122. ('500046','42904'),
  123. ('500046','42905'),
  124. ('500046','42906'),
  125. ('500046','42907'),
  126. ('500046','42908'),
  127. ('500046','42909'),
  128. ('500046','42910'),
  129. ('500046','42911'),
  130. ('500046','42912'),
  131. ('500046','42913'),
  132. ('500046','42914'),
  133. ('500046','42915'),
  134. ('500046','42916'),
  135. ('500046','42917'),
  136. ('500046','43338'),
  137. ('500046','43350'),
  138. ('500046','43351'),
  139. ('500046','43354'),
  140. ('500046','43355'),
  141. ('500046','43356'),
  142. ('500046','45625'),
  143. ('500046','45731'),
  144. ('500046','45732'),
  145. ('500046','45733'),
  146. ('500046','45734'),
  147. ('500046','45735'),
  148. ('500057','42734'),
  149. ('500057','42735'),
  150. ('500057','42736'),
  151. ('500057','42737'),
  152. ('500057','42738'),
  153. ('500057','42739'),
  154. ('500057','42740'),
  155. ('500057','42741'),
  156. ('500057','42742'),
  157. ('500057','42743'),
  158. ('500057','42744'),
  159. ('500057','42745'),
  160. ('500057','42746'),
  161. ('500057','42747'),
  162. ('500057','42748'),
  163. ('500057','42749'),
  164. ('500057','42750'),
  165. ('500057','42751'),
  166. ('500057','42752'),
  167. ('500057','42753'),
  168. ('500057','42754'),
  169. ('500057','43339'),
  170. ('500057','43357'),
  171. ('500057','43359'),
  172. ('500057','43360'),
  173. ('500057','43361'),
  174. ('500057','43364'),
  175. ('500057','44684'),
  176. ('500057','44920'),
  177. ('500057','44955'),
  178. ('500057','45736'),
  179. ('500057','45737'),
  180. ('500057','45738'),
  181. ('500057','45739'),
  182. ('500057','45740'),
  183. ('500057','50045'),
  184. ('500068','41092'),
  185. ('500068','41094'),
  186. ('500068','41095'),
  187. ('500068','41096'),
  188. ('500068','41097'),
  189. ('500068','41098'),
  190. ('500068','41099'),
  191. ('500068','41100'),
  192. ('500068','41101'),
  193. ('500068','41102'),
  194. ('500068','41103'),
  195. ('500068','41104'),
  196. ('500068','41105'),
  197. ('500068','41106'),
  198. ('500068','41107'),
  199. ('500068','41108'),
  200. ('500068','41109'),
  201. ('500068','41110'),
  202. ('500068','43340'),
  203. ('500068','43365'),
  204. ('500068','43366'),
  205. ('500068','43367'),
  206. ('500068','43368'),
  207. ('500068','43369'),
  208. ('500068','43867'),
  209. ('500068','43868'),
  210. ('500068','43869'),
  211. ('500068','45741'),
  212. ('500068','45742'),
  213. ('500068','45743'),
  214. ('500068','45744'),
  215. ('500068','45745'),
  216. ('500068','45746'),
  217. ('500068','45747'),
  218. ('500095','42954'),
  219. ('500095','42955'),
  220. ('500095','42956'),
  221. ('500095','42957'),
  222. ('500095','42958'),
  223. ('500095','42959'),
  224. ('500095','42960'),
  225. ('500095','42961'),
  226. ('500095','42962'),
  227. ('500095','42963'),
  228. ('500095','42964'),
  229. ('500095','42965'),
  230. ('500095','42966'),
  231. ('500095','42967'),
  232. ('500095','42968'),
  233. ('500095','42969'),
  234. ('500095','42970'),
  235. ('500095','42971'),
  236. ('500095','42972'),
  237. ('500095','42973'),
  238. ('500095','42974'),
  239. ('500095','43343'),
  240. ('500095','43376'),
  241. ('500095','43377'),
  242. ('500095','43378'),
  243. ('500095','43379'),
  244. ('500095','43380'),
  245. ('500095','45761'),
  246. ('500095','45762'),
  247. ('500095','45764'),
  248. ('500095','45766'),
  249. ('500095','45767'),
  250. ('500095','45768'),
  251. ('500095','45769'),
  252. ('500097','41517'),
  253. ('500097','41518'),
  254. ('500097','41524'),
  255. ('500097','41526'),
  256. ('500097','41527'),
  257. ('500097','41529'),
  258. ('500097','41530'),
  259. ('500097','41531'),
  260. ('500097','41532'),
  261. ('500097','41533'),
  262. ('500097','41534'),
  263. ('500097','41535'),
  264. ('500097','41536'),
  265. ('500097','41537'),
  266. ('500097','41538'),
  267. ('500097','41539'),
  268. ('500097','41540'),
  269. ('500097','41541'),
  270. ('500097','41542'),
  271. ('500097','41547'),
  272. ('500097','41552'),
  273. ('500097','43344'),
  274. ('500097','43381'),
  275. ('500097','43385'),
  276. ('500097','43386'),
  277. ('500097','43388'),
  278. ('500097','43725'),
  279. ('500097','44923'),
  280. ('500097','45770'),
  281. ('500097','45771'),
  282. ('500097','45772'),
  283. ('500097','45775'),
  284. ('500097','45776'),
  285. ('500097','45777'),
  286. ('500097','45778'),
  287. ('500110','42453'),
  288. ('500110','42454'),
  289. ('500110','42455'),
  290. ('500110','42456'),
  291. ('500110','42457'),
  292. ('500110','42458'),
  293. ('500110','42459'),
  294. ('500110','42460'),
  295. ('500110','42461'),
  296. ('500110','42462'),
  297. ('500110','42463'),
  298. ('500110','42464'),
  299. ('500110','42465'),
  300. ('500110','42466'),
  301. ('500110','42467'),
  302. ('500110','42468'),
  303. ('500110','42469'),
  304. ('500110','42470'),
  305. ('500110','42471'),
  306. ('500110','42472'),
  307. ('500110','42473'),
  308. ('500110','43389'),
  309. ('500110','43390'),
  310. ('500110','43391'),
  311. ('500110','43392'),
  312. ('500110','43393'),
  313. ('500110','43394'),
  314. ('500110','45779'),
  315. ('500110','45780'),
  316. ('500110','45781'),
  317. ('500110','45782'),
  318. ('500110','45783'),
  319. ('500110','45785'),
  320. ('500110','45789'),
  321. ('500110','50077'),
  322. ('500111','43395'),
  323. ('500111','43396'),
  324. ('500111','43397'),
  325. ('500111','43398'),
  326. ('500111','43399'),
  327. ('500111','43400'),
  328. ('500111','43412'),
  329. ('500111','43413'),
  330. ('500111','43414'),
  331. ('500111','43415'),
  332. ('500111','43416'),
  333. ('500111','43417'),
  334. ('500111','43418'),
  335. ('500111','43419'),
  336. ('500111','43420'),
  337. ('500111','43421'),
  338. ('500111','43422'),
  339. ('500111','43423'),
  340. ('500111','43424'),
  341. ('500111','43425'),
  342. ('500111','43426'),
  343. ('500111','43427'),
  344. ('500111','43428'),
  345. ('500111','43429'),
  346. ('500111','43430'),
  347. ('500111','43431'),
  348. ('500111','43432'),
  349. ('500111','45790'),
  350. ('500111','45792'),
  351. ('500111','45793'),
  352. ('500111','45794'),
  353. ('500111','45795'),
  354. ('500111','45797'),
  355. ('500111','49084'),
  356. ('500113','42396'),
  357. ('500113','42397'),
  358. ('500113','42398'),
  359. ('500113','42399'),
  360. ('500113','42400'),
  361. ('500113','42401'),
  362. ('500113','42402'),
  363. ('500113','42403'),
  364. ('500113','42404'),
  365. ('500113','42405'),
  366. ('500113','42406'),
  367. ('500113','42407'),
  368. ('500113','42408'),
  369. ('500113','42409'),
  370. ('500113','42410'),
  371. ('500113','42411'),
  372. ('500113','42412'),
  373. ('500113','42414'),
  374. ('500113','42415'),
  375. ('500113','42416'),
  376. ('500113','42417'),
  377. ('500113','43342'),
  378. ('500113','43370'),
  379. ('500113','43371'),
  380. ('500113','43372'),
  381. ('500113','43373'),
  382. ('500113','43374'),
  383. ('500113','45753'),
  384. ('500113','45755'),
  385. ('500113','45756'),
  386. ('500113','45757'),
  387. ('500113','45758'),
  388. ('500113','45760');
  389.  
  390. INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`) VALUES
  391. (@MENU_ID, 1, 4, @VENDOR_NAME1, 3, 128, @VENDOR_ID1, 0, 0, 0, ''),
  392. (@MENU_ID, 2, 4, @VENDOR_NAME2, 3, 128, @VENDOR_ID2, 0, 0, 0, ''),
  393. (@MENU_ID, 3, 4, @VENDOR_NAME3, 3, 128, @VENDOR_ID3, 0, 0, 100, ''),
  394. (@MENU_ID, 4, 4, @VENDOR_NAME4, 3, 128, @VENDOR_ID4, 0, 0, 0, ''),
  395. (@MENU_ID, 5, 4, @VENDOR_NAME5, 3, 128, @VENDOR_ID5, 0, 0, 0, ''),
  396. (@MENU_ID, 6, 4, @VENDOR_NAME6, 3, 128, @VENDOR_ID6, 0, 0, 100, ''),
  397. (@MENU_ID, 7, 4, @VENDOR_NAME7, 3, 128, @VENDOR_ID7, 0, 0, 0, ''),
  398. (@MENU_ID, 8, 4, @VENDOR_NAME8, 3, 128, @VENDOR_ID8, 0, 0, 0, ''),
  399. (@MENU_ID, 9, 4, @VENDOR_NAME9, 3, 128, @VENDOR_ID9, 0, 0, 100, ''),
  400. (@MENU_ID, 10, 4, @VENDOR_NAME10, 3, 128, @VENDOR_ID10, 0, 0, 100, '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement