Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ▒█▀▀▀ █▀▄▀█ █░░█ ▒█▀▀▀█ █▀▀ █▀▀█ ▀█░█▀ █▀▀ █▀▀█
- ▒█▀▀▀ █░▀░█ █░░█ ░▀▀▀▄▄ █▀▀ █▄▄▀ ░█▄█░ █▀▀ █▄▄▀
- ▒█▄▄▄ ▀░░░▀ ░▀▀▀ ▒█▄▄▄█ ▀▀▀ ▀░▀▀ ░░▀░░ ▀▀▀ ▀░▀▀
- ██████╗ ██████╗ ██████╗ ███████╗
- ██╔════╝██╔═══██╗██╔══██╗██╔════╝
- ██║ ██║ ██║██████╔╝█████╗
- ██║ ██║ ██║██╔══██╗██╔══╝
- ╚██████╗╚██████╔╝██║ ██║███████╗
- ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
- EmuServers ツ Script Made by Kusanagy Azakura*
- --]]
- print("\n----------------------------")
- print("EmuServers Script Staring:")
- local NpcEntry = 189995 --Set this to your NPC's entry ID
- --Spell Riding Skill --
- local ApprenticeRiding = 33388
- local JourneymanRiding = 33391
- local ExpertRiding = 34090
- local ArtisanRiding = 34091
- local ColdWeatherRiding = 54197
- local SoundGold = 120
- --Interface // Icons // Scale 20 // Menú --
- local IconMount = "|Tinterface/icons/Ability_Mount_Gyrocoptor:20:20:-13:0|t"
- local IconWeapo = "|TInterface/ICONS/Ability_Warrior_OffensiveStance:20:20:-13:0|t"
- local IconSkill = "|TInterface/ICONS/Ability_Warrior_Disarm:20:20:-13:0|t"
- local Exit = "|Tinterface/icons/Ability_Vehicle_LoadSelfCatapult:20:20:-13:0|t"
- --ConfigColor Text //
- local TextColor = "|cFF8B0000"
- local ColorReturn = "|cff0d7276"
- --Menu Text--
- local Text_1 = "Trainer Skill Mount Learn"
- local Text_2 = "Learn Weapon Skills."
- local Text_3 = "Advance All Weapon Skills"
- local Text_4 = "Exit"
- function NPCMount_Gossip(event, player, unit)
- if (player:IsInCombat() == true) then
- else
- NPCMount_Menu(unit, player)
- end
- end
- function NPCMount_Menu(unit, player)
- player:GossipMenuAddItem(4, ""..IconMount.." "..TextColor..""..Text_1.."", 0, 1)
- player:GossipMenuAddItem(3, ""..IconWeapo.." "..TextColor..""..Text_2.."", 0, 2)
- player:GossipMenuAddItem(3, ""..IconSkill.." "..TextColor..""..Text_3.."", 0, 3)
- player:GossipMenuAddItem(4, ""..Exit.." "..TextColor..""..Text_4.."", 0 , 999)
- player:GossipSendMenu(1, unit)
- end
- function NPCMount_Events(event, player, unit, sender, intid, code)
- if (intid == 100) then
- player:GossipClearMenu()
- player:GossipMenuAddItem(4, ""..IconMount.." "..TextColor..""..Text_1.."", 0, 1)
- player:GossipMenuAddItem(3, ""..IconWeapo.." "..TextColor..""..Text_2.."", 0, 2)
- player:GossipMenuAddItem(3, ""..IconSkill.." "..TextColor..""..Text_3.."", 0, 3)
- player:GossipMenuAddItem(4, ""..Exit.." "..TextColor..""..Text_4.."", 0 , 999)
- player:GossipSendMenu(1, unit)
- end
- if (intid == 1) then
- if ( player:HasSpell(ColdWeatherRiding) == true) then
- player:GossipClearMenu()
- player:SendBroadcastMessage("You already have these Spell.")
- player:GossipMenuAddItem(7, " Finish \n "..ColorReturn.."[You already have these Spell]", 0, 100)
- player:GossipMenuAddItem(7, " ", 0, 100)
- player:GossipSendMenu(1,unit)
- else
- player:GossipClearMenu()
- player:PlayDirectSound(SoundGold)
- player:CastSpell(player, 61410)
- player:LearnSpell(ApprenticeRiding) --Apprentice Riding Level 20
- player:LearnSpell(JourneymanRiding) --Journeyman Riding Level 40
- player:LearnSpell(ExpertRiding) --Expert Riding Level 60
- player:LearnSpell(ArtisanRiding) --Artisan Riding Level 70
- player:LearnSpell(ColdWeatherRiding) --Cold Weather Flying Level 68
- player:GossipMenuAddItem(7, " Finish", 0, 100)
- player:GossipMenuAddItem(7, " ", 0, 100)
- player:SendBroadcastMessage("Congratulations! You have obtained maximum riding.")
- end
- end
- if(intid == 2) then
- player:GossipClearMenu()
- player:LearnSpell(201) -- One-Handed Swords
- player:LearnSpell(202) -- Two-Handed Swords
- player:LearnSpell(196) -- One-Handed Axes
- player:LearnSpell(197) -- Two-Handed Axes
- player:LearnSpell(227) -- Staves
- player:LearnSpell(200) -- Polearms
- player:LearnSpell(266) -- Guns
- player:LearnSpell(264) -- Bows
- player:LearnSpell(5011) -- Crossbows
- player:LearnSpell(3018) -- Shoot (Bow, Crossbow or Gun)
- player:LearnSpell(198) -- One-Handed Maces
- player:LearnSpell(199) -- Two-Handed Maces
- player:LearnSpell(1180) -- Daggers
- player:LearnSpell(2567) -- Thrown
- player:LearnSpell(2764) -- Throw (With Thrown)
- player:LearnSpell(5009) -- Wands
- player:LearnSpell(5019) -- Shoot (Wands)
- player:SendBroadcastMessage("Now you have all the weapons skills.") -- Message
- player:GossipMenuAddItem(7, " Finish", 0, 100)
- player:GossipMenuAddItem(7, " ", 0, 100)
- player:GossipSendMenu(1,unit)
- end
- if(intid == 3) then
- player:GossipClearMenu()
- 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 (256, 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)
- player:SendBroadcastMessage("I have advanced all his skills with weapons.!") -- Message
- player:GossipMenuAddItem(7, " Finish", 0, 100)
- player:GossipMenuAddItem(7, " ", 0, 100)
- player:GossipSendMenu(1,unit)
- end
- if (intid == 999) then
- player:SendBroadcastMessage("Good bye.")
- player:GossipComplete()
- end
- end
- RegisterCreatureGossipEvent(NpcEntry, 1, NPCMount_Gossip)
- RegisterCreatureGossipEvent(NpcEntry, 2, NPCMount_Events)
- print("\n<#> NPC: [Riding - Weapon - Skill ..Loading..].")
- print("----------------------------\n")
Advertisement
Add Comment
Please, Sign In to add comment