Jump to content

Recommended Posts

Posted

This is a command for buffs like .fighterbuff or .magebuff ...!!

 

Go to gameserver/handler/voicecommandhandlers and create one file like Buffs.java

 

And put the follow code inside the file;

 

/* This program is free software; you can redistribute it and/or modify */
package com.l2jfree.gameserver.handler.voicedcommandhandlers;

import javolution.util.FastList;
import com.l2jfree.gameserver.datatables.BuffTemplateTable;
import com.l2jfree.gameserver.handler.IVoicedCommandHandler;
import com.l2jfree.gameserver.model.L2Skill.SkillType;
import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfree.gameserver.network.SystemMessageId;
import com.l2jfree.gameserver.network.serverpackets.MagicSkillUse;
import com.l2jfree.gameserver.network.serverpackets.SystemMessage;
import com.l2jfree.gameserver.templates.L2BuffTemplate;

/** 
* @author v
* 
*/
public class Buffz implements IVoicedCommandHandler
{
    //private static final Log _log = LogFactory.getLog(Wedding.class);
    private static String[] _voicedCommands = { "fighterbuff","magebuff" };

    /* (non-Javadoc)
     * @see com.l2jfree.gameserver.handler.IUserCommandHandler#useUserCommand(int, com.l2jfree.gameserver.model.L2PcInstance)
     */
    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
    {
        if(activeChar!=null)
        {
        	FastList<L2BuffTemplate> _templateBuffs = new FastList<L2BuffTemplate>();
            
            boolean _wasInvul=false;
            
            if(command.startsWith("fighterbuff"))
            	_templateBuffs = BuffTemplateTable.getInstance().getBuffTemplate(98);
            else
            	_templateBuffs = BuffTemplateTable.getInstance().getBuffTemplate(99);
            
    		if (_templateBuffs == null || _templateBuffs.size() == 0)
    			return false;
            
    		activeChar.setTarget(activeChar);
            
    		//is this really need?
    		double _mp=activeChar.getStatus().getCurrentMp(); //to disable mp consuming
    		
    		// for those who is invulnerable
    		if(activeChar.isInvul()&&activeChar.isGM())
        	{
        		_wasInvul=true;
        		activeChar.setIsInvul(false);
        	}
    		
            for (L2BuffTemplate _buff:_templateBuffs)
            {
                if ( _buff.checkPlayer(activeChar)) 
                {
                	
                    // regeneration ^^ //is this really need?
                	activeChar.getStatus().setCurrentMp(_mp);
                    String _name="";
                    
                    // some more functions depending on _buff name
                    if(_buff.getName().equalsIgnoreCase("RestoreHpMp")) {
                       MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);
                       activeChar.broadcastPacket(msu);
                       activeChar.getStatus().setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
                       _name="Health and Mana Restoration";
                    }
                    else if(_buff.getName().equalsIgnoreCase("Heal")) {
                    	MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);
                    	activeChar.broadcastPacket(msu);
                    	activeChar.getStatus().setCurrentHp(activeChar.getMaxHp());
                    	_name="Health Restoration";
                    }
                    else if(_buff.getName().equalsIgnoreCase("Mana")) 
                    {
                    	MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);
                    	activeChar.broadcastPacket(msu);
                    	activeChar.getStatus().setCurrentMp(activeChar.getMaxMp());
                    	_name="Mana Restoration";
                    }
                    else if(_buff.getName().equalsIgnoreCase("CP")) 
                    {
                    	MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 110, 0);
                    	activeChar.broadcastPacket(msu);
                    	activeChar.getStatus().setCurrentCp(activeChar.getMaxCp());
                    	_name="Combat Points Restoration";
                    }
                    else if (_buff.getSkill().getSkillType() == SkillType.SUMMON) 
                    	activeChar.doCast(_buff.getSkill()); 
                        	
                    else
                    {   
                    	// if this buff is first buff of this category - show animation
                    	if(_templateBuffs.getFirst()==_buff){
                    		MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, _buff.getSkillId(), _buff.getSkillLevel(), 200, 0);
                    		activeChar.broadcastPacket(msu);
                    		try{
                    			Thread.sleep(200);//is this really need?
                    		}catch (Exception f) {}
                    	}
                    	// buff process :D
                    	_buff.getSkill().getEffects(activeChar, activeChar);
                    }
                    //text part
                    SystemMessage sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); 
                    if (_name.equalsIgnoreCase("")||_name==null)
                    	sm.addSkillName(_buff.getSkill().getId());
                    else sm.addString(_name);
                    activeChar.sendPacket(sm);
                    sm = null;
                }
                else return false;
            }
            if(_wasInvul&&activeChar.isGM())
            {
            	activeChar.setIsInvul(true);
            	_wasInvul=false;
            }   
            return true;
        }
        else
            return false;
    }
    
    /* (non-Javadoc)
     * @see com.l2jfree.gameserver.handler.IUserCommandHandler#getUserCommandList()
     */
    public String[] getVoicedCommandList()
    {
        return _voicedCommands;
    }
}    

 

Then Go to com\l2jfree\gameserver\handler\VoicedCommandHandler.java and add this line into imports;

import com.l2jfree.gameserver.handler.voicedcommandhandlers.Buffs;

 

Then register the command like registerVoicedCommandHandler(new Buffs());

 

Here The sql file;

 

SQL for buffs you can use

INSERT INTO `buff_templates` VALUES ('98', 'Ww', '1204', 'Wind Walk', '2', '1', '1', '1', '80', '0', '0', '0', '1000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'sh', '1040', 'Shield', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'mi', '1068', 'Might', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'ms', '1035', 'Mental Shield', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'btb', '1045', 'Bless the Body', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'bts', '1048', 'Bless the Soul', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'mb', '1036', 'Magic Barrier', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'rs', '1259', 'Resist Shock', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'dw', '1257', 'Decrease Weight', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'bers', '1062', 'Berserker Spirit', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vamp', '1268', 'Vampiric Rage', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'hast', '1086', 'Haste', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'gui', '1240', 'Guidance', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'foc', '1077', 'Focus', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'dea', '1242', 'Death Whisper', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'life', '1229', 'Chant of Life', '18', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'ward', '267', 'Song of Warding', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'wind', '268', 'Song of Wind', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'hunt', '269', 'Song of Hunter', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vita', '304', 'Song of Vitality', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'venge', '305', 'Song of Vengeance', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'storm', '308', 'Song of Storm Guard', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'rene', '349', 'Song of Renewal', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'reveng', '1284', 'Chant of Revenge', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'victory', '1363', 'Chant of Victory', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'warrior', '271', 'Dance of Warrior', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'fire', '274', 'Dance of Fire', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'fury', '275', 'Dance of Fury', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vampi', '310', 'Dance of Vampire', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'heal', '1218', 'Greater Battle Heal', '33', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'Ww11', '1204', 'Wind Walk', '2', '1', '1', '1', '80', '0', '0', '0', '1000', '0');
INSERT INTO `buff_templates` VALUES ('99', 's11h', '1040', 'Shield', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'm11i', '1068', 'Might', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'm11s', '1035', 'Mental Shield', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'bt11b', '1045', 'Bless the Body', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'bt11s', '1048', 'Bless the Soul', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'm11b', '1036', 'Magic Barrier', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'r11s', '1259', 'Resist Shock', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'co11ns', '1078', 'Concentration', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'd11w', '1257', 'Decrease Weight', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'be11rs', '1062', 'Berserker Spirit', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'a11cu', '1085', 'Acumen', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'em11p', '1059', 'Empower', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'wa11rd', '267', 'Song of Warding', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'wi11nd', '268', 'Song of Wind', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'vi1ta', '304', 'Song of Vitality', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'ven1ge', '305', 'Song of Vengeance', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'st1orm', '308', 'Song of Storm Guard', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 're1ne', '349', 'Song of Renewal', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 're1veng', '1284', 'Chant of Revenge', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'vi1ctory', '1363', 'Chant of Victory', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'mys1tic', '273', 'Dance of Mystic', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'c1once', '276', 'Dance of Concentration', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'si1ren', '365', 'Dance of Siren', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'h1eal', '1218', 'Greater Battle Heal', '33', '1', '1', '1', '80', '0', '0', '0', '30000', '0');

 

Compile your server and you are Donne ! This code made for l2jfree!

 

Credits: VaneSs11 And To Me For The Guide!

 

Posted

SQL for buffs you can use

INSERT INTO `buff_templates` VALUES ('98', 'Ww', '1204', 'Wind Walk', '2', '1', '1', '1', '80', '0', '0', '0', '1000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'sh', '1040', 'Shield', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'mi', '1068', 'Might', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'ms', '1035', 'Mental Shield', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'btb', '1045', 'Bless the Body', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'bts', '1048', 'Bless the Soul', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'mb', '1036', 'Magic Barrier', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'rs', '1259', 'Resist Shock', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'dw', '1257', 'Decrease Weight', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'bers', '1062', 'Berserker Spirit', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vamp', '1268', 'Vampiric Rage', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'hast', '1086', 'Haste', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'gui', '1240', 'Guidance', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'foc', '1077', 'Focus', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'dea', '1242', 'Death Whisper', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'life', '1229', 'Chant of Life', '18', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'ward', '267', 'Song of Warding', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'wind', '268', 'Song of Wind', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'hunt', '269', 'Song of Hunter', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vita', '304', 'Song of Vitality', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'venge', '305', 'Song of Vengeance', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'storm', '308', 'Song of Storm Guard', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'rene', '349', 'Song of Renewal', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'reveng', '1284', 'Chant of Revenge', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'victory', '1363', 'Chant of Victory', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'warrior', '271', 'Dance of Warrior', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'fire', '274', 'Dance of Fire', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'fury', '275', 'Dance of Fury', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'vampi', '310', 'Dance of Vampire', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'heal', '1218', 'Greater Battle Heal', '33', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'Ww11', '1204', 'Wind Walk', '2', '1', '1', '1', '80', '0', '0', '0', '1000', '0');
INSERT INTO `buff_templates` VALUES ('99', 's11h', '1040', 'Shield', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('98', 'm11i', '1068', 'Might', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'm11s', '1035', 'Mental Shield', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'bt11b', '1045', 'Bless the Body', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'bt11s', '1048', 'Bless the Soul', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'm11b', '1036', 'Magic Barrier', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'r11s', '1259', 'Resist Shock', '4', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'co11ns', '1078', 'Concentration', '6', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'd11w', '1257', 'Decrease Weight', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'be11rs', '1062', 'Berserker Spirit', '2', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'a11cu', '1085', 'Acumen', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'em11p', '1059', 'Empower', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'wa11rd', '267', 'Song of Warding', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'wi11nd', '268', 'Song of Wind', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'vi1ta', '304', 'Song of Vitality', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'ven1ge', '305', 'Song of Vengeance', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'st1orm', '308', 'Song of Storm Guard', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 're1ne', '349', 'Song of Renewal', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 're1veng', '1284', 'Chant of Revenge', '3', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'vi1ctory', '1363', 'Chant of Victory', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'mys1tic', '273', 'Dance of Mystic', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'c1once', '276', 'Dance of Concentration', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'si1ren', '365', 'Dance of Siren', '1', '1', '1', '1', '80', '0', '0', '0', '30000', '0');
INSERT INTO `buff_templates` VALUES ('99', 'h1eal', '1218', 'Greater Battle Heal', '33', '1', '1', '1', '80', '0', '0', '0', '30000', '0');

 

Video :

 

Posted

for pvp:

 

if (activeChar.getPvpFlag() != 0)
{
     return false;
}

 

for oly:

 

if(activeChar.isInOlympiadMode())
{
    return false;
}

 

for pk:

 

if(activeChar.getKarma() !=0)
{
    return false;
}

 

for tvt:(for CTF i think the same but i use l2j so i dont have ctf event yet)

if (TvTEvent.isStarted() && TvTEvent.isPlayerParticipant(getObjectId()))
{
   return false;
}

 

 

 

 

Posted

good job man! a good thing is to add classes ID and when a player hits .buffs it will get if he is a fighter or a mage and buff him! also you should restrict the .heal .mana .cp outside of the towns coz pvp will never end ;)

Posted

good job man! a good thing is to add classes ID and when a player hits .buffs it will get if he is a fighter or a mage and buff him! also you should restrict the .heal .mana .cp outside of the towns coz pvp will never end ;)

 

This idea made by VaneSs1 if you wanna any change you can do it by self!

 

{
	if (command.equalsIgnoreCase("fighterbuff", "magebuff") && (activeChar.isInsideZone(L2Character.ZONE_PEACE)))
    {

Easy to do it i think ....!

 

 

Posted

well, why not putting an ALL-in-One Diff Patch.

 

As I know..none want that the players Buffs in Oly , TvT, PvP, PK, etc

 

So, you can make that Command to be used in PEACE zone ONLY ;D

 

Nice Idea Ha ? xD

  • 3 weeks later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock