Zanukan WWemu Expert
Number of posts : 856 Age : 45 Joined : 2007-12-11 Points : 14310 Reputation : 3197
| Subject: [LUA] Max-Skill NPC Fri 06 Nov 2009, 9:06 am | |
| My old Max Skill NPC's topic is old and gone so I decided to release him again only with updated features like:
- No more annoying message yelling "You now have max skills!"
- There is now a Broadcast Message in red informing the player they have maxed skills
- Defense Skill is added
What he does:
- He increases all Combat Skills(Weapons/Defense) to 400
- ncrease on Main and Secondary Professions to 450
- [color="Red"]Only increases skills currently in your skillbook(It won't teach you a skill then increase it)
If he has any problems or you would like something added please say so in a reply to this topic. Here he is =D Edit the red. - Code:
-
--[[This script was made by Billtheslug *Do not release without my permision *Do not remove these credits *Do not claim as your own ]]--
local Npc_ID = [COLOR="red"]99999[/COLOR] --Set to your NPC's Entry ID
function MaxSkillNPC_OnGossip(pUnit,event,player) pUnit:GossipCreateMenu(50, player, 0) pUnit:GossipMenuAddItem(0,"Max out all skills",1,0) pUnit:GossipMenuAddItem(0,"Nevermind",999,0) pUnit:GossipSendMenu(player) end
function MaxSkillNPC_OnSelect(pUnit,event,player,id,intid,code)
if (intid == 1) then --[Combat]-- player:AdvanceSkill (43, 399) --Swords player:AdvanceSkill (44, 399) --Axes player:AdvanceSkill (45, 399) --Bows player:AdvanceSkill (46, 399) --Guns player:AdvanceSkill (54, 399) --Maces player:AdvanceSkill (55, 399) --Two Handed Swords player:AdvanceSkill (95, 399) --Defense player:AdvanceSkill (136, 399) --Staves player:AdvanceSkill (160, 399) --Two Handed Maces player:AdvanceSkill (162, 399) --Unarmed player:AdvanceSkill (172, 399) --Two Handed Axes player:AdvanceSkill (173, 399) --Daggers player:AdvanceSkill (176, 399) --Thrown player:AdvanceSkill (226, 399) --Crossbows player:AdvanceSkill (228, 399) --Wands player:AdvanceSkill (229, 399) --Polearms player:AdvanceSkill (473, 399) --Fist Weapons --[Main Professions]-- player:AdvanceSkill (164, 449) --Blacksmithing player:AdvanceSkill (165, 449) --Leatherworking player:AdvanceSkill (171, 449) --Alchemy player:AdvanceSkill (182, 449) --Herbalism player:AdvanceSkill (186, 449) --Mining player:AdvanceSkill (197, 449) --Tailoring player:AdvanceSkill (202, 449) --Engineering player:AdvanceSkill (333, 449) --Enchanting player:AdvanceSkill (393, 449) --Skinning player:AdvanceSkill (755, 449) --Jewelcrafting player:AdvanceSkill (773, 449) --Inscription --[Secondary Professions]-- player:AdvanceSkill (129, 449) --First Aid player:AdvanceSkill (185, 449) --Cooking player:AdvanceSkill (356, 449) --Fishing player:SendBroadcastMessage("|cffff0000You now have maxed out skills!") player:GossipComplete() end
if (intid == 999) then player:GossipComplete() end end
RegisterUnitGossipEvent(Npc_ID, 1, "MaxSkillNPC_OnGossip") RegisterUnitGossipEvent(Npc_ID, 2, "MaxSkillNPC_OnSelect") | |
|