MikExV™
17-03-10, 03:25 PM
Lua Script below
function On_Gossip(pUnit, event, player)
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(0, "Welcome To The T10 Giver!", 99, 0)
pUnit:GossipMenuAddItem(0, "Deathknight T10", 1, 0)
pUnit:GossipMenuAddItem(0, "Mage T10", 2, 0)
pUnit:GossipMenuAddItem(0, "Druid Resto T10", 3, 0)
pUnit:GossipMenuAddItem(0, "Druid Feral T10", 4, 0)
pUnit:GossipMenuAddItem(0, "Druid Balance T10", 5, 0)
pUnit:GossipMenuAddItem(0, "Hunter T10", 6, 0)
pUnit:GossipMenuAddItem(0, "Paladin Holy T10", 7, 0)
pUnit:GossipMenuAddItem(0, "Paladin Ret T10", 8, 0)
pUnit:GossipMenuAddItem(0, "Priest Holy T10", 9, 0)
pUnit:GossipMenuAddItem(0, "Priest Shadow T10", 10, 0)
pUnit:GossipMenuAddItem(0, "Page 2", 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 T10", 12, 0)
pUnit:GossipMenuAddItem(0, "Shaman Resto T10", 13, 0)
pUnit:GossipMenuAddItem(0, "Shaman Enhancement T10", 14, 0)
pUnit:GossipMenuAddItem(0, "Shaman Elemental T10", 15, 0)
pUnit:GossipMenuAddItem(0, "Warlock T10", 16, 0)
pUnit:GossipMenuAddItem(0, "Warrior T10", 17, 0)
pUnit:GossipMenuAddItem(0, "Paladin Prot T10", 18, 0)
pUnit:GossipMenuAddItem(0, "Deathknight T10(Tank)", 19, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 1) then
player:AddItem(50094, 1)
player:AddItem(50095, 1)
player:AddItem(50096, 1)
player:AddItem(50097, 1)
player:AddItem(50098, 1)
pUnit:GossipComplete(player)
end
if (intid == 2) then
player:AddItem(50106, 1)
player:AddItem(50107, 1)
player:AddItem(50108, 1)
player:AddItem(50109, 1)
player:AddItem(50113, 1)
pUnit:GossipComplete(player)
end
if (intid == 3) then
player:AddItem(50824, 1)
player:AddItem(50825, 1)
player:AddItem(50826, 1)
player:AddItem(50827, 1)
player:AddItem(50828, 1)
pUnit:GossipComplete(player)
end
if (intid == 4) then
player:AddItem(50824, 1)
player:AddItem(50825, 1)
player:AddItem(50826, 1)
player:AddItem(50827, 1)
player:AddItem(50828, 1)
pUnit:GossipComplete(player)
end
if (intid == 5) then
player:AddItem(50819, 1)
player:AddItem(50820, 1)
player:AddItem(50821, 1)
player:AddItem(50822, 1)
player:AddItem(50823, 1)
pUnit:GossipComplete(player)
end
if (intid == 6) then
player:AddItem(50114, 1)
player:AddItem(50115, 1)
player:AddItem(50116, 1)
player:AddItem(50117, 1)
player:AddItem(50118, 1)
pUnit:GossipComplete(player)
end
if (intid == 7) then
player:AddItem(50865, 1)
player:AddItem(50866, 1)
player:AddItem(50867, 1)
player:AddItem(50868, 1)
player:AddItem(50869, 1)
pUnit:GossipComplete(player)
end
if (intid == 8) then
player:AddItem(50324, 1)
player:AddItem(50325, 1)
player:AddItem(50326, 1)
player:AddItem(50327, 1)
player:AddItem(50328, 1)
pUnit:GossipComplete(player)
end
if (intid == 9) then
player:AddItem(50765, 1)
player:AddItem(50766, 1)
player:AddItem(50767, 1)
player:AddItem(50768, 1)
player:AddItem(50769, 1)
pUnit:GossipComplete(player)
end
if (intid == 10) then
player:AddItem(50391, 1)
player:AddItem(50392, 1)
player:AddItem(50393, 1)
player:AddItem(50394, 1)
player:AddItem(50396, 1)
pUnit:GossipComplete(player)
end
if (intid == 12) then
player:AddItem(50087, 1)
player:AddItem(50088, 1)
player:AddItem(50089, 1)
player:AddItem(50090, 1)
player:AddItem(50105, 1)
pUnit:GossipComplete(player)
end
if (intid == 13) then
player:AddItem(50835, 1)
player:AddItem(50836, 1)
player:AddItem(50837, 1)
player:AddItem(50838, 1)
player:AddItem(50839, 1)
pUnit:GossipComplete(player)
end
if (intid == 14) then
player:AddItem(50830, 1)
player:AddItem(50831, 1)
player:AddItem(50832, 1)
player:AddItem(50833, 1)
player:AddItem(50834, 1)
pUnit:GossipComplete(player)
end
if (intid == 15) then
player:AddItem(50841, 1)
player:AddItem(50842, 1)
player:AddItem(50843, 1)
player:AddItem(50844, 1)
player:AddItem(50845, 1)
pUnit:GossipComplete(player)
end
if (intid == 16) then
player:AddItem(50240, 1)
player:AddItem(50241, 1)
player:AddItem(50242, 1)
player:AddItem(50243, 1)
player:AddItem(50244, 1)
pUnit:GossipComplete(player)
end
if (intid == 17) then
player:AddItem(50078, 1)
player:AddItem(50079, 1)
player:AddItem(50080, 1)
player:AddItem(50081, 1)
player:AddItem(50082, 1)
pUnit:GossipComplete(player)
end
if (intid == 18) then
player:AddItem(50860, 1)
player:AddItem(50861, 1)
player:AddItem(50862, 1)
player:AddItem(50863, 1)
player:AddItem(50864, 1)
pUnit:GossipComplete(player)
end
if (intid == 19) then
player:AddItem(50853, 1)
player:AddItem(50854, 1)
player:AddItem(50855, 1)
player:AddItem(50856, 1)
player:AddItem(50857, 1)
pUnit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(96633, 1, "On_Gossip")
RegisterUnitGossipEvent(96633, 2, "Gossip_Submenus")
SQL Below
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `killcredit1`, `killcredit2`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`)
values ('96633', "T10 Giver", "Want Some T10?", '', '0', '10', '0', '0', '0', '0', '384', '384', '384', '384', '1', '1', '0');
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`, `summonguard`)
values ('96633', '255', '255', '35', '900000000', '900000000', '0', '2.0', '1', '100', '0', '9999', '9999', '0', '0', '0', '0', '1000', '90000000', '9000', '9000', '9000', '9000', '9000', '9000', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0', '1');
function On_Gossip(pUnit, event, player)
pUnit:GossipCreateMenu(3544, player, 0)
pUnit:GossipMenuAddItem(0, "Welcome To The T10 Giver!", 99, 0)
pUnit:GossipMenuAddItem(0, "Deathknight T10", 1, 0)
pUnit:GossipMenuAddItem(0, "Mage T10", 2, 0)
pUnit:GossipMenuAddItem(0, "Druid Resto T10", 3, 0)
pUnit:GossipMenuAddItem(0, "Druid Feral T10", 4, 0)
pUnit:GossipMenuAddItem(0, "Druid Balance T10", 5, 0)
pUnit:GossipMenuAddItem(0, "Hunter T10", 6, 0)
pUnit:GossipMenuAddItem(0, "Paladin Holy T10", 7, 0)
pUnit:GossipMenuAddItem(0, "Paladin Ret T10", 8, 0)
pUnit:GossipMenuAddItem(0, "Priest Holy T10", 9, 0)
pUnit:GossipMenuAddItem(0, "Priest Shadow T10", 10, 0)
pUnit:GossipMenuAddItem(0, "Page 2", 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 T10", 12, 0)
pUnit:GossipMenuAddItem(0, "Shaman Resto T10", 13, 0)
pUnit:GossipMenuAddItem(0, "Shaman Enhancement T10", 14, 0)
pUnit:GossipMenuAddItem(0, "Shaman Elemental T10", 15, 0)
pUnit:GossipMenuAddItem(0, "Warlock T10", 16, 0)
pUnit:GossipMenuAddItem(0, "Warrior T10", 17, 0)
pUnit:GossipMenuAddItem(0, "Paladin Prot T10", 18, 0)
pUnit:GossipMenuAddItem(0, "Deathknight T10(Tank)", 19, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 1) then
player:AddItem(50094, 1)
player:AddItem(50095, 1)
player:AddItem(50096, 1)
player:AddItem(50097, 1)
player:AddItem(50098, 1)
pUnit:GossipComplete(player)
end
if (intid == 2) then
player:AddItem(50106, 1)
player:AddItem(50107, 1)
player:AddItem(50108, 1)
player:AddItem(50109, 1)
player:AddItem(50113, 1)
pUnit:GossipComplete(player)
end
if (intid == 3) then
player:AddItem(50824, 1)
player:AddItem(50825, 1)
player:AddItem(50826, 1)
player:AddItem(50827, 1)
player:AddItem(50828, 1)
pUnit:GossipComplete(player)
end
if (intid == 4) then
player:AddItem(50824, 1)
player:AddItem(50825, 1)
player:AddItem(50826, 1)
player:AddItem(50827, 1)
player:AddItem(50828, 1)
pUnit:GossipComplete(player)
end
if (intid == 5) then
player:AddItem(50819, 1)
player:AddItem(50820, 1)
player:AddItem(50821, 1)
player:AddItem(50822, 1)
player:AddItem(50823, 1)
pUnit:GossipComplete(player)
end
if (intid == 6) then
player:AddItem(50114, 1)
player:AddItem(50115, 1)
player:AddItem(50116, 1)
player:AddItem(50117, 1)
player:AddItem(50118, 1)
pUnit:GossipComplete(player)
end
if (intid == 7) then
player:AddItem(50865, 1)
player:AddItem(50866, 1)
player:AddItem(50867, 1)
player:AddItem(50868, 1)
player:AddItem(50869, 1)
pUnit:GossipComplete(player)
end
if (intid == 8) then
player:AddItem(50324, 1)
player:AddItem(50325, 1)
player:AddItem(50326, 1)
player:AddItem(50327, 1)
player:AddItem(50328, 1)
pUnit:GossipComplete(player)
end
if (intid == 9) then
player:AddItem(50765, 1)
player:AddItem(50766, 1)
player:AddItem(50767, 1)
player:AddItem(50768, 1)
player:AddItem(50769, 1)
pUnit:GossipComplete(player)
end
if (intid == 10) then
player:AddItem(50391, 1)
player:AddItem(50392, 1)
player:AddItem(50393, 1)
player:AddItem(50394, 1)
player:AddItem(50396, 1)
pUnit:GossipComplete(player)
end
if (intid == 12) then
player:AddItem(50087, 1)
player:AddItem(50088, 1)
player:AddItem(50089, 1)
player:AddItem(50090, 1)
player:AddItem(50105, 1)
pUnit:GossipComplete(player)
end
if (intid == 13) then
player:AddItem(50835, 1)
player:AddItem(50836, 1)
player:AddItem(50837, 1)
player:AddItem(50838, 1)
player:AddItem(50839, 1)
pUnit:GossipComplete(player)
end
if (intid == 14) then
player:AddItem(50830, 1)
player:AddItem(50831, 1)
player:AddItem(50832, 1)
player:AddItem(50833, 1)
player:AddItem(50834, 1)
pUnit:GossipComplete(player)
end
if (intid == 15) then
player:AddItem(50841, 1)
player:AddItem(50842, 1)
player:AddItem(50843, 1)
player:AddItem(50844, 1)
player:AddItem(50845, 1)
pUnit:GossipComplete(player)
end
if (intid == 16) then
player:AddItem(50240, 1)
player:AddItem(50241, 1)
player:AddItem(50242, 1)
player:AddItem(50243, 1)
player:AddItem(50244, 1)
pUnit:GossipComplete(player)
end
if (intid == 17) then
player:AddItem(50078, 1)
player:AddItem(50079, 1)
player:AddItem(50080, 1)
player:AddItem(50081, 1)
player:AddItem(50082, 1)
pUnit:GossipComplete(player)
end
if (intid == 18) then
player:AddItem(50860, 1)
player:AddItem(50861, 1)
player:AddItem(50862, 1)
player:AddItem(50863, 1)
player:AddItem(50864, 1)
pUnit:GossipComplete(player)
end
if (intid == 19) then
player:AddItem(50853, 1)
player:AddItem(50854, 1)
player:AddItem(50855, 1)
player:AddItem(50856, 1)
player:AddItem(50857, 1)
pUnit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(96633, 1, "On_Gossip")
RegisterUnitGossipEvent(96633, 2, "Gossip_Submenus")
SQL Below
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `killcredit1`, `killcredit2`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`)
values ('96633', "T10 Giver", "Want Some T10?", '', '0', '10', '0', '0', '0', '0', '384', '384', '384', '384', '1', '1', '0');
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`, `summonguard`)
values ('96633', '255', '255', '35', '900000000', '900000000', '0', '2.0', '1', '100', '0', '9999', '9999', '0', '0', '0', '0', '1000', '90000000', '9000', '9000', '9000', '9000', '9000', '9000', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0', '1');