[Release]Buffer npc lua menu

User Tag List

Results 1 to 9 of 9
  1. #1
    Noobcraft's Avatar Member
    Reputation
    141
    Join Date
    Aug 2007
    Posts
    598
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release]Buffer npc lua

    Made for my friends who wanted this to be in my next repack.

    You do not have to give credits,you may edit it anyway you like.

    The code

    Code:
     
    local npcid = 5000003
    function Buff_OnGossipTalk(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(5, "Buff's.", 1, 0)
    pUnit:GossipMenuAddItem(9, "Remove Rez Sickness", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    function Buff_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if (intid == 1) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(3, "Agility", 3, 0)
    pUnit:GossipMenuAddItem(3, "Intellect", 4, 0)
    pUnit:GossipMenuAddItem(3, "Protection", 5, 0)
    pUnit:GossipMenuAddItem(3, "Spirit", 6, 0)
    pUnit:GossipMenuAddItem(3, "Stamina", 7, 0)
    pUnit:GossipMenuAddItem(3, "Strength", 8, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 2) then
    pUnit:CastSpellOnTarget(15007) 
    player:UnlearnSpell(15007)
    pUnit:GossipComplete(player)
    end
    if (intid == 3) then
    pUnit:CastSpellOnTarget(33077, player)
    pUnit:GossipComplete(player)
    end
    if (intid == 4) then
    pUnit:CastSpellOnTarget(33078, player)
    pUnit:GossipComplete(player)
    end
    if (intid == 5) then
    pUnit:CastSpellOnTarget(33079, player)
    pUnit:GossipComplete(player)
    end
    if (intid == 6) then
    pUnit:CastSpellOnTarget(33080, player)
    pUnit:GossipComplete(player)
    end
    if (intid == 7) then
    pUnit:CastSpellOnTarget(33081, player)
    pUnit:GossipComplete(player)
    end
    if (intid == 8) then
    pUnit:CastSpellOnTarget(33082, player)
    pUnit:GossipComplete(player)
    end
    end
    RegisterUnitGossipEvent(npcid, 1, "Buff_OnGossipTalk")
    RegisterUnitGossipEvent(npcid, 2, "Buff_OnGossipSelect")
    The Npc


    Code:
     
    INSERT INTO `creature_names` VALUES ('5000003', 'Buffer', 'Your servers name', '', '0', '7', '0', '0', '0', null, '16202', '16202', '0', '0', '1', '1', '1', null);
     
    INSERT INTO `creature_proto` VALUES ('5000003', '70', '70', '35', '10000000', '10000000', '10000000', '1', '1', '1800', '0', '1500', '2500', '1800', '500', '650', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '36000', '0', '0', '0', '0', '0', '0', '0', '1', '0', 'MEMO', '0', '0', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0');
    Pictures





    [Release]Buffer npc lua
  2. #2
    colincancer's Avatar Active Member
    Reputation
    63
    Join Date
    Dec 2007
    Posts
    509
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ****ing sweet dude!
    #JODYS'WATCHiN

  3. #3
    marcojoao's Avatar Master Sergeant
    Reputation
    8
    Join Date
    Aug 2007
    Posts
    114
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dont work in me...
    The npc cast seft... no in me :/

  4. #4
    Anthraxx's Avatar Contributor
    Reputation
    111
    Join Date
    Nov 2006
    Posts
    374
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice man +rep for you


  5. #5
    fox123's Avatar Member
    Reputation
    15
    Join Date
    Feb 2008
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What Do I acctualy need to do with the given script? I'm new to hosting I refer to the local npcid = 5000003
    function Buff_OnGossipTalk(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(5, "Buff's.", 1, 0)
    pUnit:GossipMenuAddItem(9, "Remove Rez Sickness", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    function Buff_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if (intid == 1) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(3, "Agility", 3, 0)
    pUnit:GossipMenuAddItem(3, "Intellect", 4, 0) etc

  6. #6
    colincancer's Avatar Active Member
    Reputation
    63
    Join Date
    Dec 2007
    Posts
    509
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmmm seems to work for me
    #JODYS'WATCHiN

  7. #7
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    +rep (if i cant right now will do it tommoro, repped a lot lately)

    I like the fact that you've said "you don't need to give credits and feel free to edit"

    Also you actually posted screenshots, a lot of people don't.

    Good work, keep it up

  8. #8
    Lytle69's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow this actually helped me =] I think I'll use it and modify the buff's, but Thanks =] Nice work.

  9. #9
    Lytle69's Avatar Member
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just noticed that you forgot to define Play on remove res sickness.

Similar Threads

  1. [Release] Warp NPC Lua !! ( First Lua Release by Me )
    By Hyldran0 in forum WoW EMU General Releases
    Replies: 17
    Last Post: 01-22-2009, 09:32 AM
  2. [Release] Teleporter NPC (LUA++)
    By Vaudville in forum WoW EMU General Releases
    Replies: 9
    Last Post: 09-23-2008, 09:55 AM
  3. [Release]Instant 70 Npc Lua
    By Noobcraft in forum WoW EMU General Releases
    Replies: 27
    Last Post: 09-08-2008, 11:28 PM
  4. [Release] Healer, Morpher + Buffer NPC [LUA]
    By Syrup in forum WoW EMU General Releases
    Replies: 3
    Last Post: 09-07-2008, 04:57 PM
  5. [Release] Info NPC -- LUA
    By Babbaa in forum WoW EMU General Releases
    Replies: 6
    Last Post: 08-17-2008, 02:29 PM
All times are GMT -5. The time now is 12:21 AM. 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