Jump to content

SøηGøku®

Inactive Member
  • Posts

    148
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by SøηGøku®

  1. Hey guys.
    Does anyone else have the problem with the ports on freebsd servers?
    I've got this error trying to do the make commands on freebsd: "/usr/ports/Mk/bsd.port.mk"
    I can't install the compat7x or 6x so I don't the libs necessary to start my Metin2 server.

    Can anyone help me solve this?

  2. Hi guys.
    I can't register at my own website. I don't see where the error comes from.
    I will leave you here my script. So that you can help me.

    <?PHP
        
        require ('config/config.inc.php');
        
        if(isset($_POST['register'])) {    
            
            if(empty($_POST['benutzername']) && empty($_POST['passwort']) && empty($_POST['email']) && empty($_POST['lieblingsfarbe'])) {
                echo '<p>Bitte alle Felder ausfüllen!</p>';
            }
            elseif(preg_match('/^a-zA-Z0-9@-._ÖöÄäÜü/', $_POST['benutzername']) && preg_match('/^a-zA-Z0-9@-._ÖöÄäÜü/', $_POST['passwort']) &&
                    preg_match('/^a-zA-Z0-9@-._ÖöÄäÜü/', $_POST['email']) && preg_match('/^a-zA-Z0-9@-._ÖöÄäÜü/', $_POST['lieblingsfarbe'])) {
                echo '<p>Es ist nur: a-Z,0-9,@,.,_,- erlaubt!</p>';
            }
            else {
                $benutzername = mysqli_real_escape_string($con, $_POST['benutzername']);
                $passwort = mysqli_real_escape_string($con, $_POST['passwort']);
                $email = mysqli_real_escape_string($con, $_POST['email']);
                $antwort = mysqli_real_escape_string($con, $_POST['lieblingsfarbe']);
            }
            
            $sql = "INSERT INTO account.account
                    (login, password, social_id, email, create_time, question1, answer1, status, safebox_expire, autoloot_expire, coins)
                    VALUES
                    ('" . $benutzername . "', PASSWORD('" . $passwort . "'), '" . $loeschcode . "', '" . $email . "', '" . $zeit . "', '" . $frage . "',
                    '" . $antwort . "', '" . $status . "', '" . $date . "', '" . $date . "', '" . $registercoins . "')";
            $qry = mysqli_query($con, $sql);
        
            if($qry) {
                echo '<p id="nachricht" style="color:green;">Conta criada com sucesso!</p>';
            }
            else {
                echo '<p id="nachricht" style="color:red;">Registo falhou!</p>';
            }
        }
    ?>

  3. Guys this anti_exp ring is very very dangerous.

    When the player use the exp ring before a level up like 10.9k exp of 11k exp and he activate the exp ring.

    After a kill he gains the next level and the exp will be setted by the quest.

    After this he kills again a mob and have the (- exp + the next exp).

     

    You have to freeze the exp function of the character like this (not the full code):

    void CHARACTER::SetExp(DWORD exp)	{ 
    	if(!ExpDisabled()) {
    		m_points.exp = exp;	
    	}
    }

    Kind regards

    Sphinx

    Could you release the full code?
    I want the ring when used to set the exp to 0 without receiving any exp.
    And when used again, give to the player the exp he had before.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.