Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Made by X292
- --Database Stuff
- local query = WorldDBQuery("SELECT `player`, `kills`, `title` FROM `game` WHERE `player`='"..player:GetName().."'")
- --Tables
- GE = {}
- GE.Titles = {
- [1] = {filler = 1, name = "Private"},
- [2] = {filler = 2, name = "1st Private"},
- [3] = {filler = 3, name = "Corporal"},
- [4] = {filler = 4, name = "Master Corporal"},
- [5] = {filler = 5, name = "1st Master Corporal"},
- [6] = {filler = 6, name = "Sergeant"},
- [7] = {filler = 7, name = "1st Master Sergeant"},
- [8] = {filler = 8, name = "1st Sergeant-Major"},
- [9] = {filler = 9, name = "Warrant Officer"},
- [10] = {filler = 10, name = "Master Warrant Officer"},
- [11] = {filler = 11, name = "Chief Warrant Officer"},
- [12] = {filler = 12, name = "Junior Lieutenant"},
- [13] = {filler = 13, name = "Lieutenant"},
- [14] = {filler = 14, name = "Captain"},
- [15] = {filler = 15, name = "Captain-Commander"},
- [16] = {filler = 16, name = "Major"},
- [17] = {filler = 17, name = "Colonel"},
- [18] = {filler = 18, name = "Major-General"},
- [19] = {filler = 19, name = "General"}
- }
- GE.NeededKills = {
- [1] = 1,
- [2] = 15,
- [3] = 35,
- [4] = 75,
- [5] = 135,
- [6] = 210,
- [7] = 350,
- [8] = 750,
- [9] = 2500,
- [10] = 4750,
- [11] = 8850,
- [12] = 15000,
- [13] = 30000,
- [14] = 45000,
- [15] = 55000,
- [16] = 70000,
- [17] = 88500,
- [18] = 100000,
- [19] = 150000
- }
- function GE.OnGossipTalk(pUnit, event, player, pMisc)
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(2, "Read The Rules!", 1, 0)
- pUnit:GossipMenuAddItem(2, "Races and Classes", 2, 0)
- pUnit:GossipMenuAddItem(2, "Skills", 3, 0)
- pUnit:GossipMenuAddItem(2, "Start The Game!", 4, 0)
- pUnit:GossipSendMenu()
- end
- function Game_OnGossipSelect(pUnit, event, player, id, intid, code)
- if (intid == 1) then
- 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.")
- end
- if (intid == 2) then
- player:SendBroadcastMessage("--Races--")
- player:SendBroadcastMessage("Human-->")
- player:SendBroadcastMessage("The Humans have a high intellegience and great strength. Highly effective as Snipers, Spotters and, Front Liners.")
- player:SendBroadcastMessage("Zombie-->")
- player:SendBroadcastMessage("The Zombies have a fast speed and great acuity. Highly effective as Runners, Scouts, Eaters, Toxics and, Exploders")
- player:SendBroadcastMessage("--Classes--")
- player:SendBroadcastMessage("Snipers-->")
- player:SendBroadcastMessage("The Sniper class has a high damage and low armor. Effective aganist long ranged enemy's (Humans Only)")
- player:SendBroadcastMessage("Spotters-->")
- player:SendBroadcastMessage("The Spotter class has a moderate damage and armor. They increase the Sniper classes armor. (Humans Only)")
- player:SendBroadcastMessage("Front Liners-->")
- player:SendBroadcastMessage("The Front Liner class has extremely high damage but carries no armor. This is the most common class. (Humans Only)")
- player:SendBroadcastMessage("Runners-->")
- player:SendBroadcastMessage("The Runner class has low damage and moderate armor. They are able to run very fast and stun enemy's (Zombies Only)")
- player:SendBroadcastMessage("Scouts-->")
- player:SendBroadcastMessage("The Scout class has moderate damage and armor. They are very skilled in hand-to-hand combat. (Zombies Only)")
- player:SendBroadcastMessage("Eaters-->")
- player:SendBroadcastMessage("The Eater class has extremly high damage and no armor. These guys will kill you very quickly with high speed. (Zombies Only)")
- player:SendBroadcastMessage("Toxics-->")
- 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)")
- player:SendBroadcastMessage("Exploders-->")
- 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)")
- end
- if (intid == 3) then
- player:SendBroadcastMessage("--Skills--")
- player:SendBroadcastMessage("Just added this so people would get happy, each level has its own skills the classes can use.")
- end
- if (intid == 4) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(2, "Go to North America", 10, 0)
- pUnit:GossipMenuAddItem(2, "Go to South America", 11, 0)
- pUnit:GossipMenuAddItem(2, "Go to Asia", 12, 0)
- pUnit:GossipMenuAddItem(2, "Go to Europe", 13, 0)
- pUnit:GossipMenuAddItem(2, "Go to Africa", 14, 0)
- pUnit:GossipSendMenu()
- end
- if (intid == 10) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(2, "[Attack]", 100, 0)
- pUnit:GossipMenuAddItem(2, "[Defend]", 110, 0)
- pUnit:GossipMenuAddItem(2, "[Defend and Collect]", 120, 0)
- pUnit:GossipMenuAddItem(2, "[Run]", 130, 0)
- pUnit:GossipMenuAddItem(2, "{Back}", 140, 0)
- pUnit:GossipSendMenu()
- end
- if (intid == 110) then
- if(query==nil) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement