If you are looking for V.C.N






Log in

I forgot my password

Latest topics
» Need an unstuck
Tue 24 Nov 2009, 1:48 am by ombladon123

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

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

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

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

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

» Hi again --- imweedy
Sat 21 Nov 2009, 11:04 pm by imweedy

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

» Epic Vendors. Mangos 3.2.3, Trinity 3.1.3, Arc-EMu
Thu 19 Nov 2009, 10:22 am by Veldor

» Congrats..
Sat 14 Nov 2009, 5:23 pm by ultininja

» W00t
Thu 12 Nov 2009, 5:07 am by teres

» Vcn
Wed 11 Nov 2009, 10:47 am by Gnomepunter

» Warlock fears true teh walls :S
Wed 11 Nov 2009, 7:20 am by Roflnothaste

» ummmm wtf?
Wed 11 Nov 2009, 7:17 am by Roflnothaste

» V.C.N Website for any Emu
Mon 09 Nov 2009, 3:29 pm by thomja

» The different of the two servers :)
Mon 09 Nov 2009, 3:23 pm by Zanukan

» Sup!
Sun 08 Nov 2009, 9:58 pm by itsafarlen

» Heroes of Northrend 3.2.2
Sun 08 Nov 2009, 3:37 pm by thomja

» [Release]T9 Vendors, ArcEMU and Mangos
Sun 08 Nov 2009, 3:13 pm by thomja

» Read here!
Sun 08 Nov 2009, 8:58 am by Zanukan

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

None

[ View the whole list ]


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

Rss feeds

Yahoo! 
Google Reader 
MSN 
AOL 
NewsGator 
Rojo 
Bloglines 



[LUA] Max-Skill NPC

Post new topic   Reply to topic

View previous topic View next topic Go down

[LUA] Max-Skill NPC

Post by Zanukan on Fri 06 Nov 2009, 8: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")

_________________


Zanukan
WWemu Expert
WWemu Expert

Number of posts: 853
Age: 31
Joined: 2007-12-11
Points: 9122
Reputation: 3197

http://www.vcnserver.net

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum