Zanukan WWemu Expert
Number of posts : 856 Age : 45 Joined : 2007-12-11 Points : 14310 Reputation : 3197
| Subject: [LUA] Max-ReputationNPC 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") | |
|