PDA

View Full Version : Savage Gladiator Gear Vendor



shadowslayer133
16-03-10, 05:50 AM
I created an NPC that gives you Savage gladiator gear. Just create and NPC with the ID of 510004 and give him gossip flags, (1)



function On_Gossip(pUnit, event, player)
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(0, "[Deathknight]", 1, 0)
pUnit:GossipMenuAddItem(0, "[Mage]", 2, 0)
pUnit:GossipMenuAddItem(0, "[Druid Resto]", 3, 0)
pUnit:GossipMenuAddItem(0, "[Druid Feral]", 4, 0)
pUnit:GossipMenuAddItem(0, "[Druid Balance]", 5, 0)
pUnit:GossipMenuAddItem(0, "[Hunter]", 6, 0)
pUnit:GossipMenuAddItem(0, "[Paladin Holy]", 7, 0)
pUnit:GossipMenuAddItem(0, "[Paladin Ret/Tank]", 8, 0)
pUnit:GossipMenuAddItem(0, "[Priest Holy]", 9, 0)
pUnit:GossipMenuAddItem(0, "[Priest Shadow]", 10, 0)
pUnit:GossipMenuAddItem(0, "[Next Page]", 11, 0)
pUnit:GossipSendMenu(player)
end

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

if (intid == 11) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "[Rogue]", 12, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Resto]", 13, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Enhancement]", 14, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Elemental]", 15, 0)
pUnit:GossipMenuAddItem(0, "[Warlock]", 16, 0)
pUnit:GossipMenuAddItem(0, "[Warrior]", 17, 0)
pUnit:GossipSendMenu(player)
end

if (intid == 1) then
player:AddItem(40779, 1)
player:AddItem(40799, 1)
player:AddItem(40817, 1)
player:AddItem(40837, 1)
player:AddItem(40857, 1)
pUnit:GossipComplete(player)
end

if (intid == 2) then
player:AddItem(41943, 1)
player:AddItem(41949, 1)
player:AddItem(41956, 1)
player:AddItem(41962, 1)
player:AddItem(41968, 1)
pUnit:GossipComplete(player)
end

if (intid == 3) then
player:AddItem(41268, 1)
player:AddItem(41269, 1)
player:AddItem(41270, 1)
player:AddItem(41371, 1)
player:AddItem(41372, 1)
pUnit:GossipComplete(player)
end

if (intid == 4) then
player:AddItem(41658, 1)
player:AddItem(41664, 1)
player:AddItem(41675, 1)
player:AddItem(41712, 1)
player:AddItem(41770, 1)
pUnit:GossipComplete(player)
end

if (intid == 5) then
player:AddItem(41278, 1)
player:AddItem(41290, 1)
player:AddItem(41301, 1)
player:AddItem(41313, 1)
player:AddItem(41324, 1)
pUnit:GossipComplete(player)
end

if (intid == 6) then
player:AddItem(41084, 1)
player:AddItem(41140, 1)
player:AddItem(41154, 1)
player:AddItem(41202, 1)
player:AddItem(41214, 1)
pUnit:GossipComplete(player)
end

if (intid == 7) then
player:AddItem(40898, 1)
player:AddItem(40918, 1)
player:AddItem(40930, 1)
player:AddItem(40936, 1)
player:AddItem(40960, 1)
pUnit:GossipComplete(player)
end

if (intid == 8) then
player:AddItem(40780, 1)
player:AddItem(40798, 1)
player:AddItem(40818, 1)
player:AddItem(40838, 1)
player:AddItem(40858, 1)
pUnit:GossipComplete(player)
end

if (intid == 9) then
player:AddItem(41847, 1)
player:AddItem(41848, 1)
player:AddItem(41849, 1)
player:AddItem(41850, 1)
player:AddItem(41851, 1)
pUnit:GossipComplete(player)
end

if (intid == 10) then
player:AddItem(41912, 1)
player:AddItem(41918, 1)
player:AddItem(41924, 1)
player:AddItem(41930, 1)
player:AddItem(41937, 1)
pUnit:GossipComplete(player)
end

if (intid == 12) then
player:AddItem(41643, 1)
player:AddItem(41644, 1)
player:AddItem(41645, 1)
player:AddItem(41646, 1)
player:AddItem(41647, 1)
pUnit:GossipComplete(player)
end

if (intid == 13) then
player:AddItem(40986, 1)
player:AddItem(40998, 1)
player:AddItem(41010, 1)
player:AddItem(41023, 1)
player:AddItem(41024, 1)
pUnit:GossipComplete(player)
end

if (intid == 14) then
player:AddItem(41078, 1)
player:AddItem(41134, 1)
player:AddItem(41148, 1)
player:AddItem(41160, 1)
player:AddItem(41208, 1)
pUnit:GossipComplete(player)
end

if (intid == 15) then
player:AddItem(40987, 1)
player:AddItem(41004, 1)
player:AddItem(41016, 1)
player:AddItem(41030, 1)
player:AddItem(41041, 1)
pUnit:GossipComplete(player)
end

if (intid == 16) then
player:AddItem(41990, 1)
player:AddItem(41996, 1)
player:AddItem(42002, 1)
player:AddItem(42008, 1)
player:AddItem(42014, 1)
pUnit:GossipComplete(player)
end

if (intid == 17) then
player:AddItem(40778, 1)
player:AddItem(40797, 1)
player:AddItem(40816, 1)
player:AddItem(40836, 1)
player:AddItem(40856, 1)
pUnit:GossipComplete(player)
end
end

RegisterUnitGossipEvent(510004, 1, "On_Gossip")
RegisterUnitGossipEvent(510004, 2, "Gossip_Submenus")

Dimman
16-03-10, 06:31 AM
Thanks for contributing :)

Apple
16-03-10, 11:04 AM
nice one :) +ReP

shadowslayer133
16-03-10, 04:57 PM
thank you.

sTeAlthy
22-04-10, 05:31 PM
Nice release

.SalMAX™
22-04-10, 10:19 PM
Great Release. Thanks for posting this on Mmopro.net :)

+rep