Advertisement
Rochet2

Untitled

Mar 28th, 2013
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local NPC_ID = 112112
  2.      
  3. local function On_GossipMenu(event, player, unit)
  4.     if (player:IsInCombat()) then
  5.         player:SendNotification("You can not do that when in combat!")
  6.     else
  7.         if (player:IsGM()) then
  8.             player:GossipMenuAddItem(8, "GM Spells", 0, 1, 0)
  9.         end
  10.         player:GossipMenuAddItem(9, "Morphs", 0, 203, 0)
  11.         player:GossipMenuAddItem(2, "Max heal", 0, 2, 0)
  12.         player:GossipMenuAddItem(2, "Remove Resurrection Sickness", 0, 3, 0)
  13.         player:GossipMenuAddItem(3, "Learn weapon skills", 0, 4, 0)
  14.         player:GossipMenuAddItem(3, "Advance weapon skills", 0, 5, 0)
  15.         player:GossipMenuAddItem(3, "Artisan Riding", 0, 6, 0)
  16.         player:GossipMenuAddItem(3, "Dual Talent Specialization", 0, 200, 0)
  17.         player:GossipMenuAddItem(3, "Reset Talents", 0, 201, 0)
  18.         player:GossipMenuAddItem(3, "Remove Cooldowns", 0, 202, 0)
  19.         player:GossipSendMenu(1, unit)
  20.     end
  21. end
  22.  
  23. local function On_GossipSelect(event, player, unit, sender, intid, code)
  24.  
  25.     if(intid == 203) then
  26.         player:GossipMenuAddItem(9, "TEST1", 0, 0, 0)
  27.         player:GossipMenuAddItem(9, "TEST2", 0, 0, 0)
  28.         player:GossipSendMenu(1, unit)
  29.         return
  30.     elseif (intid == 2) then
  31.         player:SendAreaTriggerMessage("You are now fully healed!")
  32.         player:CastSpell(69693)
  33.         player:SetPower(0, 1000000)
  34.         player:SetPower(3, 100)
  35.     elseif (intid == 1) then
  36.         player:LearnSpell(69693)
  37.         player:LearnSpell(35874)        -- Here you can add more GM spells
  38.         player:LearnSpell(35912)
  39.         player:LearnSpell(38734)
  40.     elseif (intid == 3) then
  41.         player:SendAreaTriggerMessage("Ressurection Sickness is now removed!")
  42.         local aura = player:GetAura(15007)
  43.         if(aura) then
  44.             aura:Remove()
  45.         end
  46.     elseif (intid == 4) then
  47.         player:SendAreaTriggerMessage("You have learned all weapon skills!")
  48.         player:LearnSpell(201)
  49.         player:LearnSpell(202)
  50.         player:LearnSpell(196)
  51.         player:LearnSpell(197)
  52.         player:LearnSpell(227)
  53.         player:LearnSpell(200)
  54.         player:LearnSpell(266)
  55.         player:LearnSpell(264)
  56.         player:LearnSpell(5011)
  57.         player:LearnSpell(3018)
  58.         player:LearnSpell(198)
  59.         player:LearnSpell(199)
  60.         player:LearnSpell(1180)
  61.         player:LearnSpell(2567)
  62.         player:LearnSpell(2764)
  63.         player:LearnSpell(5009)
  64.         player:LearnSpell(5019)
  65.     elseif (intid == 5) then
  66.         player:SendAreaTriggerMessage("Your weapon skills are now maxed!")
  67.         player:AdvanceAllSkills(450)
  68.         player:AdvanceSkill (176, 450)
  69.     elseif (intid == 6) then
  70.         player:SendAreaTriggerMessage ("You have learned Artisan Riding!")
  71.         player:LearnSpell(34091)
  72.         player:LearnSpell(54197)
  73.     elseif (intid == 200) then
  74.         player:SendAreaTriggerMessage("You now have Dual Talent Specialization!")
  75.         player:CastSpell(63624)
  76.         player:LearnSpell(63706)
  77.         player:LearnSpell(63707)
  78.     elseif (intid == 201) then
  79.         player:SendAreaTriggerMessage("Your talents have been reset!")
  80.         player:ResetTalents()
  81.     elseif (intid == 202) then
  82.         player:SendAreaTriggerMessage("Your cooldowns are removed!")
  83.         player:ResetAllCooldowns()
  84.     end
  85.     On_GossipMenu(event, player, unit)
  86. end
  87. RegisterCreatureGossipEvent(NPC_ID, 1, On_GossipMenu)
  88. RegisterCreatureGossipEvent(NPC_ID, 2, On_GossipSelect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement