Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 111111
- local itemid = 100018
- local boostid = 100057
- function On_Gossip(event, plr, unit)
- if(plr:HasItem(itemid, 1) or plr:GetLevel() >= 50) then
- plr:GossipMenuAddItem(3, "Cultist", 0, 1)
- plr:GossipMenuAddItem(3, "Arcanist", 0, 2)
- plr:GossipMenuAddItem(3, "Necromancer", 0, 3)
- --plr:GossipMenuAddItem(3, "Iceguard", 0, 4)
- plr:GossipMenuAddItem(3, "Gladiator", 0, 5)
- plr:GossipMenuAddItem(3, "Primalist", 0, 6)
- plr:GossipMenuAddItem(3, "Bandit", 0, 7)
- plr:GossipMenuAddItem(3, "Cleric", 0, 8)
- plr:GossipMenuAddItem(3, "Alchemist", 0, 9)
- plr:GossipMenuAddItem(3, "Engineer", 0, 10)
- plr:GossipMenuAddItem(3, "Beastmaster", 0, 11)
- --plr:GossipMenuAddItem(3, "Psychic", 0, 12)
- end
- if(plr:HasItem(boostid, 1)) then
- plr:GossipMenuAddItem(6, "Boost to level 50! [Enlistment Orders]", 0, 15)
- plr:GossipMenuAddItem(0, "Goobye", 0, 16)
- end
- plr:GossipSendMenu(1, unit)
- end
- function Setpath(playername, guid, path)
- if GetPath(playername) == 0 then
- WorldDBQuery("INSERT INTO `paths` (`PlayerName`, `Path`, `GUID`) VALUES ('" .. playername .. "', " .. path .. ", " .. guid .. ")")
- else
- WorldDBQuery("UPDATE paths SET Path='".. path .. "' where PlayerName='".. playername .."'")
- end
- end
- function GetPath(playername)
- local VIPLevel = WorldDBQuery("SELECT Path from paths where PlayerName='" .. playername .. "'")
- local pth = 0
- if(VIPLevel) then
- repeat
- pth = VIPLevel:GetUInt32(0)
- until not VIPLevel:NextRow()
- end
- return pth
- end
- function On_Select(event, player, unit, sender, intid, code)
- if(intid == 15 and player:HasItem(boostid, 1)) then
- player:SetLevel(50)
- player:RemoveItem(boostid, 1)
- player:Teleport(571, -169.61, -3575.8396, 1.565889, 90)
- end
- if(intid==16) then
- player:GossipComplete()
- end
- local currentPath = GetPath(player:GetName())
- if(currentPath>0)then
- player:SendAreaTriggerMessage("You have already chosen your path!")
- end
- if(currentPath==0)then
- player:PlayDirectSound(37)
- player:AddItem(100020, 1)
- player:RemoveItem(itemid, 1)
- Setpath(player:GetName(), player:GetGUID(), intid)
- if (intid == 1) then --Cultist
- player:LearnSpell(60501)
- player:LearnSpell(34113)
- player:LearnSpell(77558)
- player:LearnSpell(40412)
- player:LearnSpell(31022)
- player:LearnSpell(38540)
- player:LearnSpell(36020)
- player:LearnSpell(40412)
- player:LearnSpell(47241)
- player:LearnSpell(54785)
- player:LearnSpell(35346)
- player:LearnSpell(9078) --Cloth
- player:LearnSpell(202) --Two-Handed Swords
- player:AddItem(5614, 1)
- player:AddItem(100003, 1)
- player:AddItem(100004, 1)
- player:AddItem(100005, 1)
- player:LearnSpell(73313)
- end
- if (intid == 2) then --Arcanist
- player:LearnSpell(38204) --Arcane Bolt main attack
- --player:LearnSpell(31595) old arcane bolt
- --player:LearnSpell(60903) arcane breath UNBALANCED OVERPOWERED
- player:LearnSpell(33527) --Arcane Buffet
- player:LearnSpell(227)
- player:LearnSpell(9078)
- player:LearnSpell(51732) --Arcane Infusion BOMB CHANNEL
- --player:LearnSpell(33839) --Vir'Aani TEMP BUFF FORM
- player:LearnSpell(53589) -- Nether Shock INTERRUPT
- player:LearnSpell(67519) -- Spell Lock INTERRUPT
- player:LearnSpell(35158) -- 10sec Reflect Spells
- player:LearnSpell(52894) -- Anti-Magic Zone
- player:LearnSpell(1090)
- player:LearnSpell(781)
- player:LearnSpell(9078) --Cloth
- player:LearnSpell(277) --Staves
- player:AddItem(100072, 1)
- player:AddItem(100073, 1)
- player:AddItem(100074, 1)
- player:AddItem(2950, 1)
- player:LearnSpell(42777)
- player:GossipComplete()
- end
- if (intid == 3) then --Necromancer
- player:LearnSpell(3106)
- player:LearnSpell(28993)
- player:LearnSpell(64153)
- player:LearnSpell(7297)
- player:LearnSpell(227)
- player:LearnSpell(1180)
- player:LearnSpell(9078) --
- player:LearnSpell(46585) --Raise Dead
- player:LearnSpell(8853) --Skeleton
- player:LearnSpell(50452)
- player:LearnSpell(50438)
- player:LearnSpell(56707)
- player:LearnSpell(69871)
- player:LearnSpell(9078) --Cloth
- player:LearnSpell(277) --Staves
- player:AddItem(100051, 1)
- player:AddItem(100052, 1)
- player:AddItem(100053, 1)
- player:AddItem(5340, 1)
- player:LearnSpell(23246)
- end
- if (intid == 4) then --Iceguard
- player:LearnSpell(52088)
- player:LearnSpell(79810)
- player:LearnSpell(3130)
- player:LearnSpell(79865)
- player:LearnSpell(33528)
- player:LearnSpell(6957)
- player:LearnSpell(196)
- player:LearnSpell(9116)
- player:LearnSpell(107)
- player:LearnSpell(119811)
- player:LearnSpell(54753)
- player:LearnSpell(74918)
- end
- if (intid == 5) then --Gladiator
- player:LearnSpell(71961)
- player:LearnSpell(9741)
- --player:LearnSpell(60030)
- player:LearnSpell(46917)
- player:LearnSpell(78117)
- player:LearnSpell(52027)
- player:LearnSpell(61696)
- player:LearnSpell(3136)
- player:LearnSpell(66407)
- player:LearnSpell(17275)
- player:LearnSpell(56426)
- player:LearnSpell(70150)
- player:LearnSpell(781)
- player:LearnSpell(8737) --Mail
- player:LearnSpell(674) --Dual Wield
- player:LearnSpell(196) --One-Handed Axes
- player:LearnSpell(197) --Two-Handed Axes
- player:LearnSpell(198) --One-Handed Maces
- player:LearnSpell(199) --Two-Handed Maces
- player:LearnSpell(201) --One-Handed Swords
- player:LearnSpell(202) --Two-Handed Swords
- player:LearnSpell(107) --Block
- player:LearnSpell(9116) --Shields
- player:SetSkill(44, 200, 200, 200) --Axes
- player:SetSkill(43, 200, 200, 200) --Swords
- player:SetSkill(54, 200, 200, 200) --Maces
- player:SetSkill(55, 200, 200, 200) --2h Swords
- player:SetSkill(172, 200, 200, 200) --2h Axes
- player:SetSkill(160, 200, 200, 200) --2h Maces
- player:AddItem(2907, 2)
- player:AddItem(100022, 1)
- player:AddItem(100023, 1)
- player:AddItem(100024, 1)
- player:LearnSpell(43688)
- end
- if (intid == 6) then --Primalist
- player:LearnSpell(54195)
- player:LearnSpell(8045)
- --player:LearnSpell(8271) --wind
- player:LearnSpell(5186)
- --player:LearnSpell(8270) --earth
- --player:LearnSpell(42618) --ice
- player:LearnSpell(8985) --fire
- player:LearnSpell(62344)
- player:LearnSpell(32806)
- player:LearnSpell(24364) --Free Action (CC Break)
- player:LearnSpell(982)
- player:LearnSpell(9077) --Leather
- player:LearnSpell(199) --Two-Handed Maces
- player:LearnSpell(197) --Two-Handed Axes
- player:LearnSpell(196) --One-Handed Axes
- player:LearnSpell(198) --One-Handed Maces
- player:AddItem(100069, 1)
- player:AddItem(100070, 1)
- player:AddItem(100071, 1)
- player:AddItem(16894, 1)
- player:AddItem(6093, 1)
- player:LearnSpell(96491)
- end
- if (intid == 7) then --Thief
- player:LearnSpell(48873)
- player:LearnSpell(52818)
- player:LearnSpell(31911)
- player:LearnSpell(5597)
- player:LearnSpell(51690)
- player:LearnSpell(17171)
- player:LearnSpell(8806)
- player:LearnSpell(11397)
- player:LearnSpell(52889)
- player:LearnSpell(43414)
- player:LearnSpell(921)
- player:LearnSpell(1784)
- player:LearnSpell(17498)
- player:LearnSpell(264) --Bows
- player:LearnSpell(5011) --Crossbows
- player:LearnSpell(1180) --Daggers
- player:LearnSpell(201) --One-Handed Swords
- player:LearnSpell(674) --Dual Wield
- player:LearnSpell(9077) --Leather
- player:AddItem(100066, 1)
- player:AddItem(100067, 1)
- player:AddItem(100068, 1)
- player:AddItem(2218, 2)
- player:AddItem(2903, 1)
- player:AddItem(2512, 600)
- player:LearnSpell(66090)
- end
- if (intid == 8) then --Cleric
- player:LearnSpell(14517)
- player:LearnSpell(34346)
- player:LearnSpell(29170)
- player:LearnSpell(71954)
- player:LearnSpell(17)
- player:LearnSpell(47788)
- player:LearnSpell(81782)
- player:LearnSpell(2006)
- player:LearnSpell(8737) --Mail
- player:LearnSpell(107) --Block
- player:LearnSpell(9116) --Shields
- player:LearnSpell(198) --One-Handed Maces
- player:LearnSpell(201) --One-Handed Swords
- player:LearnSpell(199) --Two-Handed Maces
- player:LearnSpell(202) --Two-Handed Swords
- player:LearnSpell(277) --Staves
- player:AddItem(100048, 1)
- player:AddItem(100049, 1)
- player:AddItem(100054, 1)
- player:AddItem(5757, 1)
- player:AddItem(2916, 1)
- player:LearnSpell(67466)
- end
- if (intid == 9) then --Alchemist
- player:LearnSpell(66954)
- player:LearnSpell(6306)
- player:LearnSpell(440)
- player:LearnSpell(11349)
- player:LearnSpell(3593)
- player:LearnSpell(11392)
- player:LearnSpell(29462)
- player:LearnSpell(47257) --Empower CHANNEL BUFF
- player:LearnSpell(2825) --Bloodlust GROUP CD BUFF
- player:LearnSpell(34379) --Bloodgem Infusion CD BUFF
- player:LearnSpell(9077) --Leather
- player:LearnSpell(674) --Dual Wield
- player:LearnSpell(198) --One-Handed Maces
- player:LearnSpell(1180) --Daggers
- player:LearnSpell(277) --Staves
- player:AddItem(100013, 1)
- player:AddItem(100014, 1)
- player:AddItem(100015, 1)
- player:AddItem(100016, 1)
- player:AddItem(100017, 1)
- player:LearnSpell(46628)
- end
- if (intid == 10) then --Engineer
- player:LearnSpell(7395)
- player:LearnSpell(7896)
- player:LearnSpell(60856)
- player:LearnSpell(65071)
- player:LearnSpell(266)
- player:LearnSpell(198)
- player:LearnSpell(9116)
- player:LearnSpell(60424)
- player:LearnSpell(9077) --Leather
- player:LearnSpell(198) --One-Handed Maces
- player:LearnSpell(266) --Guns
- player:LearnSpell(107) --Block
- player:LearnSpell(9116) --Shields
- player:AddItem(29200, 1)
- player:AddItem(4948, 1)
- player:AddItem(100006, 1)
- player:AddItem(100007, 1)
- player:AddItem(100008, 1)
- player:AddItem(100009, 1)
- player:AddItem(2516, 600)
- end
- if (intid == 11) then --Beastmaster
- player:LearnSpell(3612)
- player:LearnSpell(31566)
- player:LearnSpell(4318)
- player:LearnSpell(3385)
- player:LearnSpell(53559)
- player:LearnSpell(8274)
- player:LearnSpell(8276)
- player:LearnSpell(1002)
- player:LearnSpell(982)
- player:LearnSpell(67233)
- player:LearnSpell(61168)
- player:LearnSpell(24450)
- player:LearnSpell(9077) --Leather
- player:LearnSpell(674) --Dual Wield
- player:LearnSpell(196) --One-Handed Axes
- player:LearnSpell(198) --One-Handed Maces
- player:LearnSpell(201) --One-Handed Swords
- player:SetSkill(44, 200, 200, 200) --Axes
- player:SetSkill(43, 200, 200, 200) --Swords
- player:SetSkill(54, 200, 200, 200) --Maces
- player:SetSkill(118, 200, 200, 200) --Dual Wield
- player:SetSkill(414, 200, 200, 200) --Leather
- player:AddItem(3154, 2)
- player:AddItem(100010, 1)
- player:AddItem(100011, 1)
- player:AddItem(100012, 1)
- player:LearnSpell(24252)
- end
- if (intid == 12) then --Psychic
- player:LearnSpell(55342)
- player:LearnSpell(9160)
- player:LearnSpell(20989)
- player:LearnSpell(34089)
- player:LearnSpell(17639)
- end
- player:SetSkill(98, 200, 200, 200)
- advanceAllWeaponSkills(player)
- player:AdvanceSkillsToMax()
- end
- end
- function advanceAllWeaponSkills(player)
- player:AdvanceSkill (43, 399)
- player:AdvanceSkill (44, 399)
- player:AdvanceSkill (45, 399)
- player:AdvanceSkill (46, 399)
- player:AdvanceSkill (54, 399)
- player:AdvanceSkill (55, 399)
- player:AdvanceSkill (136, 399)
- player:AdvanceSkill (160, 399)
- player:AdvanceSkill (172, 399)
- player:AdvanceSkill (173, 399)
- player:AdvanceSkill (176, 399)
- player:AdvanceSkill (226, 399)
- player:AdvanceSkill (228, 399)
- player:AdvanceSkill (229, 399)
- player:AdvanceSkill (473, 399)
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement