[Release] DarksTeam MuServer 97d+99i Beta 43.3

I did several tests and discovered that this MuPlayer.exe, which helps you have music in the game, ruins your game resolution

in the first picture and the second picture you will see that in windows mode everything is ok,if I don't use it MuPlayer.exe,I can move windows mode from the left to the right, I have no problems with the resolution

when I use MuPlayer.exe to have music and enter windows mode and move windows mode left or right, the resolution breaks,I don't know how many tests you've done, but anyway, thanks for the help
prost eu, pentru ca ma bag in seama cu toti idiotii....
 
prost eu, pentru ca ma bag in seama cu toti idiotii....
Ce-ți arăt eu și ce înțelegi tu prietene,ți-am arătat că-ți fute rezoluția ceva ce nu cred că știai... La fel și cu bug-ul din tarkan care lam rezolvat este o problemă din move system,tu ai zis că este clientul și defapt era din muserver,o alta chestie care no știai.

Ți-am zis eu că ești idiot ? Ca-să mă faci idiot ? Încearcă să analizezi când cineva te ajută,prost eu că țiam arătat problema și soluția.
 
Last edited:
Hello everyone,
I would need to know how it is possible to trigger the “/reload 3” command by sending the socket to the gameserver or joinserver

I currently use the attached code to send a message in game , equivalent to when a GM types “! Hello players” ( written in yellow in the middle of the screen )

Can you tell me what header to use or what is the correct package and message length to play “/reload 3”?

I also venture the equivalent question for the command “/disconnect playerName”

Thank you to anyone who responds!




PHP:
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class sendMessageInGame extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'message:send {message?}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Send Message in game like "! Hello players"';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $msg = $this->argument('message');

        $host = 'xxx.xxx.xxx.xxx';
        $port = join_server_port;           

        $this->send_msg($host, $port, $msg);

        return 0;
    }

    private function send_msg($host, $port, $msg)
    {
        $header = "C144A10024000000"; // Header
        $msglength = strlen($msg);   

        if ($msglength < 34 && $msglength != 0) {
            $divisor = (34 - $msglength);
            $start_space = $this->int_int_divide($divisor, 2);

            for ($i = 0; $i <= $start_space; $i++) {
                $header .= "20";
            }

            $header .= $this->ascii2hex($msg);

            for ($j = 0; $j <= ($divisor - $start_space); $j++) {
                $header .= "20";
            }
        } else {
            $header .= $this->ascii2hex($msg);
        }

        $header .= "00BED3410000F8BBB90400000000FCBBB904A4FF1A06F8F04100FFFFFFFF"; // Header
        $packet = $this->hex2ascii($header);  // Converti l'intera stringa in ASCII

        // Crea un socket
        $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
        
        if (!$x = @socket_connect($socket, $host, $port)) {
            echo "No access to the Joinserver or Server is down.";
        } else {
            socket_write($socket, $packet, strlen($packet));
            socket_close($socket);
        }
    }

    private function ascii2hex($ascii)
    {
        $hex = '';
        for ($i = 0; $i < strlen($ascii); $i++) {
            $byte = strtoupper(dechex(ord($ascii[$i])));
            $byte = str_repeat('0', 2 - strlen($byte)) . $byte;
            $hex .= $byte . " ";
        }
        $hex = str_replace(" ", "", $hex);
        return $hex;
    }

    private function hex2ascii($hex)
    {
        $ascii = '';
        $hex = str_replace(" ", "", $hex);
        for ($i = 0; $i < strlen($hex); $i = $i + 2) {
            $ascii .= chr(hexdec(substr($hex, $i, 2)));
        }
        return ($ascii);
    }

    private function int_int_divide($x, $y)
    {
        if ($x == 0) return 0;
        if ($y == 0) return false;
        return ($x % $y >= $y / 2) ? (($x - ($x % $y)) / $y) + 1 : ($x - ($x % $y)) / $y;
    }

}
2024-09-22_18-00.png
 
Hello everyone,
I would need to know how it is possible to trigger the “/reload 3” command by sending the socket to the gameserver or joinserver

