Multifunctional NPC, change the weather and your gender with one button! menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Daimyo2704's Avatar Member
    Reputation
    37
    Join Date
    Jan 2009
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multifunctional NPC, change the weather and your gender with one button!

    Code:
    --[[
           Multi functional NPC script.
           By Wolferine. Do not remove these credits, or claim this to be yours.
           
           WARNING:THIS SCRIPT REQUIRES LUAHYPARC!
    ]]
    
    local NPC_ID = 11111
    
    
    function MultiGossipOnTalk(pUnit, Event, player)
           pUnit::GossipCreateMenu(100, player, 0)
           pUnit:GossipMenuAddItem(0, "Change Gender.", 1, 0)
           pUnit:GossipMenuAddItem(0, "Reset Talents.", 2, 0)
           pUnit:GossipMenuAddItem(0, "I would like to see my bank.", 3, 0)
           PUnit:GossipMenuAddItem(0, "Remove Ressurection sickness.", 4, 0)
           pUnit:GossipMenuAdditem(0, "Set weather: Sunny.", 5, 0)
           pUnit:GossipMenuAddItem(0, "Set weather: Fog.", 6, 0)
           pUnit:GossipMenuAddItem(0, "Set weather: Rain.", 7, 0)
           pUnit:GossipMenuAddItem(0, "Set weather: Heavy rain.", 8, 0)
           pUnit:GossipMenuAddItem(0, "Set weather: Snow.", 9, 0)
           pUnit:GossipMenuAddItem(0, "Set weather: Sand Storm.", 10, 0)
           pUnit:GossipMenuAddItem(0, "Never mind.", 11, 0)
           pUnit:GossipSendMenu(player)
    end
    
    function MultiGossiponselect(pUnit, Event, player, id, intid, code, pMisc)
            if (intid == 1) then
                    if (player:GetGender() == 0) then
                            player:SetGender(1)
                            player:SendBroadcastMessage("Gender set to Female, please relog to take effect.")
                            Unit:GossipComplete
    else
                    if (player:GetGender() == 1) then
                            player:SetGender(0)
                            player:SendBroadcastMessage("Gender set to Male, please relog to take effect.")
                            Unit:GossipComplete
                    end
            end
    end             
    
            if (intid == 2) then
                    player:ResetTalents()
                    player:SendBroadCastMessage("Talents reset")
                    pUnit:GossipComplete()
             end
    
            if (intid == 3) then
                    player:SendBankWindow(unit)
                    pUnit:GossipComplete()
             end
    
    if (intid == 4) then
                    if (player:HasAura(15007) == true) then
                            player:SendBroadcastMessage("Resurrection Sickness has been removed.")
                            player:RemoveAura(15007)
                            Unit:GossipComplete()
                    else
                            player:SendBroadcastMessage("You do not have Resurrection Sickness!")
                            Unit:GossipComplete()
                    end
            end
    
    if (intid == 5) then
                    player:SetPlayerWeather(0, 1)
                    pUnit:GossipComplete()
            end
    
    if (intid == 6) then
                    player:SetPlayerWeather(1, 1)
                    pUnit:GossipComplete()
            end
    
    if (intid == 7) then
                    player:SetPlayerWeather(2, 1)
                    pUnit:GossipComplete()
            end
    
    if (intid == 8) then
                    player:SetPlayerWeather(4, 1)
                    pUnit:GossipComplete()
            end
    
    if (intid == 9) then
                    player:SetPlayerWeather(8, 1) 
                    pUnit:GossipComplete()
           end
    
    if (intid == 10) then
                    player:SetPlayerWeather(16, 1)             
                    pUnit:GossipComplete()
           end
    
    if (GetLuaEngine() ~= "LuaHypArc") then --we gotta make sure they're using LuaHypArc!
            print("LuaEngine: Did not load 'Multifunctional - NPC' script - LuaHypArc not installed.")
            print("LuaEngine: Please visit http://luahyparc.zapto.org/ for more information.")
            end
    end
    
    RegisterUnitGossipEvent(NPC_ID, 1, "MultiGossipOnTalk")
    RegisterUnitGossipEvent(NPC_ID, 2, "MultiGossiponselect")
    What does it do?

    - It changes your gender
    - It changes your personal weather
    - Resets your talents
    - Removes ress sickness
    - It shows your bank

    I hope you like it.

    Multifunctional NPC, change the weather and your gender with one button!
  2. #2
    Daimyo2704's Avatar Member
    Reputation
    37
    Join Date
    Jan 2009
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    37 views but no replies...

  3. #3
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looking nice, great work Gz on no leecher.

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  4. #4
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good work on this.. did not know that you could change the weather throw Lua :P but nice work and +Rep X2

Similar Threads

  1. Change the color and the name of your items link
    By Kali_ in forum Diablo 3 Exploits
    Replies: 4
    Last Post: 06-25-2012, 10:11 AM
  2. [Guide] Change the size of your mount
    By wrigley in forum WoW ME Tools & Guides
    Replies: 19
    Last Post: 11-15-2007, 11:34 PM
  3. change the name of your trash can
    By Elephant in forum World of Warcraft General
    Replies: 2
    Last Post: 09-30-2007, 10:33 AM
  4. Changing the Order of your Characters on the select screen
    By arewin in forum World of Warcraft General
    Replies: 4
    Last Post: 06-03-2007, 12:53 PM
  5. Change the text on your start button!
    By TwiceoveR in forum Community Chat
    Replies: 3
    Last Post: 02-01-2007, 09:15 PM
All times are GMT -5. The time now is 03:11 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