[Lua] Weather Controler menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Weather Controler

    -=[[Lua]Weather Controler]=-


    Description
    Hi all. I maked these small Lua script. What it do??- heh lil mistic item that can change your weather to: Sunny,Foggy,Raining and Snowing.

    How to work
    Copy this code down change ItemID(1234) or use my item, put it in scripts save as WeatherController.lua and restart the server
    Remember you need to make item or to use my...


    WeatherController.sql
    Code:
    INSERT INTO items (entry, class, subclass, field4, name1, displayid, quality, flags, buyprice, sellprice, inventorytype, allowableclass, allowablerace, itemlevel, requiredlevel, RequiredSkill, RequiredSkillRank, RequiredSpell, RequiredPlayerRank1, RequiredPlayerRank2, RequiredFaction, RequiredFactionStanding, `Unique`, maxcount, ContainerSlots, stat_type1, stat_value1, stat_type2, stat_value2, stat_type3, stat_value3, stat_type4, stat_value4, stat_type5, stat_value5, stat_type6, stat_value6, stat_type7, stat_value7, stat_type8, stat_value8, stat_type9, stat_value9, stat_type10, stat_value10, dmg_min1, dmg_max1, dmg_type1, dmg_min2, dmg_max2, dmg_type2, armor, holy_res, fire_res, nature_res, frost_res, shadow_res, arcane_res, delay, ammo_type, `range`, spellid_1, spelltrigger_1, spellcharges_1, spellcooldown_1, spellcategory_1, spellcategorycooldown_1, spellid_2, spelltrigger_2, spellcharges_2, spellcooldown_2, spellcategory_2, spellcategorycooldown_2, spellid_3, spelltrigger_3, spellcharges_3, spellcooldown_3, spellcategory_3, spellcategorycooldown_3, spellid_4, spelltrigger_4, spellcharges_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4, spellid_5, spelltrigger_5, spellcharges_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5, bonding, description, page_id, page_language, page_material, quest_id, lock_id, lock_material, sheathID, randomprop, randomsuffix, block, itemset, MaxDurability, ZoneNameID, mapid, bagfamily, TotemCategory, socket_color_1, unk201_3, socket_color_2, unk201_5, socket_color_3, unk201_7, socket_bonus, GemProperties, ReqDisenchantSkill, ArmorDamageModifier, itemstatscount)
    VALUES (1234, 0, 8, -1, "Weather Changer", 61330, 3, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Strange magic is flying around this thing.Lunar Scriptors", 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10);
    WeatherController.lua
    Code:
    -=[LunarSCR-Onlykl]=-
    
    
    local Item_ID = 1234 -- Change that to your Item ID ;) 
    function Item_Trigger(item, event, player)
    Item_menu(item, player)
    end
    
    function Item_menu(item, player)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(1, "|cffff0000Weather Control", 1, 0)
    item:GossipSendMenu(player)
    end
    end
    
    function OnSelect(item, event, player, id, intid, code)
    if (intid == 1) then
    item:GossipCreateMenu(99, player, 0)
    item:GossipMenuAddItem(5, "|cffffff00Sunny", 2, 0)
    item:GossipMenuAddItem(5, "|cff888888Foggy", 3, 0)
    item:GossipMenuAddItem(5, "|cFF00FFFFRaining", 4, 0)
    item:GossipMenuAddItem(5, "|cFFFFFAF0Snowing", 5, 0)
    item:GossipMenuAddItem(2, "|cffff0000<- Back", 100, 0)
    item:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    player:SetPlayerWeather(0, 1)
    player:SendBroadcastMessage("Weather Changed to Sunny.")
    player:GossipComplete()
    end
      
    if(intid == 3) then
    player:SetPlayerWeather(1, 1)
    player:SendBroadcastMessage("Weather Changed to Foggy.")
    player:GossipComplete()
    end
     
    if(intid == 4) then
    player:SetPlayerWeather(2, 1)
    player:SendBroadcastMessage("Weather Changed to Raining.")
    player:GossipComplete()
    end
    
    if(intid == 5) then
    player:SetPlayerWeather(8, 1)
    player:SendBroadcastMessage("Weather Changed to Snowing.")
    player:GossipComplete()
    end
    end
    
    RegisterItemGossipEvent("Item_ID", 1, "Lunar_Trigger")
    RegisterItemGossipEvent("Item_ID", 2, "On_LunarSelect")


    [Lua] Weather Controler
  2. #2
    I Hypnotoad I's Avatar Contributor
    Reputation
    147
    Join Date
    Aug 2007
    Posts
    873
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this Serverside or clientside?

    If serverside -- EPIC.


    Dragon[Sky] can get into our signatures, AND our pants.



  3. #3
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by I Hypnotoad I View Post
    Is this Serverside or clientside?

    If serverside -- EPIC.
    He uses a command to set the players weather (client side), but there is also a command to set zone weather which is server side.

  4. #4
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Funny you released this shortly after my Infinity Stone.
    Lua pastebin - collaborative debugging tool

    Everything is in the exact same order, same names.
    "Weather Control"
    item:GossipCreateMenu(3434, player, 0)
    item:GossipMenuAddItem(5, "Sunny", 203, 0)
    item:GossipMenuAddItem(5, "Foggy", 204, 0)
    item:GossipMenuAddItem(5, "Raining", 205, 0)
    item:GossipMenuAddItem(5, "Snowing", 206, 0)
    item:GossipMenuAddItem(2, "<- Back", 202, 0)
    item:GossipSendMenu(player)

    Oh what do you know, you've used the exact same display icons, 5, 5, 5, 5, 2.
    The order is the same too, Sunny, Foggy, Raining, Snowing and <- Back.
    I noticed you skipped the Sandstorm Option out like I did too.
    You're messages on use are the exact same too.
    You've used the exact same weather density than me, you could have chose any density, but you've used the same.

    At first I thought you Lunar Scripters were good, but you can't be that good can you? After all, i've only been learning Lua for the last few days now and you're copying of my work.
    All you have done is changed a few numbers and added some Color to the script and renamed the functions.

    This is something I would have expected from Ac-Web users, but not MMOwned users, no, no way. I'm really digusted right now.
    Last edited by Ground Zero; 12-22-2009 at 07:36 PM.

  5. #5
    Hezpadooka's Avatar Active Member
    Reputation
    15
    Join Date
    May 2008
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol.. busted.

  6. #6
    2dgreengiant's Avatar ★ Elder ★


    Reputation
    1190
    Join Date
    Feb 2007
    Posts
    7,129
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /closed

    This is closed pending investigation
    If you need me you have my skype, if you don't have my skype then you don't need me.

Similar Threads

  1. [Lua] Player & Admin Event Control Panel
    By Ground Zero in forum WoW EMU General Releases
    Replies: 7
    Last Post: 03-23-2010, 10:35 PM
  2. Weather Controls
    By UnknOwned in forum WoW Memory Editing
    Replies: 4
    Last Post: 04-14-2009, 04:37 AM
  3. Talk to Opposing Faction! (No hacks or Mind Controlling needed!)
    By janzi9 in forum World of Warcraft Exploits
    Replies: 51
    Last Post: 04-06-2007, 01:13 PM
  4. Killing people in towns with everyones faviort spell mind control
    By hannible in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 10-13-2006, 12:14 PM
  5. Permanent Mind Control
    By Matt in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 06-10-2006, 12:06 AM
All times are GMT -5. The time now is 10:00 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