I currently use the attached code to send a message in game , equivalent to when a GM types “! Hello players” ( written in yellow in the middle of the screen )

Can you tell me what header to use or what is the correct package and message length to play “/reload 3”?

I also venture the equivalent question for the command “/disconnect playerName”

Thank you to anyone who responds!




PHP:
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class sendMessageInGame extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'message:send {message?}';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Send Message in game like "! Hello players"';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        $msg = $this->argument('message');

        $host = 'xxx.xxx.xxx.xxx';
        $port = join_server_port;          

        $this->send_msg($host, $port, $msg);

        return 0;
    }

    private function send_msg($host, $port, $msg)
    {
        $header = "C144A10024000000"; // Header
        $msglength = strlen($msg);  

        if ($msglength < 34 && $msglength != 0) {
            $divisor = (34 - $msglength);
            $start_space = $this->int_int_divide($divisor, 2);

            for ($i = 0; $i <= $start_space; $i++) {
                $header .= "20";
            }

            $header .= $this->ascii2hex($msg);

            for ($j = 0; $j <= ($divisor - $start_space); $j++) {
                $header .= "20";
            }
        } else {
            $header .= $this->ascii2hex($msg);
        }

        $header .= "00BED3410000F8BBB90400000000FCBBB904A4FF1A06F8F04100FFFFFFFF"; // Header
        $packet = $this->hex2ascii($header);  // Converti l'intera stringa in ASCII

        // Crea un socket
        $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
       
        if (!$x = @socket_connect($socket, $host, $port)) {
            echo "No access to the Joinserver or Server is down.";
        } else {
            socket_write($socket, $packet, strlen($packet));
            socket_close($socket);
        }
    }

    private function ascii2hex($ascii)
    {
        $hex = '';
        for ($i = 0; $i < strlen($ascii); $i++) {
            $byte = strtoupper(dechex(ord($ascii[$i])));
            $byte = str_repeat('0', 2 - strlen($byte)) . $byte;
            $hex .= $byte . " ";
        }
        $hex = str_replace(" ", "", $hex);
        return $hex;
    }

    private function hex2ascii($hex)
    {
        $ascii = '';
        $hex = str_replace(" ", "", $hex);
        for ($i = 0; $i < strlen($hex); $i = $i + 2) {
            $ascii .= chr(hexdec(substr($hex, $i, 2)));
        }
        return ($ascii);
    }

    private function int_int_divide($x, $y)
    {
        if ($x == 0) return 0;
        if ($y == 0) return false;
        return ($x % $y >= $y / 2) ? (($x - ($x % $y)) / $y) + 1 : ($x - ($x % $y)) / $y;
    }

}
View attachment 7529

Hello, I advise you not to touch what is already there. If you want something new, you should create another dll that works at the same time, just like I do. You can add more events, more commands, and new systems.
 
  • Like
Reactions: Alexdevil
hello again I come with a new video related to a new bug detected by a player,in the picture you will see the settings that sm has and in the video I will explain how to activate this bug and how to get rid of this bug,and maybe Bro DarkMaster can fix this bug if he wants

Original Settings I didn't change anything

[Fixes]
FixPKBug = 1 // 1 - Fix PK Bug, 0 - dont fix
FixPartyZenBug = 1 // 1 - Fix Party Zen Bug, 0 - dont fix
FixPotionBug = 1 // 1 - Fix Potion Bug, 0 - dont fix
FixLifePlus28 = 1 // 1 - +28, 0 - +16

[SwellOfLife]
Vitality = 100 // Vitality points per percent
Energy = 60 // Energy points per percent
StartTime = 60 // Start time
DurationPointsPerSecond = 10 // Duration points per second

 

Attachments

  • Screen(09_19-19_01)-0000.jpg
    Screen(09_19-19_01)-0000.jpg
    737.2 KB · Views: 8
Last edited:
hello again I come with a new video related to a new bug detected by a player,in the picture you will see the settings that sm has and in the video I will explain how to activate this bug and how to get rid of this bug,and maybe Bro DarkMaster can fix this bug if he wants



What is the problem?