Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.88 KB | None | 0 0
  1. --Made by X292
  2.  
  3. --Database Stuff
  4. local query = WorldDBQuery("SELECT `player`, `kills`, `title` FROM `game` WHERE `player`='"..player:GetName().."'")
  5.  
  6. --Tables
  7. GE = {}
  8.  
  9. GE.Titles = {
  10. [1] = {filler = 1, name = "Private"},
  11. [2] = {filler = 2, name = "1st Private"},
  12. [3] = {filler = 3, name = "Corporal"},
  13. [4] = {filler = 4, name = "Master Corporal"},
  14. [5] = {filler = 5, name = "1st Master Corporal"},
  15. [6] = {filler = 6, name = "Sergeant"},
  16. [7] = {filler = 7, name = "1st Master Sergeant"},
  17. [8] = {filler = 8, name = "1st Sergeant-Major"},
  18. [9] = {filler = 9, name = "Warrant Officer"},
  19. [10] = {filler = 10, name = "Master Warrant Officer"},
  20. [11] = {filler = 11, name = "Chief Warrant Officer"},
  21. [12] = {filler = 12, name = "Junior Lieutenant"},
  22. [13] = {filler = 13, name = "Lieutenant"},
  23. [14] = {filler = 14, name = "Captain"},
  24. [15] = {filler = 15, name = "Captain-Commander"},
  25. [16] = {filler = 16, name = "Major"},
  26. [17] = {filler = 17, name = "Colonel"},
  27. [18] = {filler = 18, name = "Major-General"},
  28. [19] = {filler = 19, name = "General"}
  29. }
  30.  
  31. GE.NeededKills = {
  32. [1] = 1,
  33. [2] = 15,
  34. [3] = 35,
  35. [4] = 75,
  36. [5] = 135,
  37. [6] = 210,
  38. [7] = 350,
  39. [8] = 750,
  40. [9] = 2500,
  41. [10] = 4750,
  42. [11] = 8850,
  43. [12] = 15000,
  44. [13] = 30000,
  45. [14] = 45000,
  46. [15] = 55000,
  47. [16] = 70000,
  48. [17] = 88500,
  49. [18] = 100000,
  50. [19] = 150000
  51. }
  52.  
  53.  
  54. function GE.OnGossipTalk(pUnit, event, player, pMisc)
  55. pUnit:GossipCreateMenu(3544, player, 0)
  56. pUnit:GossipMenuAddItem(2, "Read The Rules!", 1, 0)
  57. pUnit:GossipMenuAddItem(2, "Races and Classes", 2, 0)
  58. pUnit:GossipMenuAddItem(2, "Skills", 3, 0)
  59. pUnit:GossipMenuAddItem(2, "Start The Game!", 4, 0)
  60. pUnit:GossipSendMenu()
  61. end
  62.  
  63. function Game_OnGossipSelect(pUnit, event, player, id, intid, code)
  64.     if (intid == 1) then
  65.         player:SendBroadcastMessage("The rules are simple.  You pick your race and class.  You will be a level 1, your job is to survive at any and all costs.")
  66. end
  67.    
  68.     if (intid == 2) then
  69.         player:SendBroadcastMessage("--Races--")
  70.         player:SendBroadcastMessage("Human-->")
  71.         player:SendBroadcastMessage("The Humans have a high intellegience and great strength.  Highly effective as Snipers, Spotters and, Front Liners.")
  72.         player:SendBroadcastMessage("Zombie-->")
  73.         player:SendBroadcastMessage("The Zombies have a fast speed and great acuity.  Highly effective as Runners, Scouts, Eaters, Toxics and, Exploders")
  74.         player:SendBroadcastMessage("--Classes--")
  75.         player:SendBroadcastMessage("Snipers-->")
  76.         player:SendBroadcastMessage("The Sniper class has a high damage and low armor. Effective aganist long ranged enemy's (Humans Only)")
  77.         player:SendBroadcastMessage("Spotters-->")
  78.         player:SendBroadcastMessage("The Spotter class has a moderate damage and armor. They increase the Sniper classes armor. (Humans Only)")
  79.         player:SendBroadcastMessage("Front Liners-->")
  80.         player:SendBroadcastMessage("The Front Liner class has extremely high damage but carries no armor.  This is the most common class. (Humans Only)")
  81.         player:SendBroadcastMessage("Runners-->")
  82.         player:SendBroadcastMessage("The Runner class has low damage and moderate armor. They are able to run very fast and stun enemy's (Zombies Only)")
  83.         player:SendBroadcastMessage("Scouts-->")
  84.         player:SendBroadcastMessage("The Scout class has moderate damage and armor.  They are very skilled in hand-to-hand combat. (Zombies Only)")
  85.         player:SendBroadcastMessage("Eaters-->")
  86.         player:SendBroadcastMessage("The Eater class has extremly high damage and no armor. These guys will kill you very quickly with high speed. (Zombies Only)")
  87.         player:SendBroadcastMessage("Toxics-->")
  88.         player:SendBroadcastMessage("The Toxic class has low base damage and moderate armor. There damage is a DOT(Damage Over Time) which is deadly (Zombies Only)")
  89.         player:SendBroadcastMessage("Exploders-->")
  90.         player:SendBroadcastMessage("The Exploder class has insane damagae and no armor. As a exploder you are only able to attack bosses and only try once a day. (Zombies Only)")
  91. end
  92.  
  93.     if (intid == 3) then
  94.         player:SendBroadcastMessage("--Skills--")
  95.         player:SendBroadcastMessage("Just added this so people would get happy, each level has its own skills the classes can use.")
  96. end
  97.  
  98.     if (intid == 4) then
  99.         pUnit:GossipCreateMenu(3544, player, 0)
  100.         pUnit:GossipMenuAddItem(2, "Go to North America", 10, 0)
  101.         pUnit:GossipMenuAddItem(2, "Go to South America", 11, 0)
  102.         pUnit:GossipMenuAddItem(2, "Go to Asia", 12, 0)
  103.         pUnit:GossipMenuAddItem(2, "Go to Europe", 13, 0)
  104.         pUnit:GossipMenuAddItem(2, "Go to Africa", 14, 0)
  105.         pUnit:GossipSendMenu()
  106. end
  107.  
  108.     if (intid == 10) then
  109.         pUnit:GossipCreateMenu(3544, player, 0)
  110.         pUnit:GossipMenuAddItem(2, "[Attack]", 100, 0)
  111.         pUnit:GossipMenuAddItem(2, "[Defend]", 110, 0)
  112.         pUnit:GossipMenuAddItem(2, "[Defend and Collect]", 120, 0)
  113.         pUnit:GossipMenuAddItem(2, "[Run]", 130, 0)
  114.         pUnit:GossipMenuAddItem(2, "{Back}", 140, 0)
  115.         pUnit:GossipSendMenu()
  116. end
  117.  
  118.     if (intid == 110) then
  119.         if(query==nil) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement