Morph NPC Cost Money? menu

User Tag List

Results 1 to 8 of 8
  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)

    Morph NPC Cost Money?

    How do I make my Morph's in my morph NPC cost money? Like what do I need to add to my LUA. +Rep for anyone who helps

    Morph NPC Cost Money?
  2. #2
    _DEFiANT's Avatar Member
    Reputation
    44
    Join Date
    Aug 2008
    Posts
    240
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be a lot easier if you supplied the LUA file

    Need help? add me on MSN - [email protected]
    Have questions? email me - [email protected]

  3. #3
    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 sorry about that. Here you go.
    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,"Benny Questgiver", 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,"Merciles Dragon", 8, 0)
        unit:GossipMenuAddItem(5,"Lumberjack", 9, 0)
        unit:GossipMenuAddItem(5,"Tauren", 10, 0)
        unit:GossipMenuAddItem(5,"Worm", 11, 0)
        unit:GossipMenuAddItem(5,"A 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,"Rick", 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")

  4. #4
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not possible, as far as I know.
    It's only do-able in C++.

  5. #5
    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)
    Well that is quite depressing.

  6. #6
    Misorize's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, You can only do it in C++

  7. #7
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just curiously not positive it would work but maybe you could use a Unit:getitemcount and have them require an item that sells off a vendor for the amount you want the Morphs to cost.. Then have it be like a

    if (intid == 2) then
    player:getitemcount"itemid"
    If = 1 then
    player:removeitem"itemid"
    player: SetModel(6074)


    Im not positive that would work.. Just saying it Might LOL might require a lot of alteration im not that advance at Gossip Lua yet

  8. #8
    Functions's Avatar Banned
    Reputation
    10
    Join Date
    Dec 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a little

    int id;

    int Morph(id)
    {
    if(usergold < morphcost)
    {
    User.form = id;
    }
    return morphcost - usergold;
    }

    I did that real fast that doesnt work but thats how it could possibly work.

Similar Threads

  1. Replies: 15
    Last Post: 07-22-2008, 07:38 AM
  2. Vendoring items cost money!?
    By llamafood in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 06-29-2008, 09:07 AM
  3. [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
  4. Morph npc
    By gurwinders in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 03-18-2008, 10:53 PM
  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 02:15 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search