Code:
-- Script Made by Wheeze.
local npcid = 0
function infoNPC_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(100, player, 0)
pUnit:GossipMenuAddItem(0, "Information1", 1, 0)
pUnit:GossipMenuAddItem(0, "Information2", 2, 0)
pUnit:GossipMenuAddItem(0, "Information3", 3, 0)
pUnit:GossipMenuAddItem(0, "Information4", 4, 0)
pUnit:GossipMenuAddItem(0, "Information5", 5, 0)
pUnit:GossipMenuAddItem(0, "Information6", 6, 0)
pUnit:GossipSendMenu(player)
end
function infoNPC_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (intid == 1) then
pUnit:SendChatMessage(12, 0, "<insert information1 here>")
pUnit:GossipComplete(player)
end
if (intid == 2) then
pUnit:SendChatMessage(12, 0, "<insert information2 here>")
pUnit:GossipComplete(player)
end
if (intid == 3) then
pUnit:SendChatMessage(12, 0, "<insert information3 here>")
pUnit:GossipComplete(player)
end
if (intid == 4) then
pUnit:SendChatMessage(12, 0, "<insert information4 here>")
pUnit:GossipComplete(player)
end
if (intid == 5) then
pUnit:SendChatMessage(12, 0, "<insert information5 here>")
pUnit:GossipComplete(player)
end
if (intid == 6) then
pUnit:SendChatMessage(12, 0, "<insert information6 here>")
pUnit:GossipComplete(player)
end
intid = 0
end
RegisterUnitGossipEvent(90901, 1, "infoNPC_OnGossipTalk")
RegisterUnitGossipEvent(90901, 2, "infoNPC_OnGossipSelect")
Code:
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 ('90901', "InfoNPC", "", '', '0', '7', '0', '1', '0', '0', '24052', '0', '0', '0', '1', '1', '0', '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`)
values ('90901', '100', '100', '35', '90000', '90000', '90', '1', '0', '1500', '0', '999', '1599', '0', '0', '0', '0', '6', '90', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');