[Release] Morph NPC menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Morph NPC

    Alright. I've spent a little bit of time working on this morph NPC. Hope you enjoy!

    Code:
    local npcid = 160015
    function On_GossipMenu(unit, event, player)
    
        if (player:IsInCombat() == true) then
        unit:SendChatMessage(12, 0, "I'm afraid I can't help you.")
        else
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(4,"Morphs", 1, 0)
        unit:GossipSendMenu(player)
        end
    end
    
    function On_GossipSelect(unit, event, player, id, intid, code)
    
        if (intid == 1) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Human", 2, 0)
        unit:GossipMenuAddItem(5,"Murloc", 3, 0)
        unit:GossipMenuAddItem(5,"Hogger", 4, 0)
        unit:GossipMenuAddItem(5,"Robot", 5, 0)
        unit:GossipMenuAddItem(5,"Goblin", 6, 0)
        unit:GossipMenuAddItem(5,"Wisp", 7, 0)
        unit:GossipMenuAddItem(5,"Dragon", 8, 0)
        unit:GossipMenuAddItem(5,"Lumberjack", 9, 0)
        unit:GossipMenuAddItem(5,"Tauren", 10, 0)
        unit:GossipMenuAddItem(5,"Worm", 11, 0)
        unit:GossipMenuAddItem(5,"Hydra", 12, 0)
        unit:GossipMenuAddItem(4,"[Next]", 997, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 2) then
        player:SetModel(6074)
        player:GossipComplete()
        end
    
        if (intid == 3) then
        player:SetModel(15395)
        player:GossipComplete()
        end
    
        if (intid == 4) then
        player:SetModel(384)
        player:GossipComplete()
        end
    
        if (intid == 5) then
        player:SetModel(6889)
        player:GossipComplete()
        end
    
        if (intid == 6) then
        player:SetModel(18290)
        player:GossipComplete()
        end
    
        if (intid == 7) then
        player:SetModel(17607)
        player:GossipComplete()
        end
    
        if (intid == 8) then
        player:SetModel(308)
        player:GossipComplete()
        end
    
        if (intid == 9) then
        player:SetModel(741)
        player:GossipComplete()
        end
    
        if (intid == 10) then
        player:SetModel(20618)
        player:GossipComplete()
        end
    
        if (intid == 11) then
        player:SetModel(13009)
        player:GossipComplete()
        end
    
        if (intid == 12) then
        player:SetModel(6737)
        player:GossipComplete()
        end
    
        if (intid == 997) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Defias Bandit", 13, 0)
        unit:GossipMenuAddItem(5,"VanCleef", 14, 0)
        unit:GossipMenuAddItem(5,"Ooze", 15, 0)
        unit:GossipMenuAddItem(5,"Santa!", 16, 0)
        unit:GossipMenuAddItem(5,"Santa's Lil'Helper!", 17, 0)
        unit:GossipMenuAddItem(5,"Dark Iron", 18, 0)
        unit:GossipMenuAddItem(5,"Infernal", 19, 0)
        unit:GossipMenuAddItem(5,"Cow", 20, 0)
        unit:GossipMenuAddItem(5,"Abomonation", 21, 0)
        unit:GossipMenuAddItem(4,"[Demorph]", 998, 0)
        unit:GossipMenuAddItem(4,"[Back to Main Menu]", 999, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 13) then
        player:SetModel(116)
        player:GossipComplete()
        end
    
        if (intid == 14) then
        player:SetModel(2029)
        player:GossipComplete()
        end
    
        if (intid == 15) then
        player:SetModel(4393)
        player:GossipComplete()
        end
    
        if (intid == 16) then
        player:SetModel(13369)
        player:GossipComplete()
        end
    
        if (intid == 17) then
        player:SetModel(15698)
        player:GossipComplete()
        end
    
        if (intid == 18) then
        player:SetModel(7797)
        player:GossipComplete()
        end
    
        if (intid == 19) then
        player:SetModel(10905)
        player:GossipComplete()
        end
    
        if (intid == 20) then
        player:SetModel(2442)
        player:GossipComplete()
        end
    
        if (intid == 21) then
        player:SetModel(12818)
        player:GossipComplete()
        end
    
        if (intid == 998) then
        unit:SendChatMessage(12, 0, "I hate to break it to you... but you must relog to demorph!")
        player:SetModel(0)
        player:GossipComplete()
        end
    
      
    RegisterUnitGossipEvent(55221, 1, "On_GossipMenu")
    RegisterUnitGossipEvent(55221, 2, "On_GossipSelect")
    SQL
    Code:
    INSERT INTO `creature_names` VALUES ('60015', 'Shifty', 'Morph NPC', '0', '0', '4', '0', '3', '0', '0', '23162', '23162', '0', '0', '1', '0', '0', '0');
    INSERT INTO `creature_proto` VALUES ('60015', '100', '100', '35', '1000000', '1000000', '100000', '1', '4224', '100', '10000', '10000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '5', '5', '5', '5', '5', '5', '5', '1', '1', '0', '0', '0', '0', '0', '3', '8', '14', '0', '0', '0', '0', '0', '0', '0', '0');
    Hope someone can use it

    [Release] Morph NPC
  2. #2
    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)
    Nice man. +repx2

  3. #3
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice man! great work hope to see more.

  4. #4
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you guys. Always nice to get good feedback

  5. #5
    fredrik5544's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do i execute it?
    plz help me im noob xD

  6. #6
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Execute the SQL? The SQL is just a query for you to run. The Lua needs to be saved in your scripts folder. Save it as morpher.lua or something along those lines.

  7. #7
    fredrik5544's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do i install npc like this?

  8. #8
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok. Copy and paste the Lua part into notepad. Then save it as morpher.lua. Save it wherever, but you have to put it in the scripts afterwards. After that open up your DB. Create a new query, copy and paste my SQL I posted into the query. After that click run and you should be good to go after a restart. If it doesn't work then open your world config and search for Lua. It should be set at == 0. Change that to == 1 Hope that helps

  9. #9
    The Fear's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jman9368 View Post
    Ok. Copy and paste the Lua part into notepad. Then save it as morpher.lua. Save it wherever, but you have to put it in the scripts afterwards. After that open up your DB. Create a new query, copy and paste my SQL I posted into the query. After that click run and you should be good to go after a restart. If it doesn't work then open your world config and search for Lua. It should be set at == 0. Change that to == 1 Hope that helps
    That helped me too

  10. #10
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad to help out. Should I add that to the first post?

  11. #11
    Lauren's Avatar Member
    Reputation
    14
    Join Date
    Jul 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome mate +Rep

    Edit: Given to much rep I'll rep you tomorrow
    Last edited by Lauren; 10-17-2008 at 04:15 AM.

  12. #12
    fredrik5544's Avatar Member
    Reputation
    5
    Join Date
    Sep 2008
    Posts
    36
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jman9368 View Post
    Ok. Copy and paste the Lua part into notepad. Then save it as morpher.lua. Save it wherever, but you have to put it in the scripts afterwards. After that open up your DB. Create a new query, copy and paste my SQL I posted into the query. After that click run and you should be good to go after a restart. If it doesn't work then open your world config and search for Lua. It should be set at == 0. Change that to == 1 Hope that helps
    Hi!
    When im trying to install it, it says:
    SQL Error: Column Count Doesn't Match Value Count At Row 1
    _____________________________________________________________

    What i have to do? :crap:

  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)
    That makes no sense. Considering you don't 'install' lua scripts. And the SQL error wouldn't be in your lua file. :S

    I live in a shoe

  14. #14
    Gunzarles's Avatar Active Member

    Reputation
    32
    Join Date
    Aug 2007
    Posts
    339
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pff Dublicate ID.... Now i have to do something /cry

    EDIT: When i change the NPC ID then i get a error on that line.. Any ideas on how to fix it?

    EDIT AGAIN: Okay i made the creature_proto myself because it bugged. But now it says no template found. Any ideas now?
    Last edited by Gunzarles; 10-18-2008 at 09:57 AM.

  15. #15
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm... I really don't know. You ran the SQL as a query correct? Should work fine if that is the case. Unless there are recent changes to the DB made by 3.0.2...

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release]Howling's Funserver Pack V3 - Warp Npc, Morph Npc & more added
    By coldmouth in forum World of Warcraft Emulator Servers
    Replies: 77
    Last Post: 06-27-2008, 10:31 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 10:59 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