If you are looking for V.C.N






Log in

I forgot my password

Latest topics
» 2.4.3 oldfags still here? whats up?
Sun 14 May 2017, 10:04 pm by hambrgrhelpr

» 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 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

[ View the whole list ]


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)
 

RSS feeds


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Keywords


[LUA] Max-ReputationNPC

Go down

[LUA] Max-ReputationNPC

Post by Zanukan on Fri 06 Nov 2009, 9:09 am

Sooo I was bored again (This is what happens when you get addicted to WoW then one day you get a new computer and don't feel like Downloading it again) and I decided to script a Reputation NPC. I always liked these on funservers so I could get all the cool stuff like Enchants that required rep. Anyway, to stop boring you with this long story I'll go ahead and tell you the basics of him if you havn't figured it out yet:

What he does:

  • Checks for Horde and Alliance factions to give them the correct rep
  • Increases all Rep to the max for every rep available to that faction
  • For horde he tells them they have Maxed Rep in red, for alliance he tells them in light blue
  • I wish I could do this on my rep for Ac-Web =*(


Have fun with him, if I left out a faction or you want something added to his menu tell me and I'll add it for you.

Code:
--[[This script was made by Billtheslug
    *Do not release without my permision
    *Do not remove these credits
    *Do not claim as your own
    ]]--
   
--[Locals]--

local Npc_Id = 99999 --Edit to your NPC's Entry ID

--[Menus]--
function ReputationNpc_OnGossip(pUnit,event,player)
    pUnit:GossipCreateMenu(50, player, 0)
    local race = player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
        pUnit:GossipMenuAddItem(0,"Increase all Available Faction Reputations",1,0) --Aliance
    end
    local race = player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
        pUnit:GossipMenuAddItem(0,"Increase all Available Faction Reputations",2,0) --Horde
    end
    pUnit:GossipMenuAddItem(0,"Nevermind",999,0)
    pUnit:GossipSendMenu(player)
end

function ReputationNpc_OnSelect(pUnit,event,player,id,intid,code)

--[Alliance Factions]--
if (intid == 1) then
--[Main Cities]--
    player:SetStanding(47, 90999) --Ironforge
    player:SetStanding(54, 90999) --Gnomergan Exiles
    player:SetStanding(69, 90999) --Darnassus
    player:SetStanding(72, 90999) --Stormwind
--[Other Alliance Factions]--
    player:SetStanding(509, 90999) --The League of Arathor
    player:SetStanding(589, 90999) --Wintersaber Trainers
    player:SetStanding(730, 90999) --Stormpike Guard
    player:SetStanding(890, 90999) --Silverwing Sentinels
    player:SetStanding(946, 90999) --Honor Hold
    player:SetStanding(978, 90999) --Kurenai
    player:SetStanding(1037, 90999) --Alliance Vanguard
    player:SetStanding(1050, 90999) --Valiance Expedition
    player:SetStanding(1068, 90999) --Exploerers' League
    player:SetStanding(1094, 90999) --The Silver Convenant
    player:SetStanding(1126, 90999) --The Frostborn
--[Alliance and Horde Factions]--
    player:SetStanding(21, 90999) --Booty Bay
    player:SetStanding(59, 90999) --Thorium Brotherhood
    player:SetStanding(70, 90999) --Syndicate
    player:SetStanding(87, 90999) --Bloodsail Buccaneers
    player:SetStanding(92, 90999) --Gelkis Clan Centaur
    player:SetStanding(93, 90999) --Magram Clan Centaur
    player:SetStanding(270, 90999) --Zandalar Tribe
    player:SetStanding(349, 90999) --Ravenholdt
    player:SetStanding(369, 90999) --Gadgetzan
    player:SetStanding(470, 90999) --Ratchet
    player:SetStanding(529, 90999) --Argent Dawn
    player:SetStanding(576, 90999) --Timbermaw Hold
    player:SetStanding(577, 90999) --Everlook
    player:SetStanding(609, 90999) --Cenarion Circle
    player:SetStanding(749, 90999) --Hydraxian Waterlords
    player:SetStanding(809, 90999) --Shen'dralar
    player:SetStanding(909, 90999) --Darkmoon Faire
    player:SetStanding(910, 90999) --Brood of Nozdormu
    player:SetStanding(932, 90999) --The Aldor
    player:SetStanding(933, 90999) --The Consortium
    player:SetStanding(934, 90999) --The Scryers
    player:SetStanding(935, 90999) --The Sha'tar
    player:SetStanding(942, 90999) --Cenarion Expedition
    player:SetStanding(967, 90999) --The Violet Eye
    player:SetStanding(970, 90999) --Spreggar
    player:SetStanding(989, 90999) --Keepers of Time
    player:SetStanding(990, 90999) --The Scale of Sands
    player:SetStanding(1011, 90999) --Lower City
    player:SetStanding(1012, 90999) --Ashtongue Deathsworn
    player:SetStanding(1015, 90999) --Netherwing
    player:SetStanding(1031, 90999) --Sha'tari Skyguard
    player:SetStanding(1038, 90999) --Ogri'la
    player:SetStanding(1073, 90999) --The Kalu'ak
    player:SetStanding(1077, 90999) --Shattered Sun Offensive
    player:SetStanding(1090, 90999) --Kirin Tor
    player:SetStanding(1091, 90999) --The Wyrmcrest Accord
    player:SetStanding(1098, 90999) --Knights of the Ebon Blade
    player:SetStanding(1104, 90999) --Frenzyheart Tribe
    player:SetStanding(1105, 90999) --The Oracles
    player:SetStanding(1106, 90999) --Argent Crusade
    player:SetStanding(1119, 90999) --The Sons of Hodir
    player:SendBroadcastMessage("|cFFADD8E6You are now exalted with all factions available for Alliance!")
    player:GossipComplete()
end

--[Horde Factions]--

if (intid == 2) then
--[Main Cities]--
    player:SetStanding(68, 90999) --Undercity
    player:SetStanding(76, 90999) --Orgrimmar
    player:SetStanding(530, 90999) --Darkspear Trolls
    player:SetStanding(911, 90999)--Silvermoon City
--[Other Horde Factions]--
    player:SetStanding(81, 90999) --Warsong Offensive
    player:SetStanding(510, 90999) --The Defilers
    player:SetStanding(729, 90999) --Frostwolf Clan
    player:SetStanding(889, 90999) --Warsong Outriders
    player:SetStanding(922, 90999) --Tranquillien
    player:SetStanding(941, 90999) --The Mag'har
    player:SetStanding(947, 90999) --Thrallmar
    player:SetStanding(1052, 90999) --Horde Expedition
    player:SetStanding(1064, 90999) --The Taunka
    player:SetStanding(1067, 90999) --The Hand of Vengeance
    player:SetStanding(1085, 90999) --Warsong Offensive
    player:SetStanding(1124, 90999) --The Sunreavers
--[Horde and Alliance Factions]--
    player:SetStanding(21, 90999) --Booty Bay
    player:SetStanding(59, 90999) --Thorium Brotherhood
    player:SetStanding(70, 90999) --Syndicate
    player:SetStanding(87, 90999) --Bloodsail Buccaneers
    player:SetStanding(92, 90999) --Gelkis Clan Centaur
    player:SetStanding(93, 90999) --Magram Clan Centaur
    player:SetStanding(270, 90999) --Zandalar Tribe
    player:SetStanding(349, 90999) --Ravenholdt
    player:SetStanding(369, 90999) --Gadgetzan
    player:SetStanding(470, 90999) --Ratchet
    player:SetStanding(529, 90999) --Argent Dawn
    player:SetStanding(576, 90999) --Timbermaw Hold
    player:SetStanding(577, 90999) --Everlook
    player:SetStanding(609, 90999) --Cenarion Circle
    player:SetStanding(749, 90999) --Hydraxian Waterlords
    player:SetStanding(809, 90999) --Shen'dralar
    player:SetStanding(909, 90999) --Darkmoon Faire
    player:SetStanding(910, 90999) --Brood of Nozdormu
    player:SetStanding(932, 90999) --The Aldor
    player:SetStanding(933, 90999) --The Consortium
    player:SetStanding(934, 90999) --The Scryers
    player:SetStanding(935, 90999) --The Sha'tar
    player:SetStanding(942, 90999) --Cenarion Expedition
    player:SetStanding(967, 90999) --The Violet Eye
    player:SetStanding(970, 90999) --Spreggar
    player:SetStanding(989, 90999) --Keepers of Time
    player:SetStanding(990, 90999) --The Scale of Sands
    player:SetStanding(1011, 90999) --Lower City
    player:SetStanding(1012, 90999) --Ashtongue Deathsworn
    player:SetStanding(1015, 90999) --Netherwing
    player:SetStanding(1031, 90999) --Sha'tari Skyguard
    player:SetStanding(1038, 90999) --Ogri'la
    player:SetStanding(1073, 90999) --The Kalu'ak
    player:SetStanding(1077, 90999) --Shattered Sun Offensive
    player:SetStanding(1090, 90999) --Kirin Tor
    player:SetStanding(1091, 90999) --The Wyrmcrest Accord
    player:SetStanding(1098, 90999) --Knights of the Ebon Blade
    player:SetStanding(1104, 90999) --Frenzyheart Tribe
    player:SetStanding(1105, 90999) --The Oracles
    player:SetStanding(1106, 90999) --Argent Crusade
    player:SetStanding(1119, 90999) --The Sons of Hodir
    player:SendBroadcastMessage("|cffff0000You are now exalted with all Horde Factions!")
    player:GossipComplete()
end

if (intid == 999) then
    player:GossipComplete()
    end
end

RegisterUnitGossipEvent(Npc_Id, 1, "ReputationNpc_OnGossip")
RegisterUnitGossipEvent(Npc_Id, 2, "ReputationNpc_OnSelect")

_________________

avatar
Zanukan
WWemu Expert
WWemu Expert

Number of posts : 854
Age : 39
Joined : 2007-12-11
Points : 12211
Reputation : 3197

http://www.vcnserver.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum