/* * 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; } } } } }
6.: Compiling
java\net\sf\l2j\gameserver\handler\itemhandlers\
case 1539: // greater_healing_potion, xml: 2037
if (!isEffectReplaceable(activeChar, L2Effect.EffectType.HEAL_OVER_TIME, itemId))
return;
res = usePotion(activeChar, 2037, 1);
break;
case 728: // Mana potek
if (!isEffectReplaceable(activeChar, L2Effect.EffectType.HEAL_OVER_TIME, itemId))
return;
res = usePotion(activeChar, 9009, 1);
break;
gameserver/data/stats/skillsI otwieramy plik:
9000-9099.xml
</skill>
</list>
<skill id="9009" levels="1" name="Squash Seed">
<set name="power" val="0.0"/>
<set name="target" val="TARGET_SELF"/>
<set name="hitTime" val="1500"/>
<set name="skillType" val="MPHOT"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="castRange" val="-1"/>
<set name="effectRange" val="-1"/>
<set name="buffDuration" val="20000"/>
<set name="isPotion" val="true"/>
<for>
<effect count="4" name="ManaHealOverTime" time="5" val="1.5" stackOrder="1.5" stackType="MpRecover"/>
</for>
</skill>
AllowManaPoitions=True/False
Niedziala to w ogóle sa inne pliki servera