[Release]Buffer npc lua menu

These ads disappear when you log in.

Results 1 to 9 of 9
  1. #1
    Noobcraft's Avatar Knight-Champion
    Reputation
    141
    Join Date
    Aug 2007
    Posts
    598
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)

    [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





    These ads disappear when you log in.

  2. #2
    colincancer's Avatar Knight-Champion
    Reputation
    63
    Join Date
    Dec 2007
    Posts
    509
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    ****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%)
    dont work in me...
    The npc cast seft... no in me :/

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


  5. #5
    fox123's Avatar Sergeant
    Reputation
    15
    Join Date
    Feb 2008
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    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 Knight-Champion
    Reputation
    63
    Join Date
    Dec 2007
    Posts
    509
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    hmmmm seems to work for me
    #JODYS'WATCHiN

  7. #7
    stoneharry's Avatar Moderator Harry

    CoreCoins User Authenticator enabled
    Reputation
    1519
    Join Date
    Sep 2007
    Posts
    4,395
    Thanks G/R
    108/96
    Trade Feedback
    0 (0%)
    +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 Sergeant
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    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 Sergeant
    Reputation
    13
    Join Date
    Aug 2008
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    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 05:19 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search