World State menu

Shout-Out

User Tag List

Thread: World State

Results 1 to 4 of 4
  1. #1
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    World State

    Hello Ownedcore,

    I am currently in the processes of scripting Battle for the Undercity. It's going really well but I have just encountered a problem. I want to include World States into my battle for the undercity script so it can be as blizlike as possible. Once finding out that battle for the undercity used world states I began rapidly googling to try and find a way to porperly use them.

    From searching I found this guide on world packets: http://www.************/forums/showt...ow-to-use-them

    And from there on I began scripting, on picking up the quest for battle of the undercity I have the follow functions occur;

    local SMSG_INIT_WORLD_STATES = 0x2C2

    function Beginbattle(plrs)
    for _,plrs in pairs(DAL[id].VAR.KT:GetInRangePlayers()) do
    Undercitybattleupdate(plrs)
    end
    end


    function Undercitybattleupdate(plrs)
    local pack = LuaPacket:CreatePacket(SMSG_INIT_WORLD_STATES, 1
    pack:WriteULong(60 -- Map
    pack:WriteULong(0) -- Zone
    pack:WriteULong(0)
    pack:WriteUShort(1)
    pack:WriteULong(3962) -- ID
    pack:WriteULong(1) -- Value
    plrs:SendPacketToPlayer(pack)
    end

    This message should display, The Alliance is battling through the Sewers!

    I made the Undercity an instanced zone using the violethold map and I changed the map data to 608 in WorldStateUI.dbc. Does anyone have any idea about what could be causing this issue? I followed the guide and used other scripts as guides as well. However, my world packet does not about to be working. When testing it out on my server I get not errors the packets simply don't show up on my screen.

    Thanks!

    World State
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Use code tags:

    [-code] [/-code] without the -.

    Map etc doesn't actually matter as long as the data matches the DBC data.

    I actually use it in this very old script: https://github.com/stoneharry/Misc-W...Arugal.lua#L60

  3. #3
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Use code tags:

    [-code] [/-code] without the -.

    Map etc doesn't actually matter as long as the data matches the DBC data.

    I actually use it in this very old script: https://github.com/stoneharry/Misc-W...Arugal.lua#L60
    So any ideas on why this wouldn't be working then? Did i miss something?

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xmaily View Post
    So any ideas on why this wouldn't be working then? Did i miss something?
    Perhaps you could debug based on the information I provided?

    Originally Posted by Stoneharry
    Map etc doesn't actually matter as long as the data matches the DBC data.
    So remove your DBC edits and put in the original DBC data.

    Originally Posted by Stoneharry
    I actually use it in this very old script: ...
    So maybe take that working code out and see if it works for you? If it does, then you know it is something specific with your packets, if it doesn't it is something else.

    Also if you compare my code to your code you only send: SMSG_INIT_WORLD_STATES.

    SMSG_UPDATE_WORLD_STATE may also need to be sent.

Similar Threads

  1. [Selling] The Secret World Beta Key ( 24/7 Access to the Beta State of the Game )
    By MightyBeagle in forum General MMO Buy Sell Trade
    Replies: 5
    Last Post: 05-10-2012, 08:39 PM
  2. Play World of Warcraft for Free
    By Matt in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 10-26-2006, 04:25 PM
  3. 8 World of Warcraft Guide Packs (Gold, Profs and Skills)
    By Matt in forum World of Warcraft Guides
    Replies: 17
    Last Post: 09-23-2006, 10:53 AM
  4. World of Warcraft WoW!Bot (GetALifeBot) 0.61 for WoW 1.9.4 + FishBot
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 43
    Last Post: 04-18-2006, 04:55 AM
  5. World of Warcraft Bot (GetALifeBot) 0.57 working with 1.9.4
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 7
    Last Post: 03-07-2006, 09:43 PM
All times are GMT -5. The time now is 12:26 PM. 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