/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
#---------------------------------------------------------------------------------------------------------------------------------------------------
# SETTINGS
#---------------------------------------------------------------------------------------------------------------------------------------------------
#For more than 3 subclasses, you must increase the variable number into the SQL and add to the database.
#inside the sql you will find some variables named SubclassidX. Just change the "X" increasing the number.
#This value shouldn't be changed if you don't want to increase the subclasses number beyond 3.
#Increase or decrease the "maxsubsindb" value without make these changes, will cause errors. Be carefull!.
maxsubsindb = 1
# Subclasses number that can be added. Must be less than or equal to "maxsubsindb".
SubsNumber = 1
# True, allows add stackable subclasses in every original game subclass (Mainclass and every retails).
# False, allows add stackable subclasses in only one original game subclass or main class
AllowMultiSubs = False
# True, allows any stackable subclass. False, allows add your own race's subclasses only.
AllowAllSubs = False
#This option work if "AllowAllSubs = False", Also you need to be using a original game subclass (Retail) to get available this.
#True, allow add a subclass with the same main class's race. False, allow add a subclass with the same Retail's race.
AllowMutantRetail = False
#True, allows delete the main class or any subclass added. False, allow to delete added subclasses only. Default: False
AllowDelMainClass = False
# Minimum Level to add a subclass. Default: 76
MinLevel = 76
#True, allows add subsclasses if the character is a Noblesse only. False, otherwise. Default: False
AllowOnlyNobles = False
#True, allow to add subclass or any other actions if you have the required items only. False, otherwise
ReqItems = False
#Required Item to switch between the subclasses. Default: 57 (Adena)
#Required items number.
Item1_Req = 57
Item1_Num = 1000000
#Required Item to add a subclass.
#Required items number.
Item2_Req = 4356
Item2_Num = 5000
#Required Item to delete subclasses.
#Required items number.
Item3_Req = 4356
Item3_Num = 1000
# True: Change level after add a subclass
# False: Not to change level after add a subclass. Default: True
DecLevel= True
# True: HTML will show 3rd Class trasfer to choose, also it disallow add subclasses if the characters haven't added 3rd job.
# False: HTML Will show 2nd Class trasfer to choose, also it disallow add subclasses if the characters haven't added 2nd or 3rd job.
AllowThirdJob = False
#Level at which the character will be changed after add a subclass. Default: 40
NewLevel= 40
# True: The user must wait a while before take any action. Default: True
# False: The user can do any action without time constraints. Not recommended
Block = True
#Blocking time in seconds before take any action.
BlockTime = 20