WoWPortal PVE Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WoWPortal PVE Server

WoWPortal Custom PVE Server like no other!
 
Latest imagesportalHomeRegisterLog in
VCN WOW IS NOW ON HTTP://VCNWOW.NET
If you are looking for V.C.N






Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» V.C.N WOW IS NOW ON VCNWOW.NET
[LUA] Max-ReputationNPC Icon_minitimeWed 06 Feb 2019, 4:50 pm by Zanukan

» INTRODUCTION Destiny
[LUA] Max-ReputationNPC Icon_minitimeThu 18 Oct 2018, 6:54 pm by Destiny

» 2.4.3 oldfags still here? whats up?
[LUA] Max-ReputationNPC Icon_minitimeThu 18 Oct 2018, 10:05 am by Zanukan

» An Thread dedicated to Old School 2.4.3 and all its memories
[LUA] Max-ReputationNPC Icon_minitimeSat 19 Mar 2016, 8:56 am by Shifthappens

» Hey sexy Gentlemen and Ladies
[LUA] Max-ReputationNPC Icon_minitimeThu 24 Jan 2013, 11:21 am by Suspect2

» yoo
[LUA] Max-ReputationNPC Icon_minitimeMon 13 Aug 2012, 1:34 pm by Casp'

» hay gm
[LUA] Max-ReputationNPC Icon_minitimeThu 09 Aug 2012, 11:47 pm by sevenhuehuelol

» Ques for GM
[LUA] Max-ReputationNPC Icon_minitimeThu 09 Aug 2012, 11:43 pm by sevenhuehuelol

» YES IT IS I
[LUA] Max-ReputationNPC Icon_minitimeMon 30 Jul 2012, 11:21 am by Casp'

» oldfags asemble
[LUA] Max-ReputationNPC Icon_minitimeTue 03 Jul 2012, 3:19 pm by -BoomBox

» Oh hai...
[LUA] Max-ReputationNPC Icon_minitimeTue 19 Jun 2012, 3:55 pm by Queshi

» hey windir bro guess what
[LUA] Max-ReputationNPC Icon_minitimeTue 19 Jun 2012, 3:55 pm by Queshi

» Downpatch from 3.0.8 to 3.0?
[LUA] Max-ReputationNPC Icon_minitimeMon 20 Jun 2011, 12:54 pm by windir2

» Mouthless asking me for RESS! LOOL
[LUA] Max-ReputationNPC Icon_minitimeThu 26 May 2011, 5:29 pm by Feel

» Need an unstuck
[LUA] Max-ReputationNPC Icon_minitimeTue 24 Nov 2009, 2:48 am by ombladon123

» Idea for Arena Rating and Arena Rewards
[LUA] Max-ReputationNPC Icon_minitimeMon 23 Nov 2009, 7:58 pm by Raddau

» shammy bug
[LUA] Max-ReputationNPC Icon_minitimeMon 23 Nov 2009, 1:35 pm by stomstrikes

» Gentlemen?
[LUA] Max-ReputationNPC Icon_minitimeMon 23 Nov 2009, 1:33 pm by stomstrikes

» Rous aka Zanukan attention please
[LUA] Max-ReputationNPC Icon_minitimeMon 23 Nov 2009, 3:36 am by ryonis

» I cant get my tokens when i vote.
[LUA] Max-ReputationNPC Icon_minitimeSun 22 Nov 2009, 1:26 pm by demonolator12345

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

None

Most users ever online was 395 on Sun 18 May 2008, 12:28 pm
Top posters
ServerBot (7646)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Swifteh (7171)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Charlie Face (4524)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Lisyhalath (3900)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Scruffay (3896)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
kitch (3536)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Min0rity (3192)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Ubberpownage88 (3023)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
bacongrease2 (2761)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Juicy (2649)
[LUA] Max-ReputationNPC Vote_lcap[LUA] Max-ReputationNPC Voting_bar[LUA] Max-ReputationNPC Vote_rcap 
Keywords
MEAT Spotlight Meatstick

 

 [LUA] Max-ReputationNPC

Go down 
AuthorMessage
Zanukan
WWemu Expert
WWemu Expert
Zanukan


Number of posts : 856
Age : 45
Joined : 2007-12-11
Points : 14310
Reputation : 3197

[LUA] Max-ReputationNPC Empty
PostSubject: [LUA] Max-ReputationNPC   [LUA] Max-ReputationNPC Icon_minitimeFri 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")
Back to top Go down
http://www.vcnserver.net
 
[LUA] Max-ReputationNPC
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
WoWPortal PVE Server :: Releases :: Scripts-
Jump to: