VCN WOW OLD FORUMS

VISIT VCNWOW.COM
 
HomeFAQRegisterLog in
VCN WOW IS NOW ON VCNWOW.COM
If you are looking for V.C.N






Similar topics
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» 2.4.3 oldfags still here? whats up?
Today at 10:05 am by Zanukan

» An Thread dedicated to Old School 2.4.3 and all its memories
Sat 19 Mar 2016, 8:56 am by Shifthappens

» Hey sexy Gentlemen and Ladies
Thu 24 Jan 2013, 11:21 am by Suspect2

» yoo
Mon 13 Aug 2012, 1:34 pm by Casp'

» hay gm
Thu 09 Aug 2012, 11:47 pm by sevenhuehuelol

» Ques for GM
Thu 09 Aug 2012, 11:43 pm by sevenhuehuelol

» YES IT IS I
Mon 30 Jul 2012, 11:21 am by Casp'

» oldfags asemble
Tue 03 Jul 2012, 3:19 pm by -BoomBox

» Oh hai...
Tue 19 Jun 2012, 3:55 pm by Queshi

» hey windir bro guess what
Tue 19 Jun 2012, 3:55 pm by Queshi

» Downpatch from 3.0.8 to 3.0?
Mon 20 Jun 2011, 12:54 pm by windir2

» Mouthless asking me for RESS! LOOL
Thu 26 May 2011, 5:29 pm by Feel

» Need an unstuck
Tue 24 Nov 2009, 2:48 am by ombladon123

» Idea for Arena Rating and Arena Rewards
Mon 23 Nov 2009, 7:58 pm by Raddau

» shammy bug
Mon 23 Nov 2009, 1:35 pm by stomstrikes

» Gentlemen?
Mon 23 Nov 2009, 1:33 pm by stomstrikes

» Rous aka Zanukan attention please
Mon 23 Nov 2009, 3:36 am by ryonis

» I cant get my tokens when i vote.
Sun 22 Nov 2009, 1:26 pm by demonolator12345

» Hi again --- imweedy
Sun 22 Nov 2009, 12:04 am by imweedy

» pizzabox2 whats ur name?
Sat 21 Nov 2009, 1:12 pm by yingyangi

Who is online?
In total there are 25 users online :: 0 Registered, 0 Hidden and 25 Guests :: 1 Bot

None

Most users ever online was 395 on Sun 18 May 2008, 12:28 pm
Top posters
ServerBot (7646)
 
Swifteh (7171)
 
Charlie Face (4524)
 
Lisyhalath (3900)
 
Scruffay (3896)
 
kitch (3536)
 
Min0rity (3192)
 
Ubberpownage88 (3023)
 
bacongrease2 (2761)
 
Juicy (2649)
 
Keywords

Share | 
 

 [LUA] Max-Skill NPC

Go down 
AuthorMessage
Zanukan
WWemu Expert
WWemu Expert
avatar

Number of posts : 855
Age : 39
Joined : 2007-12-11
Points : 12270
Reputation : 3197

PostSubject: [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")

_________________

Back to top Go down
http://www.vcnserver.net
 
[LUA] Max-Skill NPC
Back to top 
Page 1 of 1
 Similar topics
-
» Open Server Xitrum Phiên B?n 4 l? Pét 12 Skill Chuy?n Sinh

Permissions in this forum:You cannot reply to topics in this forum
VCN WOW OLD FORUMS :: Releases :: Scripts-
Jump to: