PDA

View Full Version : [Lua]- Tier 7 Multi NPC


LJwow
05-26-2009, 08:58 PM
This script was released before in a Season version.
I take credits for the Tier one.
Greeting's Lorre

--Scripted by Nightfall Lua Scripting team.
--All credits to Lorre,Sjoerd.

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

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

if (intid == 11) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "[Priest Valorous Holy]", 12, 0)
pUnit:GossipMenuAddItem(0, "[Priest Valorous Shadow]", 13, 0)
pUnit:GossipMenuAddItem(0, "[Rogue Valorous]", 14, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Valorous Resto]", 15, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Valorous Enhancement]", 16, 0)
pUnit:GossipMenuAddItem(0, "[Shaman Valorous Elemental]", 17, 0)
pUnit:GossipMenuAddItem(0, "[Warlock Valorous]", 18, 0)
pUnit:GossipMenuAddItem(0, "[Warrior Valorous Fury]", 19, 0)
pUnit:GossipMenuAddItem(0, "[Warrior Valorous Tank]", 20, 0)
pUnit:GossipSendMenu(player)
end

if (intid == 1) then
player:AddItem(40550, 1)
player:AddItem(40552, 1)
player:AddItem(40554, 1)
player:AddItem(40556, 1)
player:AddItem(40557, 1)
pUnit:GossipComplete(player)
end

if (intid == 2) then
player:AddItem(40559, 1)
player:AddItem(40563, 1)
player:AddItem(40565, 1)
player:AddItem(40567, 1)
player:AddItem(40568, 1)
pUnit:GossipComplete(player)
end

if (intid == 3) then
player:AddItem(40415, 1)
player:AddItem(40416, 1)
player:AddItem(40417, 1)
player:AddItem(40418, 1)
player:AddItem(40419, 1)
pUnit:GossipComplete(player)
end

if (intid == 4) then
player:AddItem(40460, 1)
player:AddItem(40461, 1)
player:AddItem(40462, 1)
player:AddItem(40463, 1)
player:AddItem(40465, 1)
pUnit:GossipComplete(player)
end

if (intid == 5) then
player:AddItem(40471, 1)
player:AddItem(40472, 1)
player:AddItem(40473, 1)
player:AddItem(40493, 1)
player:AddItem(40494, 1)
pUnit:GossipComplete(player)
end

if (intid == 6) then
player:AddItem(40466, 1)
player:AddItem(40467, 1)
player:AddItem(40468, 1)
player:AddItem(40469, 1)
player:AddItem(40470, 1)
pUnit:GossipComplete(player)
end

if (intid == 7) then
player:AddItem(40503, 1)
player:AddItem(40504, 1)
player:AddItem(40505, 1)
player:AddItem(40506, 1)
player:AddItem(40507, 1)
pUnit:GossipComplete(player)
end

if (intid == 8) then
player:AddItem(40569, 1)
player:AddItem(40570, 1)
player:AddItem(40571, 1)
player:AddItem(40572, 1)
player:AddItem(40573, 1)
pUnit:GossipComplete(player)
end

if (intid == 9) then
player:AddItem(40574, 1)
player:AddItem(40575, 1)
player:AddItem(40576, 1)
player:AddItem(40577, 1)
player:AddItem(40578, 1)
pUnit:GossipComplete(player)
end

if (intid == 10) then
player:AddItem(40579, 1)
player:AddItem(40580, 1)
player:AddItem(40581, 1)
player:AddItem(40583, 1)
player:AddItem(40584, 1)
pUnit:GossipComplete(player)
end

if (intid == 12) then
player:AddItem(40445, 1)
player:AddItem(40447, 1)
player:AddItem(40448, 1)
player:AddItem(40449, 1)
player:AddItem(40450, 1)
pUnit:GossipComplete(player)
end

if (intid == 13) then
player:AddItem(40454, 1)
player:AddItem(40456, 1)
player:AddItem(40457, 1)
player:AddItem(40458, 1)
player:AddItem(40459, 1)
pUnit:GossipComplete(player)
end

if (intid == 14) then
player:AddItem(40495, 1)
player:AddItem(40496, 1)
player:AddItem(40499, 1)
player:AddItem(40500, 1)
player:AddItem(40502, 1)
pUnit:GossipComplete(player)
end

if (intid == 15) then
player:AddItem(40508, 1)
player:AddItem(40509, 1)
player:AddItem(40510, 1)
player:AddItem(40512, 1)
player:AddItem(40513, 1)
pUnit:GossipComplete(player)
end

if (intid == 16) then
player:AddItem(40520, 1)
player:AddItem(40521, 1)
player:AddItem(40522, 1)
player:AddItem(40523, 1)
player:AddItem(40524, 1)
pUnit:GossipComplete(player)
end

if (intid == 17) then
player:AddItem(40514, 1)
player:AddItem(40515, 1)
player:AddItem(40516, 1)
player:AddItem(40517, 1)
player:AddItem(40518, 1)
pUnit:GossipComplete(player)
end

if (intid == 18) then
player:AddItem(40420, 1)
player:AddItem(40421, 1)
player:AddItem(40422, 1)
player:AddItem(40423, 1)
player:AddItem(40424, 1)
pUnit:GossipComplete(player)
end

if (intid == 19) then
player:AddItem(40525, 1)
player:AddItem(40527, 1)
player:AddItem(40528, 1)
player:AddItem(40529, 1)
player:AddItem(40530, 1)
pUnit:GossipComplete(player)
end

if (intid == 20) then
player:AddItem(40544, 1)
player:AddItem(40545, 1)
player:AddItem(40546, 1)
player:AddItem(40547, 1)
player:AddItem(40548, 1)
pUnit:GossipComplete(player)
end
end

RegisterUnitGossipEvent(123128, 1, "Valorous_On_Gossip")
RegisterUnitGossipEvent(123128, 2, "Valorous_Gossip_Submenus")

print (" ================================================== ==")
print (" Loaded: Valorous Script V.1")
print (" Made by Lorree")
print (" This script is Original released for Nightfall WoW")
print (" ================================================== ==")

SQL:
INSERT INTO creature_proto
(`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
VALUES
(311212, 80, 80, 1719, 60958, 60958, 0, 1, 1, 2000, 0, 1624, 1871, 0, 0, 0, 0, 360000, 16807, 0, 0, 0, 0, 0, 0, 2, 1, '0', 0, 0, 0, 0, 2.5, 8, 14, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO creature_names
(`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
VALUES
(311212, 'Valorous Set', 'NightFall WoW', '', 0, 0, 0, 1, 0, 0, 24356, 0, 0, 0, 1, 1, NULL, 0);

Double
05-26-2009, 10:30 PM
Great. Just wat I want

Sdyess
05-26-2009, 10:42 PM
Never got around to doing this. :D lol

Anyways, Nice.

master211996
05-27-2009, 01:07 AM
Thanks I made one for my Mega_Item and Mega_NPC but it didn't have this much variety so thanks and +rep :)

Tyle
05-27-2009, 01:10 AM
Stole my idea :(


Great release tho ^^ it is great cuz i was gunna do it! :P

Sdyess
05-27-2009, 01:12 AM
The important thing is that my work influenced anothers. Hehe.