Jump to content

Ta®oS™

Members
  • Posts

    190
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About Ta®oS™

Profile Information

  • Gender
    Male
  • Location
    MyHouse
  • Interests
    HaHa

Ta®oS™'s Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. otan mpenw sto valakas zone mou deinw 2 skill. to danger area kai to flame molis feuvgw apo to valakas zone to danger area feuvgei alla to flame menei gia panta pws mporw na to diorthoso auto ? exo l2jfrozen 1004 how i can delete the flame skill on valakas zone ?
  2. http://www.maxcheaters.com/topic/175001-share-enchant-config-for-acis/ ksana ftiaksw gia to acis re megale
  3. pvp skill reward. sta 100pvp na pairneis ena skill san reward
  4. i have add this event http://www.maxcheaters.com/topic/178670-high-rate-event-l2gold-event/ and the commands //darkopen //darkclose dont working . on xml admin_commands_rights i have register the commands. on admincommandhandler.java how to register the commands?
  5. i have add this code ### Eclipse Workspace Patch 1.0 #P aCis_gameserver Index: java/net/sf/l2j/gameserver/model/actor/L2Character.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/L2Character.java (revision 16) +++ java/net/sf/l2j/gameserver/model/actor/L2Character.java (working copy) @@ -136,6 +136,17 @@ */ public abstract class L2Character extends L2Object { + private boolean _isBuffProtected = false; //Protect From Debuffs + public final void setIsBuffProtected(boolean value) + { + _isBuffProtected = value; + } + + public boolean isBuffProtected() + { + return _isBuffProtected; + } + public static final Logger _log = Logger.getLogger(L2Character.class.getName()); private Set<L2Character> _attackByList; Index: java/net/sf/l2j/gameserver/handler/skillhandlers/Continuous.java =================================================================== --- java/net/sf/l2j/gameserver/handler/skillhandlers/Continuous.java (revision 16) +++ java/net/sf/l2j/gameserver/handler/skillhandlers/Continuous.java (working copy) @@ -89,6 +89,15 @@ if (target.getFirstEffect(L2EffectType.BLOCK_BUFF) != null) continue; + // Anti-Buff Protection prevents you from getting buffs by other players + if (activeChar instanceof L2PcInstance && target != activeChar && target.isBuffProtected() && !skill.isHeroSkill() + && (skill.getSkillType() == L2SkillType.BUFF + || skill.getSkillType() == L2SkillType.HEAL_PERCENT + || skill.getSkillType() == L2SkillType.MANAHEAL_PERCENT + || skill.getSkillType() == L2SkillType.COMBATPOINTHEAL + || skill.getSkillType() == L2SkillType.REFLECT)) + continue; + // Player holding a cursed weapon can't be buffed and can't buff if (!(activeChar instanceof L2ClanHallManagerInstance) && target != activeChar) { Index: java/net/sf/l2j/gameserver/skills/effects/EffectDeflectBuff.java =================================================================== --- java/net/sf/l2j/gameserver/skills/effects/EffectDeflectBuff.java (revision 0) +++ java/net/sf/l2j/gameserver/skills/effects/EffectDeflectBuff.java (revision 0) @@ -0,0 +1,82 @@ +package net.sf.l2j.gameserver.skills.effects; + +import net.sf.l2j.gameserver.model.L2Effect; +import net.sf.l2j.gameserver.templates.skills.L2EffectType; +import net.sf.l2j.gameserver.templates.skills.L2SkillType; +import net.sf.l2j.gameserver.network.SystemMessageId; +import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; +import net.sf.l2j.gameserver.skills.Env; + +/** +* @author Java +*/ +public final class EffectDeflectBuff extends L2Effect +{ + /** + * @param env + * @param template + */ + public EffectDeflectBuff(Env env, EffectTemplate template) + { + super(env, template); + } + + /* + * (non-Javadoc) + * + * @see net.sf.l2j.gameserver.model.L2Effect#getEffectType() + */ + @Override + public L2EffectType getEffectType() + { + return L2EffectType.PREVENT_BUFF; + } + + /* + * (non-Javadoc) + * + * @see net.sf.l2j.gameserver.model.L2Effect#onActionTime() + */ + @Override + public boolean onActionTime() + { + // Only cont skills shouldn't end + if(getSkill().getSkillType() != L2SkillType.CONT) + return false; + + double manaDam = calc(); + + if(manaDam > getEffected().getCurrentMp()) + { + SystemMessage sm = new SystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP); + getEffected().sendPacket(sm); + return false; + } + + getEffected().reduceCurrentMp(manaDam); + return true; + } + + /* + * (non-Javadoc) + * + * @see net.sf.l2j.gameserver.model.L2Effect#onStart() + */ + @Override + public boolean onStart() + { + getEffected().setIsBuffProtected(true); + return true; + } + + /* + * (non-Javadoc) + * + * @see net.sf.l2j.gameserver.model.L2Effect#onExit() + */ + @Override + public void onExit() + { + getEffected().setIsBuffProtected(false); + } +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/network/serverpackets/SystemMessage.java =================================================================== --- java/net/sf/l2j/gameserver/network/serverpackets/SystemMessage.java (revision 16) +++ java/net/sf/l2j/gameserver/network/serverpackets/SystemMessage.java (working copy) @@ -110,7 +110,7 @@ private SMParam[] _params; private int _paramIndex; - private SystemMessage(final SystemMessageId smId) + public SystemMessage(final SystemMessageId smId) { final int paramCount = smId.getParamCount(); _smId = smId; Index: java/net/sf/l2j/gameserver/templates/skills/L2EffectType.java =================================================================== --- java/net/sf/l2j/gameserver/templates/skills/L2EffectType.java (revision 16) +++ java/net/sf/l2j/gameserver/templates/skills/L2EffectType.java (working copy) @@ -80,5 +80,6 @@ WARP, SIGNET_GROUND, - SIGNET_EFFECT + SIGNET_EFFECT, + PREVENT_BUFF } \ No newline at end of file #P aCis_datapack Index: data/xml/skills/0100-0199.xml =================================================================== --- data/xml/skills/0100-0199.xml (revision 11) +++ data/xml/skills/0100-0199.xml (working copy) @@ -949,10 +949,14 @@ <add order="0x40" stat="cAtkAdd" val="#crit"/> </for> </skill> - <skill id="194" levels="1" name="Lucky"> + <skill id="194" levels="1" name="Anti-Buff"> + <!-- Blocks unwanted buffs. --> <set name="target" val="TARGET_SELF"/> - <set name="skillType" val="LUCK"/> - <set name="operateType" val="OP_PASSIVE"/> + <set name="skillType" val="CONT"/> + <set name="operateType" val="OP_TOGGLE"/> + <for> + <effect count="0x7fffffff" name="DeflectBuff" time="3" val="0"/> + </for> </skill> <skill id="195" levels="2" name="Boost Breath"> <table name="#breath"> 180 300 </table> i have delete the skill LUCKY with the same ID i have set AutoLearnSkills=True and i have this error storeSkill() couldn't store new skill. It's null type. and one problem dont working the oly rank's i use acis 300revision
  6. whats is this error ? --------------------------------------------------------------------=[ Zones ] Loading zones... com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@af57ffa -- Ac quisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allow ed acquisition attempts (0). Last acquisition attempt exception: Communications link failure The last packet successfully received from the server was 10.075 milliseconds ag o. The last packet sent successfully to the server was 10.075 milliseconds ago. Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePo ol@1ac2122c is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests. ZoneManager: loaded 23 zones classes and 1016 zones. i use acis
  7. i try to adapt this code for acis http://www.maxcheaters.com/topic/134688-bug-report-manager/ and i have one error on String html = HtmCache.getInstance().getHtm(player.getHtmlPrefix(), htmlLoc); any help ?
  8. aha and whats its this ,0 ? i have add and the error removed now i have here now i have error on teleToLocation on this line p.teleToLocation(Config.STRIDER_RACE_X, Config.STRIDER_RACE_Y, Config.STRIDER_RACE_Z, true);
×
×
  • Create New...