[LUA] 3-in-1 NPC - | Buff | Morph | Heal menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    [pwn]age's Avatar Member
    Reputation
    56
    Join Date
    Jul 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] 3-in-1 NPC - | Buff | Morph | Heal

    Credits to Myerz of DarkWoWAbyssso dont flame me for not making this
    SQL Code:
    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 ('50000', "3-in-1 NPC", "Buff | Morph | Heal", '', '0', '10', '0', '3', '0', '0', '24084 ', '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 ('50000', '90', '90', '35', '75000', '75000', '75000', '1.5', '1', '100', '0', '75000', '75000', '0', '0', '0', '0', '0', '75000', '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');
    - Morph Options

    - Heal Options

    - Buff Options

    - **New** Remove Sickness's (Including Deserter)


    Code:
    function Mega_Buff_NPC_Gossip(unit, event, player)
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(6, "    >--> Morph Options <--<    ", 77, 0)
    unit:GossipMenuAddItem(6, "    >--> Heal Options <--<    ", 88, 0)
    unit:GossipMenuAddItem(5, "    >--> Buff Options <--<    ", 99, 0)
    unit:GossipMenuAddItem(5, " >--> Remove Sickness's Options <--< ", 100, 0)
    unit:GossipSendMenu(player)
    end
    
    function Mega_Buff_NPC_Submenus(unit, event, player, id, intid, code)
    if(intid == 75) then
    unit:GossipCreateMenu(78, player, 0)
    unit:GossipMenuAddItem(6, ">--> Morph Options <--<", 77, 0)
    unit:GossipMenuAddItem(6, ">--> Heal Options <--<", 88, 0)
    unit:GossipMenuAddItem(5, ">--> Buff Options <--<", 99, 0)
    unit:GossipMenuAddItem(5, ">--> Remove Sickness's Options <--<", 100, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    unit:GossipCreateMenu(62, player, 0)
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    unit:GossipMenuAddItem(6, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    unit:GossipCreateMenu(63, player, 0)
    player:LearnSpell(26013)
    player:UnlearnSpell(26013)
    unit:GossipMenuAddItem(6, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 77) then
    unit:GossipCreateMenu(65, player, 0)
    unit:GossipMenuAddItem(3,"Scuba-Goblin", 6, 0)
    unit:GossipMenuAddItem(3,"Wrapped Sentry", 7, 0)
    unit:GossipMenuAddItem(3,"Warp Guard", 8, 0)
    unit:GossipMenuAddItem(3,"Ghost Wolf", 9, 0)
    unit:GossipMenuAddItem(3,"Black Flower", 10, 0)
    unit:GossipMenuAddItem(3,"Blue Flower", 11, 0)
    unit:GossipMenuAddItem(3,"Thrall", 12, 0)
    unit:GossipMenuAddItem(3,"Sneeds Shreader", 13, 0)
    unit:GossipMenuAddItem(3,"Mage in Pimp Hat", 14, 0)
    unit:GossipMenuAddItem(3,"Shark", 15, 0)
    unit:GossipMenuAddItem(3,"Hammerhead Shark", 16, 0)
    unit:GossipMenuAddItem(3,"Ironforge Guard", 17, 0)
    unit:GossipMenuAddItem(3,"Ironfroge Mage", 18, 0)
    unit:GossipMenuAddItem(3,"Horde Sentry Warrior", 19, 0)
    unit:GossipMenuAddItem(3,"Horde Sentry Shaman", 20, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 88) then
    unit:GossipCreateMenu(69, player, 0)
    unit:GossipMenuAddItem(4, "Renew +1200 HoT", 1, 0)
    unit:GossipMenuAddItem(4, "Holy Light +47500 HP", 2, 0)
    unit:GossipMenuAddItem(4, "Cleanse Spirit", 3, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 99) then
    unit:GossipCreateMenu(61, player, 0)
    unit:FullCastSpellOnTarget(33077, player)
    unit:FullCastSpellOnTarget(33078, player)
    unit:FullCastSpellOnTarget(33079, player)
    unit:FullCastSpellOnTarget(33080, player)
    unit:FullCastSpellOnTarget(33081, player)
    unit:FullCastSpellOnTarget(33082, player)
    unit:FullCastSpellOnTarget(42995, player)
    unit:FullCastSpellOnTarget(48161, player)
    unit:FullCastSpellOnTarget(25898, player)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 100) then
    unit:GossipCreateMenu(71, player, 0)
    unit:GossipMenuAddItem(4, "Remove Ressurection Sickness", 4, 0)
    unit:GossipMenuAddItem(4, "Remove Deserter Sickness", 5, 0)
    unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:FullCastSpellOnTarget(57777, player)
    end
    if(intid == 2) then
    unit:FullCastSpellOnTarget(58053, player)
    end
    if(intid == 3) then
    unit:FullCastSpellOnTarget(51886, player)
    end
    if(intid == 6) then
    player:SetModel(19076)
    end
    if(intid == 7) then
    player:SetModel(19072)
    end
    if(intid == 8) then
    player:SetModel(19061)
    end
    if(intid == 9) then
    player:SetModel(19042)
    end
    if(intid == 10) then
    player:SetModel(19034)
    end
    if(intid == 11) then
    player:SetModel(19031)
    end
    if(intid == 12) then
    player:SetModel(19015)
    end
    if(intid == 13) then
    player:SetModel(19013)
    end
    if(intid == 14) then
    player:SetModel(19005)
    end
    if(intid == 15) then
    player:SetModel(12200)
    end
    if(intid == 16) then
    player:SetModel(12204)
    end
    if(intid == 17) then
    player:SetModel(21816)
    end
    if(intid == 18) then
    player:SetModel(21835)
    end
    if(intid == 19) then
    player:SetModel(23121)
    end
    if(intid == 20) then
    player:SetModel(23183)
    end
    end
    
    RegisterUnitGossipEvent(50000, 1, "Mega_Buff_NPC_Gossip")
    RegisterUnitGossipEvent(50000, 2, "Mega_Buff_NPC_Submenus")

    [LUA] 3-in-1 NPC - | Buff | Morph | Heal
  2. #2
    xenyoo's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, +Rep

  3. #3
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice +Rep dawg .
    Immortal GamerZ Under Development!

  4. #4
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, but really a compilation of other scripts.

    I actually like them separate. That way there arn't 120 people standing infront of this one NPC, may cause the server to crash.


  5. #5
    l33tpwnageXD's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump nice +Rep

  6. #6
    [pwn]age's Avatar Member
    Reputation
    56
    Join Date
    Jul 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe thanks, i hope you guys like it!

  7. #7
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey just a suggestion you should make it 5 in 1 with a teleport section and a Information section .
    Immortal GamerZ Under Development!

  8. #8
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^^ Do you WANT your server to be down every 5 minutes? :P


  9. #9
    insainz's Avatar Member
    Reputation
    22
    Join Date
    Feb 2008
    Posts
    86
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vindicated View Post
    Nice, but really a compilation of other scripts.

    I actually like them separate. That way there arn't 120 people standing infront of this one NPC, may cause the server to crash.
    lol, ye because 120 people standing infront of 3 npc's next to each other is completly different?
    If your server crashs because of to many people at an NPC then you need a better server. And yes a 5 in 1 sounds good.

  10. #10
    RyeRye's Avatar Contributor
    Reputation
    240
    Join Date
    Aug 2008
    Posts
    996
    Thanks G/R
    0/1
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by insainz View Post
    lol, ye because 120 people standing infront of 3 npc's next to each other is completly different?
    If your server crashs because of to many people at an NPC then you need a better server. And yes a 5 in 1 sounds good.

    It would be more spread out, and they wouldn't be like toe to toe close. And the better server thing, is a good idea :P


    But it looks nice.



  11. #11
    [pwn]age's Avatar Member
    Reputation
    56
    Join Date
    Jul 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys and bump

  12. #12
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No because you create a system where that NPC's DLL will be "called" 24/7, at max times having to call about 40 or 50 things at the same time. If you spread the load out, less chance for overload. Durrrr


  13. #13
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Vindicated View Post
    No because you create a system where that NPC's DLL will be "called" 24/7, at max times having to call about 40 or 50 things at the same time. If you spread the load out, less chance for overload. Durrrr
    Durrrrrrr.

    Nice.. Share :P

    I live in a shoe

  14. #14
    Sebastian011's Avatar Member
    Reputation
    22
    Join Date
    Jan 2009
    Posts
    112
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe, nice one!

  15. #15
    [pwn]age's Avatar Member
    Reputation
    56
    Join Date
    Jul 2008
    Posts
    102
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im thinking about adding a teleporter to it, what do you guys think

Page 1 of 2 12 LastLast

Similar Threads

  1. [Lua] Savage Gladiator Gear NPC
    By shadowslayer133 in forum WoW EMU General Releases
    Replies: 0
    Last Post: 03-16-2010, 05:51 AM
  2. [LUA HELP] Boss spawning npc when he dies
    By Moaradin in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 04-19-2009, 11:03 AM
  3. LUA 3 in 1 Morph/Buff/Heal NPC
    By Found in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 04-12-2009, 04:01 PM
  4. Replies: 40
    Last Post: 11-04-2008, 04:03 PM
  5. [Release] Chirspee's Teleporting NPC, Buff NPC's, Skill NPC and Heal NPC
    By Illidan1 in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 11-22-2007, 04:05 PM
All times are GMT -5. The time now is 04:37 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