[Release] Information NPC. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Information NPC.

    Well i bet this has been done before but the older scripts may be harder to find and might not be working with the latest cores and whatnot. Who knowes.

    Well this is scripted in LUA and was tested on both ArcEmu rev2001 and 2002.


    LUA Script:
    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")

    SQL:

    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');

    Hope you like it, enjoy and if you are going to release it somewhere please give me credit!
    :wave:

    [Release] Information NPC.
  2. #2
    willitsc's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice dude +rep

  3. #3
    dongel's Avatar Member
    Reputation
    7
    Join Date
    Nov 2007
    Posts
    137
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems gr8,after few days im gona try it , but anyway +rep 4 you xP

  4. #4
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't exactly recieved Rep but thanks anyways

Similar Threads

  1. [Release] Twink Npc
    By Sylex in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 02-24-2008, 03:51 AM
  2. [Release] ALL Npc Display IDs!
    By Hellgawd in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-01-2008, 12:47 PM
  3. [Release] Wareagles NPCS and Chest Query
    By Hellgawd in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-21-2008, 05:46 PM
  4. [Release] Helper Npcs
    By wowcomputer in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-25-2007, 05:42 AM
  5. [RELEASE] Morph NPC
    By pepsi1x1 in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-04-2007, 08:42 PM
All times are GMT -5. The time now is 01:10 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search