[RELEASE] SnowStorm [Composer / Outgoing Ids Upgraded] [Fix Structure] [Not 100%]

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Hello, I am trylix and today I bring the updated Ids of the snowstorm and the Fix to the structure of the beginning of the game ...


Updating Ids:
Go to Server\Silverwave Emulator\Messages\Headers\Composers.cs , search for: //not updated since Plus-2013
Substitute //not updated since Plus-2013 to internal static int SnowEnteredArena = 2169; by the code below.


Composers Ids:
Code:
        internal static int SSGameWindow = 342;//trylix       
        internal static int Game2AccountGameStatusMessageComposer = 1611;//trylix
        internal static int SnowUserLeft = 1353;//trylix
        internal static int SnowStageRunning = 2735;//trylix
        internal static int SnowUserJoined = 3639;//trylix
        internal static int SnowGameStarted = 798;//trylix
        internal static int SnowEnterArena = 3639;//trylix
        internal static int SnowInArenaQueue = 934;//trylix
        internal static int SnowStageStillLoad = 3848;//trylix
        internal static int SnowStageStarting = 431;//trylix
        internal static int SnowStartNewGame = 1691;//trylix
        internal static int SnowOpenQuickJoin = 2608;//trylix
        internal static int SnowTalk = 2936;//trylix
        internal static int SnowStageLoad = 2331;//trylix
        internal static int SnowGameStatus = 1187;//trylix
        internal static int SnowStartLobbyCounter = 616;//trylix
        internal static int SnowStopLobbyCounter = 3856;//trylix


        internal static int SnowEnteredArena = 3441;//trylix

Fix structure:
Go to Server\Silverwave Emulator\Messages\Requests\Games\SnowStorm.cs , search for: public void JoinSnowGame()
Replace the entire public void by the public void below:

Code:
public void JoinSnowGame()        {
            SnowGame Game = SilverwaveEnvironment.GetGame().GetSnowStorm().FindGame(Session);




            Response.Init(Outgoing.SnowOpenQuickJoin);
            Response.AppendInt32(-1);
            Response.AppendString("SnowStorm level " + Game.Map.Id);
            Response.AppendInt32(0);
            Response.AppendInt32(Game.Map.Id);
            Response.AppendInt32(2);
            Response.AppendInt32(10);
            Response.AppendString(Game.GameHost);
            Response.AppendInt32(0);
            Response.AppendInt32(Game.Players.Count);




            foreach (SnowPlayer Player in Game.Players.Values)
            {
                Response.AppendInt32(Player.GetHabbo().Id);
                Response.AppendString(Player.GetHabbo().Username);
                Response.AppendString(Player.GetHabbo().Look);
                Response.AppendString(Player.GetHabbo().Gender.ToLower());
                Response.AppendInt32(-1);
                Response.AppendInt32(0);
                Response.AppendInt32(0);
                Response.AppendInt32(0);
            }
            SendResponse();




            if (Game.Players.Count >= 2 && Game.NextTimeAction != 0)
            {
                Response.Init(Outgoing.SnowStartLobbyCounter);
                Response.AppendInt32(Game.NextTimeAction - SilverwaveEnvironment.GetUnixTimestamp());
                Game.SendToPlayers(Response);
            }
        }
Credits:
Me / trylix - Fix and Update IDs

Errosr?
 

Users who are viewing this thread

Top