Jump to content

Asheraf

Core Developers
  • Content Count

    252
  • Joined

  • Last visited

  • Days Won

    33

Posts posted by Asheraf


  1. after a little research i found a way to do this (this is not the best way to do it but it works)

    first open ../lib/Flux/LoginServer.php

    search for 

    		elseif (!preg_match('/^(.+?)@(.+?)$/', $email)) {
    			throw new Flux_RegisterError('Invalid e-mail address', Flux_RegisterError::INVALID_EMAIL_ADDRESS);
    		}
    

    add this after it 

    		elseif (eregi('^[a-zA-Z0-9._-]+@[mailionator]+\.[a-zA-Z.]{2,5}$', $email)) {
    			throw new Flux_RegisterError('Invalid e-mail address', Flux_RegisterError::INVALID_EMAIL_ADDRESS);
    		}
    

    then open the files:

    ../modules/account/changemail.php

    ../modules/account/resend.php

    ../modules/account/resetpass.php

    search for

    	elseif (!preg_match('/^(.+?)@(.+?)$/', $email)) {
    		$errorMessage = Flux::message('EmailInvalid');
    	}
    

    add after it 

    	elseif (eregi('^[a-zA-Z0-9._-]+@[mailionator]+\.[a-zA-Z.]{2,5}$', $email)) {
    		$errorMessage = Flux::message('InvalidEmailAddress');
    	}
    

    this will block registration/email changing/resetting password/resending verification email to all email with domain *@mailionator.* you can add hotmail too by ading it to the elseif.


  2. change

    	delitem .currency, .@q[3]; // delete items
    	rentitem .@q[0], .@day * 86400; // rent an items. 86400 = 1 day in seconds
    	callsub ClearBought;
    	end;
    

    into

     

    	delitem .currency, .@q[3]; // delete items
    	rentitem .@q[0], .@day * 86400; // rent an items. 86400 = 1 day in seconds
    	callsub ClearBought;
    	close;
    

  3. conf/battle/client.conf

    // Duration of client's self mute in minutes.
    // Note: Do not enable this, if you enabled commands for players,
    // because the client sees multiple commands in succession as spam.
    // Default: 0 (means disabled)
    client_accept_chatdori: 0
    

  4.  

    Isn't there like a way to choose in your client hex the allowed characters for character creation?

    no need for hexing it's a config in the char-server.conf file

    // Manage possible letters/symbol in the name of charater. Control character (0x00-0x1f) are never accepted. Possible values are:
    // NOTE: Applies to character, party and guild names.
    // 0: no restriction (default)
    // 1: only letters/symbols in 'char_name_letters' option.
    // 2: Letters/symbols in 'char_name_letters' option are forbidden. All others are possibles.
    char_name_option: 0
    
    // Set the letters/symbols that you want use with the 'char_name_option' option.
    // Note: Don't add spaces unless you mean to add 'space' to the list.
    char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
    

  5. 
    

    prontera,150,150,4 script NPC 4_M_RUSKING,{

    if (BaseLevel < 175) {

    mes("You're level is too low to claim the prize");

    close;

    }

    if (!already_claim){

    mes("take those items");

    getitem 12345, 1;

    getitem 12345, 1;

    getitem 12345, 1;

    getitem 12345, 1;

    Zeny += 200000;

    already_claim = 1;

    close;

    } else {

    mes("You're already claimed the prize");

    close;

    }

    }

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.