Jump to content

Question

Posted

Good to acquire this system I wanted to know how to make the character stand up and buff instead of being static like no video.

 

VIDEO 

 

 

I'm trying to get the character to give the buff if you understand me that way in the video

 

 

 

COD

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGiveNickName.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGiveNickName.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestGiveNickName.java	(working copy)
@@ -46,54 +46,59 @@
 		L2PcInstance activeChar = getClient().getActiveChar();
 		if(activeChar == null)
 			return;
-
-		// Noblesse can bestow a title to themselves
-		if(activeChar.isNoble() && _target.matches(activeChar.getName()))
-		{
-			activeChar.setTitle(_title);
-			SystemMessage sm = new SystemMessage(SystemMessageId.TITLE_CHANGED);
-			activeChar.sendPacket(sm);
-			activeChar.broadcastTitleInfo();
-		}
-		//Can the player change/give a title?
-		else if((activeChar.getClanPrivileges() & L2Clan.CP_CL_GIVE_TITLE) == L2Clan.CP_CL_GIVE_TITLE)
-		{
-			if(activeChar.getClan().getLevel() < 3)
+		
+		// If activeChar is not selling buffs
+		if(!activeChar.isSellBuff()){
+			// Noblesse can bestow a title to themselves
+			if(activeChar.isNoble() && _target.matches(activeChar.getName()))
 			{
-				SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
+				activeChar.setTitle(_title);
+				SystemMessage sm = new SystemMessage(SystemMessageId.TITLE_CHANGED);
 				activeChar.sendPacket(sm);
-				sm = null;
-				return;
+				activeChar.broadcastTitleInfo();
 			}
-
-			L2ClanMember member1 = activeChar.getClan().getClanMember(_target);
-			if(member1 != null)
+			//Can the player change/give a title?
+			else if((activeChar.getClanPrivileges() & L2Clan.CP_CL_GIVE_TITLE) == L2Clan.CP_CL_GIVE_TITLE)
 			{
-				L2PcInstance member = member1.getPlayerInstance();
-				if(member != null)
+				if(activeChar.getClan().getLevel() < 3)
 				{
-					//is target from the same clan?
-					member.setTitle(_title);
-					SystemMessage sm = new SystemMessage(SystemMessageId.TITLE_CHANGED);
-					member.sendPacket(sm);
-					member.broadcastTitleInfo();
+					SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_LVL_3_NEEDED_TO_ENDOWE_TITLE);
+					activeChar.sendPacket(sm);
 					sm = null;
+					return;
 				}
+	
+				L2ClanMember member1 = activeChar.getClan().getClanMember(_target);
+				if(member1 != null)
+				{
+					L2PcInstance member = member1.getPlayerInstance();
+					if(member != null)
+					{
+						//is target from the same clan?
+						member.setTitle(_title);
+						SystemMessage sm = new SystemMessage(SystemMessageId.TITLE_CHANGED);
+						member.sendPacket(sm);
+						member.broadcastTitleInfo();
+						sm = null;
+					}
+					else
+					{
+						SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
+						sm.addString("Target needs to be online to get a title");
+						activeChar.sendPacket(sm);
+						sm = null;
+					}
+				}
 				else
 				{
 					SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
-					sm.addString("Target needs to be online to get a title");
+					sm.addString("Target does not belong to your clan");
 					activeChar.sendPacket(sm);
 					sm = null;
 				}
 			}
-			else
-			{
-				SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
-				sm.addString("Target does not belong to your clan");
-				activeChar.sendPacket(sm);
-				sm = null;
-			}
+		}else{
+			activeChar.sendMessage("You can't change title when sell buffs");
 		}
 	}
 	
Index: head-src/com/l2jfrozen/gameserver/custom/SellBuffMsg.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/custom/SellBuffMsg.java	(revision 0)
+++ head-src/com/l2jfrozen/gameserver/custom/SellBuffMsg.java	(working copy)
@@ -0,0 +1,1007 @@
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ * 
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ * 
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package com.l2jfrozen.gameserver.custom;
+
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.util.logging.Logger;
+
+import javolution.text.TextBuilder;
+import javolution.util.FastList;
+
+import com.l2jfrozen.Config;
+import com.l2jfrozen.gameserver.datatables.SkillTable;
+import com.l2jfrozen.gameserver.model.L2Skill;
+import com.l2jfrozen.gameserver.model.L2Skill.SkillType;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.util.CloseUtil;
+import com.l2jfrozen.util.database.L2DatabaseFactory;
+
+
+/**
+ * @author Matthew Mazan
+ *
+ */
+public class SellBuffMsg
+{	
+	
+	@SuppressWarnings("unused")
+	private static Logger _log = Logger.getLogger(SellBuffMsg.class.getName());
+	
+	private int _lastPage = 0;
+	private int _subPage = 0;
+
+	public void setLastPage(int page){
+		_lastPage = page;
+	}
+	
+	public int getLastPage(){
+		return _lastPage;
+	}
+	
+	public void setSubPage(int subPage){
+		_subPage = subPage;
+	}
+	
+	public int getSubPage(){
+		return _subPage;
+	}
+	
+	/**
+	 * Construct response to buff buyer.
+	 * @param seller
+	 * @param buyer
+	 * @return
+	 */
+	private TextBuilder buyerResponse(L2PcInstance seller, L2PcInstance buyer){
+		TextBuilder tb = new TextBuilder();
+		int buffsPerPage = 8; //8 is maximum
+		int buffsCount = 0; //count all player buffs
+		int sellBuffsCount = 0; // count buffs on actual page
+		String buffFor = " player";
+		
+		if(_lastPage == 1 || _lastPage == 2){
+			if(_lastPage == 2){buffFor = " pet"; }
+			tb.append("<html><title>"+seller.getName()+"("+seller.getLevel()+") buff price for"+buffFor+": "+seller.getBuffPrice()+" adena</title><body><br>");
+			
+			FastList<L2Skill> ba = this.getBuffList(seller);
+			
+			for(L2Skill p : ba){	
+				if(Config.SELL_BUFF_SKILL_LIST.containsKey(p.getId())){
+					buffsCount++;
+					if(buffsCount > buffsPerPage * _subPage && buffsCount <= buffsPerPage * (_subPage + 1)){// show subpage with buffs.
+						//_log.info("party skill entered:"+p.getTargetType().name());
+						if(!Config.ALLOW_PARTY_BUFFS && p.getTargetType() == L2Skill.SkillTargetType.TARGET_PARTY){
+							if(buyer.getParty() != null && seller.getParty() != null && buyer.getParty().equals(seller.getParty())){ //check is in party.
+								sellBuffsCount++;
+								createHtmlSkillField(tb, _lastPage, p.getName()+" ("+p.getLevel()+")", p.getId(), buffsCount);
+							}
+						}else if(!Config.ALLOW_CLAN_BUFFS && (p.getTargetType() == L2Skill.SkillTargetType.TARGET_CLAN || p.getTargetType() == L2Skill.SkillTargetType.TARGET_ALLY)){
+							if((buyer.getClan() != null && seller.getClan() != null && buyer.getClanId() == seller.getClanId())||(buyer.getClan() != null && seller.getClan() != null && buyer.getClan().getAllyName() != null && seller.getClan().getAllyName() != null && buyer.getClan().getAllyName().equals(seller.getClan().getAllyName()))){  //check is in clan or ally.
+								sellBuffsCount++;
+								createHtmlSkillField(tb, _lastPage, p.getName()+" ("+p.getLevel()+")", p.getId(), buffsCount);
+							}
+						}else{
+							sellBuffsCount++;
+							createHtmlSkillField(tb, _lastPage, p.getName()+" ("+p.getLevel()+")", p.getId(), buffsCount);
+						}
+					}
+				}
+			}
+			
+			
+			if(sellBuffsCount > 0){
+				for(int x=(buffsCount-(_subPage*buffsPerPage)) ; x<buffsPerPage; x++){ 
+					this.createHtmlEmptySkillField(tb); 
+				}
+			}else{
+				tb.append("<center><table><tr><td width=270 align=center height="+36*buffsPerPage+"><font color=FF0000>I am sorry. I have no buffs for you now.</font></td></tr></table></center>");
+			}
+			
+			tb.append("<br>");
+			tb.append("<center><table><tr>");
+			
+			if(sellBuffsCount > 0){
+				if(buffsCount > 1*buffsPerPage){
+					this.subPageButton(tb, 0);
+					this.subPageButton(tb, 1);
+				}
+				if(buffsCount > 2*buffsPerPage){
+					this.subPageButton(tb, 2);
+				}
+				if(buffsCount > 3*buffsPerPage){
+					this.subPageButton(tb, 3);
+				}
+				if(buffsCount > 4*buffsPerPage){
+					this.subPageButton(tb, 4);
+				}
+			}
+			
+			tb.append("<td width=102>");
+			tb.append("<button value=\"Back\" action=\"bypass -h sellbuffpage0\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\">");
+			tb.append("</td></tr></table></center>");
+			
+			tb.append("</body></html>");
+		
+		}else{
+			tb.append("<html><title>"+seller.getName()+"("+seller.getLevel()+") price for 1 buff: "+seller.getBuffPrice()+" adena</title><body>");
+			
+			tb.append("<br><center>Choose buffs for:<br>");
+			tb.append("<table><tr>");
+			tb.append("<td><center><button value=\"Player\" action=\"bypass -h sellbuffpage1\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+			tb.append("<td><center><button value=\"Pet\" action=\"bypass -h sellbuffpage2\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+			tb.append("</tr></table>");
+			
+			tb.append("<br>");
+			
+			if(seller.getClassId().getId() != 96 && seller.getClassId().getId() != 14 && seller.getClassId().getId() != 104 && seller.getClassId().getId() != 28){
+				if(Config.SELL_BUFFSET_ENABLED && Config.SELL_BUFF_MIN_LVL <= seller.getLevel() && Config.SELL_BUFFSET_MIN_LVL <= seller.getLevel() && (Config.SELL_BUFFSET_WARRIOR.size() > 0 || Config.SELL_BUFFSET_MAGE.size() > 0 || Config.SELL_BUFFSET_RECHARGER.size() > 0 || Config.SELL_BUFFSET_TANKER.size() > 0)){
+					tb.append("<br><br><center>Schemes</center><br>");
+					tb.append("<table><tr>");
+					tb.append("<td><center>Player</center></td><td><center>Pet</center></td>");
+					tb.append("</tr><tr>");
+					tb.append("<td><center><button value=\"Fighter\" action=\"bypass -h zbuffset1\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("<td><center><button value=\"Fighter\" action=\"bypass -h zpetbuff1\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("</tr><tr>");
+					tb.append("<td><center><button value=\"Mage\" action=\"bypass -h zbuffset2\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("<td><center><button value=\"Mage\" action=\"bypass -h zpetbuff2\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("</tr><tr>");
+					tb.append("<td><center><button value=\"Recharger\" action=\"bypass -h zbuffset3\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("<td><center><button value=\"Recharger\" action=\"bypass -h zpetbuff3\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("</tr><tr>");
+					tb.append("<td><center><button value=\"Tank\" action=\"bypass -h zbuffset4\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("<td><center><button value=\"Tank\" action=\"bypass -h zpetbuff4\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\"></center></td>");
+					tb.append("</tr></table>");
+				}
+			}
+			if(seller.getBuffPrice() >= Config.SELL_BUFF_PUNISHED_PRICE){
+				tb.append("<br><br><font color=FF0000>Be careful! <br>Buff price is very high!</font>");
+			}
+			tb.append("</center></body></html>");
+		}
+		
+		
+		return tb;
+		
+	}
+	
+	/**
+	 * Send html response to buyer.
+	 * @param seller
+	 * @param buyer
+	 * @param error - if set true, return first page and send msg to buyer with error type.
+	 */
+	public void sendBuyerResponse(L2PcInstance seller, L2PcInstance buyer, boolean error){
+		
+		if(seller != null){
+			if(seller.isSellBuff() && seller != buyer){
+				TextBuilder tb = null;
+				if(!error){
+					tb = buyer.getSellBuffMsg().buyerResponse(seller, buyer); //buyer == this from l2pcinstance
+				}else{
+					this.setLastPage(0);
+					this.setSubPage(0);
+					tb = buyer.getSellBuffMsg().buyerResponse(seller, buyer);
+				}
+				NpcHtmlMessage n = new NpcHtmlMessage(0);
+				n.setHtml(tb.toString());
+				buyer.sendPacket(n);
+			}
+		}
+	}
+	
+	public void sendSellerResponse(L2PcInstance seller){
+		 TextBuilder tb = new TextBuilder(0);
+		 //create sell
+		 if(!seller.isSellBuff()){
+			 tb.append("<html><body><center>");
+			 tb.append("Hello , by completing this form<br>you will be able to sell buffs.");
+			 tb.append("<br>Players will be able,<br>targeting you to take your buff services<br>");
+			 tb.append("<br>You will be rewarded with adenas<br>for each buff a player takes.");
+			 tb.append("<br><center>Now choose the price:</center><br>");
+			 tb.append("<center><edit var=\"pri\" width=120 height=15></center><br><br>");
+			 tb.append("<center><button value=\"Confirm\" action=\"bypass -h actr $pri\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\">");
+			 tb.append("</center></body></html>");
+		 //abort sell
+		 }else{
+			 tb.append("<html><body><center>");
+			 tb.append("<br>Actual buff price: "+seller.getBuffPrice()+"<br>");
+			 tb.append("Would you abort selling buffs?<br><br>");
+			 tb.append("<center><button value=\"Abort\" action=\"bypass -h pctra\" width=100 height=23 back=\"L2UI_ch3.bigbutton_down\" fore=\"L2UI_ch3.bigbutton\">");
+			 tb.append("</center></body></html>");
+		 }
+		 NpcHtmlMessage n = new NpcHtmlMessage(0);
+		 n.setHtml(tb.toString());
+		 seller.sendPacket(n);
+		   
+	}
+	
+	private void createHtmlSkillField(TextBuilder tb, int buffPage, String skillName, int skillId, int buffRowNumber){
+		//buffPage mean buff for player = 1, or buff for pet = 2.
+		String buffType = "";
+		if(buffPage == 2){
+			buffType = "pet";
+		}
+		
+		String col1 = "";
+		String col2 = "LEVEL";
+		
+		if(buffRowNumber % 2 == 0){
+			col1 =  " bgcolor=000000";
+			col2 = "FFFFFF";
+		}
+		
+		int desc_skillId = skillId;
+		
+		// if summoners skills (exception)
+		if(skillId == 4699 || skillId == 4700){
+			skillId = 1331;
+		}
+		if(skillId == 4702 || skillId == 4703){
+			skillId = 1332;
+		}
+		
+		String tmp_skillId = ""+skillId;
+		if(skillId < 1000){
+			tmp_skillId = "0"+skillId;
+		}
+
+		
+		
+		tb.append("<table"+col1+">");
+		tb.append("<tr>");
+		tb.append("<td width=40><button action=\"bypass -h "+buffType+"buff"+ desc_skillId+"\" width=32 height=32 back=\"icon.skill"+tmp_skillId+"\" fore=\"icon.skill"+tmp_skillId+"\"></td>");
+		tb.append("<td width=240>");
+		tb.append("<table>");
+		tb.append("<tr><td width=240 align=left><font color=\""+col2+"\">"+skillName+"</td></tr>");
+		tb.append("<tr><td width=240 align=left><font color=\"ae9977\">"+this.getSkillDescription(desc_skillId)+"</font></td></tr>");
+		tb.append("</table>");
+		tb.append("</td>");
+		tb.append("</tr>");
+		tb.append("</table>");
+	}
+	
+	private void subPageButton(TextBuilder tb, int page){
+		int btnValue = page+1;
+		tb.append("<td width=34>");
+		if(_subPage == page){
+			tb.append("<button value=\""+btnValue+"\" action=\"bypass -h sellbuffpage"+_lastPage+"sub"+page+"\" width=32 height=23 back=\"L2UI_ch3.bigbutton_dow\" fore=\"L2UI_ch3.bigbutto\">"); //wrong button bg for black bg.
+		}else{
+			tb.append("<button value=\""+btnValue+"\" action=\"bypass -h sellbuffpage"+_lastPage+"sub"+page+"\" width=32 height=23 back=\"\" fore=\"\">");
+		}
+		tb.append("</td>");
+	}
+	
+	private void createHtmlEmptySkillField(TextBuilder tb){			
+		tb.append("<table>");
+		tb.append("<tr>");
+		tb.append("<td height=36></td>");
+		tb.append("</tr>");
+		tb.append("</table>");
+	}
+	
+	private String getSkillDescription(int skillId){
+		String desc = "&nbsp;";
+			
+		Connection con = null;
+		try
+		{
+			con = L2DatabaseFactory.getInstance().getConnection(false);
+			PreparedStatement statement = con.prepareStatement("Select buffId, description from sellbuff_describe where buffId = ?");
+			statement.setInt(1, skillId);
+			ResultSet rs = statement.executeQuery();
+
+			while(rs.next())
+			{
+				desc = rs.getString("description");
+			}
+
+			rs.close();
+			statement.close();
+			statement = null;
+			rs = null;
+		}
+		catch(Exception e)
+		{
+			e.printStackTrace();
+		}
+		finally
+		{
+			CloseUtil.close(con);
+			con = null;
+		}
+		return desc;
+	}
+	
+	public FastList<L2Skill> getBuffList(L2PcInstance seller){
+		L2Skill[] skills = seller.getAllSkills();
+		FastList<L2Skill> ba = new FastList<L2Skill>();
+		
+		for(L2Skill s : skills){
+			if(s == null)
+				continue;
+			// if not summoner classes and skill type == buff
+			if((seller.getClassId().getId() != 96 && seller.getClassId().getId() != 14 && seller.getClassId().getId() != 104 && seller.getClassId().getId() != 28)&&((s.getSkillType() == SkillType.BUFF || s.getSkillType() == SkillType.HEAL_PERCENT || s.getSkillType() == SkillType.COMBATPOINTHEAL) && s.isActive())){
+				if(Config.SELL_BUFF_FILTER_ENABLED){
+					if(seller.getClassId().getId() == 115 || seller.getClassId().getId() == 51){ //manual useless buffs check for dominator and overlord class 
+						if(s.getId() != 1002 && s.getId() != 1006 && s.getId() != 1007 && s.getId() != 1009){
+							ba.add(s);
+						}
+					}else if(seller.getClassId().getId() == 116 || seller.getClassId().getId() == 52){ //doomcryer and warcryer
+						if(s.getId() != 1003 && s.getId() != 1005){
+							ba.add(s);
+						}
+					}else if(seller.getClassId().getId() == 97 || seller.getClassId().getId() == 16){ //cardinal and bishop
+						if(s.getId() == 1353 || s.getId() == 1307 || s.getId() == 1311){
+							ba.add(s);
+						}
+					}else{
+						ba.add(s);
+					}
+				}else{
+					ba.add(s);
+				}
+			}else{
+				L2Skill skill = null;
+				if(s.getId() == 1332){
+					skill = SkillTable.getInstance().getInfo(4702, getSkillLevel(seller, 1332));
+					ba.add(skill);
+					skill = SkillTable.getInstance().getInfo(4703, getSkillLevel(seller, 1332));
+					ba.add(skill);
+				}
+				if(s.getId() == 1331){
+					skill = SkillTable.getInstance().getInfo(4699, getSkillLevel(seller, 1331));
+					ba.add(skill);
+					skill = SkillTable.getInstance().getInfo(4700, getSkillLevel(seller, 1331));
+					ba.add(skill);				
+				}
+			}
+		}
+		return ba;
+	}
+	
+	public FastList<L2Skill> getBuffsetList(L2PcInstance seller, FastList<String> buffset){
+		
+		L2Skill[] skills = seller.getAllSkills();
+		FastList<L2Skill> ba = new FastList<L2Skill>();
+		
+		for(L2Skill s : skills){
+			if(s == null)
+				continue;
+			
+			if(buffset.contains(Integer.toString(s.getId()))){
+				// if not summoner classes and skill type == buff
+				if((seller.getClassId().getId() != 96 && seller.getClassId().getId() != 14 && seller.getClassId().getId() != 104 && seller.getClassId().getId() != 28)&&((s.getSkillType() == SkillType.BUFF || s.getSkillType() == SkillType.HEAL_PERCENT || s.getSkillType() == SkillType.COMBATPOINTHEAL) && s.isActive())){
+					if(Config.SELL_BUFF_FILTER_ENABLED){
+						if(seller.getClassId().getId() == 115 || seller.getClassId().getId() == 51){ //manual useless buffs check for dominator and overlord class 
+							if(s.getId() != 1002 && s.getId() != 1006 && s.getId() != 1007 && s.getId() != 1009){
+								ba.add(s);
+							}
+						}else if(seller.getClassId().getId() == 116 || seller.getClassId().getId() == 52){ //doomcryer and warcryer
+							if(s.getId() != 1003 && s.getId() != 1005){
+								ba.add(s);
+							}
+						}else if(seller.getClassId().getId() == 97 || seller.getClassId().getId() == 16){ //cardinal and bishop
+							if(s.getId() == 1353 || s.getId() == 1307 || s.getId() == 1311){
+								ba.add(s);
+							}
+						}else{
+							ba.add(s);
+						}
+					}else{
+						ba.add(s);
+					}
+				}else{
+					if(s.getId() == 4699){
+						ba.add(s);
+					}
+					if(s.getId() == 4700){
+						ba.add(s);				
+					}
+					if(s.getId() == 4702){
+						ba.add(s);
+					}
+					if(s.getId() == 4703){
+						ba.add(s);
+					}
+				}
+			}
+		}
+		return ba;
+	}
+	
+	public void setPage(L2PcInstance seller, L2PcInstance buyer, int page, int subPage){
+		if(page == 1){
+			buyer.getSellBuffMsg().setLastPage(1);
+			buyer.getSellBuffMsg().setSubPage(subPage);
+		}else if(page == 2){
+			buyer.getSellBuffMsg().setLastPage(2);
+			buyer.getSellBuffMsg().setSubPage(subPage);
+		}else{
+			buyer.getSellBuffMsg().setLastPage(0);
+			buyer.getSellBuffMsg().setSubPage(0);
+		}
+		buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);	
+	}
+	
+	public void buffBuyer(L2PcInstance seller, L2PcInstance buyer, int buffId){
+		if(buyer.getDistanceSq(seller) > 5000){
+			buyer.sendMessage("You must be closer the buffer!");
+			//buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.setTarget(null);
+		}else if(!seller.isSellBuff()){
+			buyer.sendMessage("You cant buy buffs now!");
+			return;
+		}else if(!this.enoughSpiritOreForBuff(seller, buffId)){
+			if(!seller.isOffline()){
+				seller.sendMessage("You can't sell buff, you haven't Spirit Ore for use skill!");
+			}
+			buyer.sendMessage("You can't buff now. Buff seller has no item for use skill!");
+			buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false); 
+		}else{
+			int buffprice = seller.getBuffPrice();
+			
+			if(buyer.getInventory().getItemByItemId(57) == null || buyer.getInventory().getItemByItemId(57).getCount() < buffprice){
+				buyer.sendMessage("Not enought adena!");
+			}else{
+				try{
+					//get buff data
+					L2Skill skill = SkillTable.getInstance().getInfo(buffId, getSkillLevel(seller, buffId));
+					
+					//single skill mp consume
+					if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+						if(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER >= (skill.getMpConsume()+1)){
+							seller.setCurrentMp(Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER - skill.getMpConsume())/Config.SELL_BUFF_SKILL_MP_MULTIPLIER);
+						}else{
+							buyer.sendMessage("Buffer has no Mana Points ("+Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+" / "+Math.round(seller.getMaxMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+")");
+							buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);
+							return;
+						}
+					}
+					//add adena for seller
+					seller.addItem("buff sell", 57, buffprice, seller, true);
+					
+					//remove adena from buyer
+					buyer.destroyItemByItemId("buff sell", 57, buffprice, buyer, false);
+					
+					//destroy Spirit Ore:
+					destroySpiritOre(seller, buffId);
+					
+					//give buffs for buyer
+					skill.getEffects(buyer, buyer);
+
+					buyer.sendMessage("You buyed: "+skill.getName()+" for "+seller.getBuffPrice()+" adena.");	
+					buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);
+
+				}catch(Exception e){
+						e.printStackTrace();
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+				}
+			}
+		}
+	}
+
+	public void buffBuyerPet(L2PcInstance seller, L2PcInstance buyer, int buffId){
+		//checking pet/summon if error return to first page;
+		if(buyer.getPet() == null || buyer.getPet().isDead()){
+			//buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.sendMessage("You must summon your pet first!");
+			buyer.setTarget(null);
+		}else if(buyer.getDistanceSq(seller) > 10000){
+			//buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.sendMessage("Your pet must be closer the buffer!");	
+			buyer.setTarget(null);
+		}else if(!seller.isSellBuff()){
+			buyer.sendMessage("You cant buy buffs now!");
+			return;
+		}else if(!this.enoughSpiritOreForBuff(seller, buffId)){
+			if(!seller.isOffline()){
+				seller.sendMessage("You can't sell buff, you haven't Spirit Ore for use skill!");
+			}
+			buyer.sendMessage("You can't buff now. Buff seller has no item for use skill!");
+			buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false); 
+		}else{
+			int buffprice = seller.getBuffPrice();
+			
+			if(buyer.getInventory().getItemByItemId(57) == null || buyer.getInventory().getItemByItemId(57).getCount() < buffprice){
+				buyer.sendMessage("Not enought adena!");
+			}else{
+				
+				try{
+					//get buff data
+					L2Skill skill = SkillTable.getInstance().getInfo(buffId, getSkillLevel(seller, buffId));
+					
+					// single skill mp consume
+					if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+						if(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER >= (skill.getMpConsume()+1)){
+							seller.setCurrentMp(Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER - skill.getMpConsume())/Config.SELL_BUFF_SKILL_MP_MULTIPLIER);
+						}else{
+							buyer.sendMessage("Buffer has no Mana Points ("+Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+" / "+Math.round(seller.getMaxMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+")");
+							buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+							return;
+						}
+					}
+					
+					//buff seller
+					seller.addItem("buff sell", 57, buffprice, seller, true);
+					
+					//buff buyer
+					buyer.destroyItemByItemId("buff sell", 57, buffprice, buyer, false);
+	
+					//destroy Spirit Ore:
+					destroySpiritOre(seller, buffId);
+	
+					//give buffs for pet
+					skill.getEffects(buyer.getPet(), buyer.getPet());
+						
+						
+					buyer.sendMessage("You buyed: "+skill.getName()+" for "+seller.getBuffPrice()+" adena, for your pet.");	
+					buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);
+	
+				
+					
+				}catch(Exception e){
+						e.printStackTrace();
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+				}
+			}
+		}
+	}
+	
+	public void buffsetBuyer(L2PcInstance seller, L2PcInstance buyer, int setId){	
+		String buffSetName = " ";
+		FastList<L2Skill> ba = new FastList<L2Skill>();
+		//----------------------------------------------------------------------------------------------
+		if(setId == 1){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_WARRIOR);
+			buffSetName = " Warrior ";
+		}else if(setId == 2){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_MAGE);
+			buffSetName = " Mage ";
+		}else if(setId == 3){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_RECHARGER);
+			buffSetName = " Recharger ";
+		}else if(setId == 4){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_TANKER);
+			buffSetName = " Tanker ";
+		}
+	
+		int buffsetSize = ba.size();
+	
+		if(buyer.getDistanceSq(seller) > 5000){
+			buyer.sendMessage("You must be closer the buffer!");
+			//buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.setTarget(null);
+		}else if(!seller.isSellBuff()){
+			buyer.sendMessage("You cant buy buffs now!");
+			return;
+		}else{
+			int buffprice = seller.getBuffPrice();
+			if(seller.getBuffPrice() == 0){
+				buyer.sendMessage("This buffset is empty!");
+				buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			}else if(buyer.getInventory().getItemByItemId(57) == null || buyer.getInventory().getItemByItemId(57).getCount() < buffprice*buffsetSize){
+				buyer.sendMessage("Not enought adena!");
+			}else{
+				try{
+					boolean mpOK = true;
+					boolean soOK = true;
+					int mpConsumeSum = 0;
+					int soConsumeSum = 0; //Spirit Ore sum.
+					
+					if(Config.SELL_BUFF_SKILL_MP_ENABLED || Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+						// calculate all skills set mana use:
+						for(L2Skill p : ba){
+							L2Skill skill = SkillTable.getInstance().getInfo(p.getId(), getSkillLevel(seller, p.getId()));
+							if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+								mpConsumeSum += skill.getMpConsume();
+							}
+							if(Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+								soConsumeSum += getSkillConsumeSOCount(p.getId(), p.getLevel());
+							}
+						}
+						// set ok == false if buffset mp cost greater than seller current mp.
+						if(mpConsumeSum > 0 && (mpConsumeSum + 1) > seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER){
+							mpOK = false;
+						}	
+						// set ok == false if buffset require more SO count than count SO in inventory.
+						if(soConsumeSum > 0 && (seller.getInventory().getItemByItemId(3031) == null || soConsumeSum > seller.getInventory().getItemByItemId(3031).getCount())){
+							soOK = false;
+						}	
+					}
+
+					if(mpOK && soOK){
+						for(L2Skill p : ba){
+							L2Skill skill = SkillTable.getInstance().getInfo(p.getId(), getSkillLevel(seller, p.getId()));
+							
+							//give buffs
+							skill.getEffects(buyer, buyer);
+		
+							//destroy Spirit Ore:
+							destroySpiritOre(seller, skill.getId());
+							
+							buyer.sendMessage("You buyed: "+skill.getName());	
+							buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);
+							if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+								seller.setCurrentMp(Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER - skill.getMpConsume())/Config.SELL_BUFF_SKILL_MP_MULTIPLIER);
+							}
+						}
+					
+						//buff seller
+						seller.addItem("buff sell", 57, buffprice*buffsetSize, seller, true);
+						
+						//buff buyer
+						buyer.destroyItemByItemId("buff sell", 57, buffprice*buffsetSize, buyer, false);
+						
+						buyer.sendMessage("You bought"+buffSetName+"buffs for: "+buffprice*buffsetSize+" adena.");
+					}else{
+						if(!mpOK){
+							buyer.sendMessage("Buffer has no Mana Points for this set ("+Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+" / "+Math.round(seller.getMaxMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+")");
+						}
+						if(!soOK){
+							buyer.sendMessage("You can't buff now. Buff seller has no item for use skill!");
+							seller.sendMessage("You can't sell buff, you haven't Spirit Ore for use skill!");
+						}
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+					}
+				}catch(Exception e){
+						e.printStackTrace();
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+				}
+			}
+		}
+	}
+	
+	public void buffsetBuyerPet(L2PcInstance seller, L2PcInstance buyer, int setId){			
+		String buffSetName = " ";
+		FastList<L2Skill> ba = new FastList<L2Skill>();
+		//----------------------------------------------------------------------------------------------
+		if(setId == 1){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_WARRIOR);
+			buffSetName = " Warrior ";
+		}else if(setId == 2){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_MAGE);
+			buffSetName = " Mage ";
+		}else if(setId == 3){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_RECHARGER);
+			buffSetName = " Recharger ";
+		}else if(setId == 4){
+			ba = seller.getSellBuffMsg().getBuffsetList(seller, Config.SELL_BUFFSET_TANKER);
+			buffSetName = " Tanker ";
+		}
+	
+		int buffsetSize = ba.size();
+	
+		//checking pet/summon if error return to first page;
+		if(buyer.getPet() == null || buyer.getPet().isDead()){
+			buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.sendMessage("You must summon your pet first!");
+		}else if(buyer.getDistanceSq(seller) > 10000){
+			//buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			buyer.sendMessage("Your pet must be closer the buffer!");	
+			buyer.setTarget(null);
+		}else if(!seller.isSellBuff()){
+			buyer.sendMessage("You cant buy buffs now!");
+			return;
+		}else{
+			int buffprice = seller.getBuffPrice();
+			if(seller.getBuffPrice() == 0){
+				buyer.sendMessage("This buffset is empty!");
+				buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+			}else if(buyer.getInventory().getItemByItemId(57) == null || buyer.getInventory().getItemByItemId(57).getCount() < buffprice){
+				buyer.sendMessage("Not enought adena!");
+			}else{
+				
+				try{
+					boolean mpOK = true;
+					boolean soOK = true;
+					int mpConsumeSum = 0;
+					int soConsumeSum = 0; //Spirit Ore sum.
+					
+					if(Config.SELL_BUFF_SKILL_MP_ENABLED || Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+						// calculate all skills set mana use:
+						for(L2Skill p : ba){
+							L2Skill skill = SkillTable.getInstance().getInfo(p.getId(), getSkillLevel(seller, p.getId()));
+							if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+								mpConsumeSum += skill.getMpConsume();
+							}
+							if(Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+								soConsumeSum += getSkillConsumeSOCount(p.getId(), p.getLevel());
+							}
+						}
+						// set ok == false if buffset mp cost greater than seller current mp.
+						if(mpConsumeSum > 0 && (mpConsumeSum + 1) > seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER){
+							mpOK = false;
+						}	
+						// set ok == false if buffset require more SO count than count SO in inventory.
+						if(soConsumeSum > 0 && (seller.getInventory().getItemByItemId(3031) == null || soConsumeSum > seller.getInventory().getItemByItemId(3031).getCount())){
+							soOK = false;
+						}	
+					}
+
+					if(mpOK && soOK){
+						for(L2Skill p : ba){
+							L2Skill skill = SkillTable.getInstance().getInfo(p.getId(), getSkillLevel(seller, p.getId()));
+							
+							//give buffs
+							skill.getEffects(buyer.getPet(), buyer.getPet());
+		
+							//destroy Spirit Ore:
+							destroySpiritOre(seller, skill.getId());
+							
+							buyer.sendMessage("You buyed: "+skill.getName());	
+							buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, false);
+							if(Config.SELL_BUFF_SKILL_MP_ENABLED){
+								seller.setCurrentMp(Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER - skill.getMpConsume())/Config.SELL_BUFF_SKILL_MP_MULTIPLIER);
+							}
+						}
+					
+						//buff seller
+						seller.addItem("buff sell", 57, buffprice*buffsetSize, seller, true);
+						
+						//buff buyer
+						buyer.destroyItemByItemId("buff sell", 57, buffprice*buffsetSize, buyer, false);
+						
+						buyer.sendMessage("You bought"+buffSetName+"buffs for: "+buffprice*buffsetSize+" adena.");
+					}else{
+						if(!mpOK){
+							buyer.sendMessage("Buffer has no Mana Points for this set ("+Math.round(seller.getCurrentMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+" / "+Math.round(seller.getMaxMp()*Config.SELL_BUFF_SKILL_MP_MULTIPLIER)+")");
+						}
+						if(!soOK){
+							buyer.sendMessage("You can't buff now. Buff seller has no item for use skill!");
+							seller.sendMessage("You can't sell buff, you haven't Spirit Ore for use skill!");
+						}
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+					}
+				}catch(Exception e){
+						e.printStackTrace();
+						buyer.getSellBuffMsg().sendBuyerResponse(seller, buyer, true);
+				}
+			}
+		}
+	}
+	
+	public void startBuffStore(L2PcInstance seller, int price, boolean saveSellerData){
+		if(price <= 0){
+			seller.sendMessage("Too low price. Min is 1 adena.");
+			return;
+		}
+						
+		if(price > 2000000000){
+			seller.sendMessage("Too big price. Max is 2 000 000 000 adena.");
+			return;
+		}
+		
+		if(saveSellerData){
+			saveSellerData(seller);
+		}
+		
+		seller.setBuffPrice(price);
+		seller.sitDown();
+		seller.setSellBuff(true);
+		
+		if(seller.getClassId().getId() < 90){ //if 2nd profession or lower.
+			seller.getAppearance().setTitleColor(0xFFDD); //dark green (yellow now)
+		}else{
+			seller.getAppearance().setTitleColor(0xFF00); //light green
+		}
+		seller.setTitle(getClassName(seller.getClassId().getId())); //set title like class name
+		seller.getAppearance().setNameColor(0x1111);				   
+		seller.broadcastUserInfo();
+		seller.broadcastTitleInfo();
+	    
+	}
+	
+	public void stopBuffStore(L2PcInstance seller){
+
+		restoreSellerData(seller);
+		
+		seller.broadcastUserInfo();
+		seller.broadcastTitleInfo();
+		
+		seller.setSellBuff(false);
+		seller.standUp();
+		
+	}
+	
+	private void saveSellerData(L2PcInstance seller){
+		Connection con = null;	
+		try
+		{
+			con = L2DatabaseFactory.getInstance().getConnection(false);
+			PreparedStatement statement;
+			statement = con.prepareStatement("CALL sellbuff_saveSellerData(?,?,?,?)");
+			statement.setInt(1, seller.getObjectId());
+			statement.setString(2, seller.getTitle());
+			statement.setInt(3, seller.getAppearance().getTitleColor());
+			statement.setInt(4, seller.getAppearance().getNameColor());
+			statement.execute();
+			statement.close();
+			statement = null;
+		}
+		catch(Exception e)
+		{
+			if(Config.ENABLE_ALL_EXCEPTIONS)
+				e.printStackTrace();
+		}
+		finally
+		{
+			CloseUtil.close(con);
+			con = null;
+		}
+	}
+	
+	public void restoreSellerData(L2PcInstance seller){
+		//int defaultNickColor = 16777215; // white
+		//int defaultTitleColor = 16777079; // light blue
+		
+		Connection con = null;	
+		try
+		{
+			con = L2DatabaseFactory.getInstance().getConnection(false);
+			PreparedStatement statement;
+			statement = con.prepareStatement("CALL sellbuff_restoreSellerData(?)");
+			statement.setInt(1, seller.getObjectId());
+			
+			ResultSet res = statement.executeQuery();
+
+			while(res.next())
+			{
+				seller.setTitle(res.getString("lastTitle"));
+				seller.getAppearance().setTitleColor(Integer.parseInt(res.getString("lastTitleColor")));
+				seller.getAppearance().setNameColor(Integer.parseInt(res.getString("lastNameColor")));
+			}
+			res.close();
+			res = null;
+			statement.close();
+			statement = null;
+		}
+		catch(Exception e)
+		{
+			if(Config.ENABLE_ALL_EXCEPTIONS)
+				e.printStackTrace();
+		}
+		finally
+		{
+			CloseUtil.close(con);
+			con = null;
+		}
+	}
+
+	/**
+	 * Returns skill consume count (Spirit Ore count).
+	 * @param skillId
+	 * @param skillLvl
+	 * @return
+	 */
+	private int getSkillConsumeSOCount(int skillId, int skillLvl){
+		// Buffs what consume items like Spirit Ore
+		// {skillId, skillLvl, itemConsumeId, itemConsumeCount}
+		int[][] skillsData = {
+			{1388,1,3031,1},
+			{1388,2,3031,2},
+			{1388,3,3031,3},
+			{1389,1,3031,1},
+			{1389,2,3031,2},
+			{1389,3,3031,3},
+			{1356,1,3031,10},
+			{1397,1,3031,1},
+			{1397,2,3031,2},
+			{1397,3,3031,3},
+			{1355,1,3031,10},
+			{1357,1,3031,10},
+			{1416,1,3031,20},
+			{1414,1,3031,40},
+			{1391,1,3031,4},
+			{1391,2,3031,8},
+			{1391,3,3031,12},
+			{1390,1,3031,4},
+			{1390,2,3031,8},
+			{1390,3,3031,12},
+			{1363,1,3031,40},
+			{1413,1,3031,40},
+			{1323,1,3031,5}
+		};
+		
+		for(int i=0 ; i<skillsData.length ; i++){
+			if(skillsData[i][0] == skillId && skillsData[i][1] == skillLvl){
+				return skillsData[i][3];
+			}
+		}
+		return 0;
+	}
+	
+	private boolean enoughSpiritOreForBuff(L2PcInstance seller, int skillId){
+		if(Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+			if(getSkillConsumeSOCount(skillId, seller.getSkillLevel(skillId)) > 0){
+				// 3031 == Spirit Ore ID
+				if(seller.getInventory().getItemByItemId(3031) == null || seller.getInventory().getItemByItemId(3031).getCount() < getSkillConsumeSOCount(skillId, seller.getSkillLevel(skillId))){
+					return false;
+				}
+			}
+		}
+		return true;
+	}
+	
+	private void destroySpiritOre(L2PcInstance seller, int skillId){	
+		if(Config.SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED){
+			if(seller.getInventory().getItemByItemId(3031) != null && seller.getInventory().getItemByItemId(3031).getCount() >= getSkillConsumeSOCount(skillId, seller.getSkillLevel(skillId))){
+				seller.destroyItemByItemId("buff sell", 3031, getSkillConsumeSOCount(skillId, seller.getSkillLevel(skillId)), seller, false);
+			}
+		}
+	}
+	
+	private String getClassName(int classId){
+		switch (classId) { 
+			case 14:  return "Warlock";
+			case 96:  return "ArcanaLord";
+			case 16:  return "Bishop";
+			case 97:  return "Cardinal";
+			case 17:  return "Prophet";
+			case 98:  return "Hierophant";
+			case 21:  return "SwordSinger";
+			case 100: return "SwordMuse";
+			case 28:  return "Elem.Summoner";
+			case 104: return "Elem.Master";
+			case 29:  return "Oracle";
+			case 30:  return "Elder";
+			case 105: return "EvaSaint";
+			case 34:  return "BladeDancer";
+			case 107: return "SpectralDancer";
+			case 42:  return "ShilenOracle";
+			case 43:  return "ShilenElder";
+			case 112: return "ShilenSaint";
+			case 50:  return "Shaman";
+			case 51:  return "Overlord";
+			case 115: return "Dominator";
+			case 52:  return "Warcryer";
+			case 116: return "Doomcryer";
+
+			default:  return "Buff Sell";
+		 }
+	}
+	
+	/**
+	 * Special summoners skill level or normal skill level.
+	 * @param seller
+	 * @param skillId
+	 * @return
+	 */
+	private int getSkillLevel(L2PcInstance seller, int skillId){
+	
+		if(seller.getClassId().getId() != 96 && seller.getClassId().getId() != 14 && seller.getClassId().getId() != 104 && seller.getClassId().getId() != 28){
+			return seller.getSkillLevel(skillId);
+		}
+		
+		// summon lvl != summon buff lvl, example: feline queen skill lvl != feline queen buff lvl.
+		// skill levels by current db: min: 5, max: 8.
+		if(seller.getLevel() >= 56 && seller.getLevel() <= 57){
+			return 5;
+		}
+		if(seller.getLevel() >= 58 && seller.getLevel() <= 67){
+			return 6;
+		}
+		if(seller.getLevel() >= 68 && seller.getLevel() <= 73){
+			return 7;
+		}
+		if(seller.getLevel() >= 74){
+			return 8;
+		}
+		return 1; 
+	}
+	
+}
Index: head-src/com/l2jfrozen/Config.java
===================================================================
--- head-src/com/l2jfrozen/Config.java	(revision 991)
+++ head-src/com/l2jfrozen/Config.java	(working copy)
@@ -616,7 +616,28 @@
 	public static int FS_PARTY_MEMBER_COUNT;
 	public static boolean ALLOW_QUAKE_SYSTEM;
 	public static boolean ENABLE_ANTI_PVP_FARM_MSG;
-	
+	public static boolean SELL_BUFF_ENABLED;
+	public static FastList<String> SELL_BUFF_CLASS_LIST = new FastList<String>();
+	public static FastMap<Integer, Integer> SELL_BUFF_SKILL_LIST;
+	public static boolean ALLOW_PARTY_BUFFS;
+	public static boolean ALLOW_CLAN_BUFFS;
+	public static int SELL_BUFF_PUNISHED_PRICE;
+	public static boolean SELL_BUFF_FILTER_ENABLED;
+	 	
+	public static int SELL_BUFF_MIN_LVL;
+		
+	public static boolean SELL_BUFFSET_ENABLED;
+	public static int SELL_BUFFSET_MIN_LVL;
+	public static FastList<String> SELL_BUFFSET_WARRIOR = new FastList<String>();
+	public static FastList<String> SELL_BUFFSET_MAGE = new FastList<String>();
+	public static FastList<String> SELL_BUFFSET_RECHARGER = new FastList<String>();
+	public static FastList<String> SELL_BUFFSET_TANKER = new FastList<String>();
+		
+	public static boolean OFFLINE_SELLBUFF_ENABLED;
+	public static boolean SELL_BUFF_SKILL_MP_ENABLED;
+	public static double SELL_BUFF_SKILL_MP_MULTIPLIER;
+	public static boolean SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED;
+	public static FastList<String> SELL_BUFF_RESTRICTED_ZONES_IDS = new FastList<String>();
 	public static long CLICK_TASK;
 	
 	//============================================================
@@ -668,6 +689,103 @@
 			RAID_MIN_RESPAWN_MULTIPLIER = Float.parseFloat(otherSettings.getProperty("RaidMinRespawnMultiplier", "1.0"));
 			RAID_MAX_RESPAWN_MULTIPLIER = Float.parseFloat(otherSettings.getProperty("RaidMaxRespawnMultiplier", "1.0"));
         	ENABLE_AIO_SYSTEM = Boolean.parseBoolean(otherSettings.getProperty("EnableAioSystem", "True"));
+        	SELL_BUFF_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("SellBuffEnabled", "True"));
+        				if(SELL_BUFF_ENABLED) //create map if system is enabled
+        	        	{
+        	        		SELL_BUFF_SKILL_LIST = new FastMap<Integer, Integer>();
+        	
+        					String[] propertySplit;
+        					propertySplit = otherSettings.getProperty("SellBuffSkillList", "").split(";");
+        	
+        					for(String skill : propertySplit)
+        					{
+        						String[] skillSplit = skill.split(",");
+        						if(skillSplit.length != 2)
+        						{
+        							System.out.println("[SellBuffSkillList]: invalid config property -> SellBuffSkillList \"" + skill + "\"");
+        						}
+        						else
+        						{
+        							try
+        							{
+        								SELL_BUFF_SKILL_LIST.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
+        							}
+        							catch(NumberFormatException nfe)
+        							{
+        								if(Config.ENABLE_ALL_EXCEPTIONS)
+        									nfe.printStackTrace();
+        								
+        								if(!skill.equals(""))
+        								{
+        									System.out.println("[SellBuffSkillList]: invalid config property -> SellBuffSkillList \"" + skillSplit[0] + "\"" + skillSplit[1]);
+        								}
+        							}
+        						}
+        					}
+        	        	}
+        	        	if(SELL_BUFF_ENABLED) //create map if system is enabled
+        	        	{
+        	        		String SELL_BUFF_CLASS_STRING = otherSettings.getProperty("SellBuffClassList");
+        	        		int i=0;
+        	        		for(String classId : SELL_BUFF_CLASS_STRING.split(",")){
+        	        			SELL_BUFF_CLASS_LIST.add(i,classId);
+        	        			i++;
+        	        		}
+        	        	}
+        	        	ALLOW_PARTY_BUFFS = Boolean.parseBoolean(otherSettings.getProperty("AllowPartyBuffs", "True"));
+        	        	ALLOW_CLAN_BUFFS = Boolean.parseBoolean(otherSettings.getProperty("AllowClanBuffs", "True"));
+        	        	SELL_BUFF_PUNISHED_PRICE = Integer.parseInt(otherSettings.getProperty("SellBuffPunishedPrice", "10000"));
+        	        	SELL_BUFF_FILTER_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("SellBuffFilterEnabled", "True"));
+        	        	
+        	        	SELL_BUFF_MIN_LVL = Integer.parseInt(otherSettings.getProperty("SellBuffMinLvl", "20"));
+        	        	SELL_BUFFSET_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("SellBuffsetEnabled", "True"));
+        	        	
+        	        	SELL_BUFFSET_MIN_LVL = Integer.parseInt(otherSettings.getProperty("SellBuffSetMinLvl", "79"));
+        	        	
+        	        	if(SELL_BUFFSET_ENABLED) //create map if system is enabled
+        	        	{
+        	        		String tempStr = "";
+        	        		int i = 0;
+        	        		
+        	        		tempStr = otherSettings.getProperty("SellBuffsetWarrior");
+        	        		i=0;
+        	        		for(String skillId : tempStr.split(",")){
+        	        			SELL_BUFFSET_WARRIOR.add(i,skillId);
+        	        			i++;
+        	        		}
+        	        		tempStr = otherSettings.getProperty("SellBuffsetMage");
+        	        		i=0;
+        	        		for(String skillId : tempStr.split(",")){
+        	        			SELL_BUFFSET_MAGE.add(i,skillId);
+        	        			i++;
+        	        		}
+        	        		tempStr = otherSettings.getProperty("SellBuffsetRecharger");
+        	        		i=0;
+        	        		for(String skillId : tempStr.split(",")){
+        	        			SELL_BUFFSET_RECHARGER.add(i,skillId);
+        	        			i++;
+        	        		}
+        	        		tempStr = otherSettings.getProperty("SellBuffsetTanker");
+        	        		i=0;
+        	        		for(String skillId : tempStr.split(",")){
+        	        			SELL_BUFFSET_TANKER.add(i,skillId);
+        	        			i++;
+        	        		}	
+        	        	}
+        	        	OFFLINE_SELLBUFF_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("OfflineSellbuffEnabled", "True"));
+        	        	SELL_BUFF_SKILL_MP_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("SellBuffSkillMpEnabled", "False"));
+        	        	SELL_BUFF_SKILL_MP_MULTIPLIER = Double.parseDouble(otherSettings.getProperty("SellBuffSkillMpMultiplier", "1."));
+        	        	SELL_BUFF_SKILL_ITEM_CONSUME_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("SellBuffSkillItemConsumeEnabled", "True"));
+        	        	//RESTRICTED ZONES IDS:
+        	    		int i = 0;
+        	    		String tempStr = otherSettings.getProperty("SellBuffRestrictedZonesIds");
+        	    		if(tempStr != null && tempStr.length() > 0){
+        		    		for(String rZoneId : tempStr.split(",")){
+        		    			SELL_BUFF_RESTRICTED_ZONES_IDS.add(i,rZoneId);
+        		    			i++;
+        		    		}
+        	    		}
+        	        	
         	ALLOW_AIO_NCOLOR = Boolean.parseBoolean(otherSettings.getProperty("AllowAioNameColor", "True"));
         	AIO_NCOLOR = Integer.decode("0x" + otherSettings.getProperty("AioNameColor", "88AA88"));
         	ALLOW_AIO_TCOLOR = Boolean.parseBoolean(otherSettings.getProperty("AllowAioTitleColor", "True"));
Index: head-src/com/l2jfrozen/gameserver/Shutdown.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/Shutdown.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/Shutdown.java	(working copy)
@@ -610,7 +610,7 @@
 
 		try
         {
-           if ((Config.OFFLINE_TRADE_ENABLE || Config.OFFLINE_CRAFT_ENABLE) && Config.RESTORE_OFFLINERS)
+           if ((Config.OFFLINE_TRADE_ENABLE || Config.OFFLINE_CRAFT_ENABLE || Config.OFFLINE_SELLBUFF_ENABLED) && Config.RESTORE_OFFLINERS)
               OfflineTradeTable.storeOffliners();
         }
         catch (Throwable t)
Index: config/head/other.properties
===================================================================
--- config/head/other.properties	(revision 991)
+++ config/head/other.properties	(working copy)
@@ -238,4 +238,136 @@
 ClickTask = 50
 
 # Crit announce
-GMShowCritAnnouncerName = False
\ No newline at end of file
+GMShowCritAnnouncerName = False
+
+# -----------------------------------------
+#  Sell Buff System                       -
+# -----------------------------------------
+# Describe: 
+# System allow sell buffs by players who's classes are declared in SellBuffClassList.
+# 
+
+# Enable / Disable Sell Buff System
+SellBuffEnabled = true
+
+# Allow offline buff sell.
+OfflineSellbuffEnabled = True
+
+# Enable skill mp use.
+SellBuffSkillMpEnabled = False
+
+# Multiplier skill mp consume. 
+# If character have 2000 mp, and multiplier = 100.0, sell buff mp = 200 000.
+SellBuffSkillMpMultiplier = 1.0
+
+# Enable specific skill item consume. Example: Skill Chant of Victory using Spirit Ore.
+SellBuffSkillItemConsumeEnabled = True
+
+# Choose allowed classes.
+# Format : classid,classid,classid,classid, ... classid,classid
+SellBuffClassList = 15,16,97,17,98,29,30,105,42,43,112,50,116,51,115,100,21,107,34
+
+# Allowed skillsId, and duration of this skills list:
+# Format : skillid,duration;skillid,duration; ... ;skillid,duration
+# SkillDuration is not implemented yet.
+SellBuffSkillList = 33,7200;67,7200;264,7200;265,7200;266,7200;267,7200;268,7200;\
+269,7200;270,7200;271,7200;272,7200;273,7200;274,7200;275,7200;276,7200;277,7200;\
+304,7200;305,7200;306,7200;307,7200;308,7200;309,7200;310,7200;311,7200;\
+349,7200;363,7200;364,7200;365,7200;366,7200;\
+1002,7200;1003,7200;1004,7200;1005,7200;1006,7200;1007,7200;1008,7200;1009,7200;\
+1032,7200;1033,7200;1035,7200;1036,7200;1040,7200;1043,7200;1044,7200;1045,7200;1048,7200;\
+1059,7200;1062,7200;1068,7200;1073,7200;1077,7200;1078,7200;1085,7200;1086,7200;1087,7200;\
+1182,7200;1189,7200;1191,7200;1204,7200;1240,7200;1242,7200;1243,7200;1249,7200;1250,7200;1251,7200;1252,7200;1253,7200;\
+1257,7200;1259,7200;1260,7200;1261,7200;1268,7200;1279,7200;1280,7200;1281,7200;1282,7200;1284,7200;\
+1303,7200;1307,7200;1308,7200;1309,7200;1310,7200;1311,7200;1328,7200;1352,7200;1353,7200;1354,7200;1355,7200;1356,7200;\
+1357,7200;1362,7200;1363,7200;1364,7200;1365,7200;1388,7200;1389,7200;1390,7200;1391,7200;1392,7200;\
+1393,7200;1397,7200;1413,7200;1414,7200;1415,7200;1416,7200;\
+4699,7200;4700,7200;4702,7200;4703,7200;1323,7200
+
+# Allow selling party buffs for no party members.
+AllowPartyBuffs = True
+
+# Allow selling clan buffs for no clan members.
+AllowClanBuffs = True 
+
+# Buff buyer will be informed about buff price greater than SellBuffPunishedPrice.
+# This option must be between <1, 2 000 000 000> (Default: 5000) (if it have other value, the option will be ignored).
+SellBuffPunishedPrice = 5000
+
+# If Enabled, remove useless buffs like shield lv.1 from dominator buff set.
+# This option should be enabled, for helping players to get wrong buffs.
+SellBuffFilterEnabled = True
+
+# SellBuffMinLvl default: 40 (lower level's not implemented yet)
+SellBuffMinLvl = 40
+
+# Enable/disable selling buffs sets like Warrior set, Mage set...
+SellBuffsetEnabled = True
+
+# Set minimum character level to sell buffs sets (Default: 79)
+SellBuffSetMinLvl = 79
+
+# Define Buffsets: Warrior, Mage, Recharger, Tanker:
+# Format: SellBuffsetWarrior = skillId,skillId,...,skillId
+# No skills is disable show this buffset in menu.
+SellBuffsetWarrior = 33,67,264,265,266,267,268,\
+269,270,271,272,273,274,275,276,277,\
+304,305,306,307,308,309,310,311,\
+349,363,364,365,366,\
+1002,1003,1004,1005,1006,1007,1008,1009,\
+1032,1033,1035,1036,1040,1043,1044,1045,1048,\
+1059,1062,1068,1073,1077,1078,1085,1086,1087,\
+1182,1189,1191,1204,1240,1242,1243,1249,1250,1251,1252,1253,\
+1257,1259,1260,1261,1268,1279,1280,1281,1282,1284,\
+1303,1307,1308,1309,1310,1311,1328,1352,1353,1354,1355,1356,\
+1357,1362,1363,1364,1365,1388,1389,1390,1391,1392,\
+1393,1397,1413,1414,1415,1416,\
+4699,4700,4702,4703,1323
+#---------------------------------------------------------------
+SellBuffsetMage =33,67,264,265,266,267,268,\
+269,270,271,272,273,274,275,276,277,\
+304,305,306,307,308,309,310,311,\
+349,363,364,365,366,\
+1002,1003,1004,1005,1006,1007,1008,1009,\
+1032,1033,1035,1036,1040,1043,1044,1045,1048,\
+1059,1062,1068,1073,1077,1078,1085,1086,1087,\
+1182,1189,1191,1204,1240,1242,1243,1249,1250,1251,1252,1253,\
+1257,1259,1260,1261,1268,1279,1280,1281,1282,1284,\
+1303,1307,1308,1309,1310,1311,1328,1352,1353,1354,1355,1356,\
+1357,1362,1363,1364,1365,1388,1389,1390,1391,1392,\
+1393,1397,1413,1414,1415,1416,\
+4699,4700,4702,4703,1323
+#---------------------------------------------------------------
+SellBuffsetRecharger = 33,67,264,265,266,267,268,\
+269,270,271,272,273,274,275,276,277,\
+304,305,306,307,308,309,310,311,\
+349,363,364,365,366,\
+1002,1003,1004,1005,1006,1007,1008,1009,\
+1032,1033,1035,1036,1040,1043,1044,1045,1048,\
+1059,1062,1068,1073,1077,1078,1085,1086,1087,\
+1182,1189,1191,1204,1240,1242,1243,1249,1250,1251,1252,1253,\
+1257,1259,1260,1261,1268,1279,1280,1281,1282,1284,\
+1303,1307,1308,1309,1310,1311,1328,1352,1353,1354,1355,1356,\
+1357,1362,1363,1364,1365,1388,1389,1390,1391,1392,\
+1393,1397,1413,1414,1415,1416,\
+4699,4700,4702,4703,1323
+#---------------------------------------------------------------
+SellBuffsetTanker = 33,67,264,265,266,267,268,\
+269,270,271,272,273,274,275,276,277,\
+304,305,306,307,308,309,310,311,\
+349,363,364,365,366,\
+1002,1003,1004,1005,1006,1007,1008,1009,\
+1032,1033,1035,1036,1040,1043,1044,1045,1048,\
+1059,1062,1068,1073,1077,1078,1085,1086,1087,\
+1182,1189,1191,1204,1240,1242,1243,1249,1250,1251,1252,1253,\
+1257,1259,1260,1261,1268,1279,1280,1281,1282,1284,\
+1303,1307,1308,1309,1310,1311,1328,1352,1353,1354,1355,1356,\
+1357,1362,1363,1364,1365,1388,1389,1390,1391,1392,\
+1393,1397,1413,1414,1415,1416,\
+4699,4700,4702,4703,1323
+
+# Restricted zones id's. 
+# It's mean if 'SellBuffRestrictedZonesIds = 300003' , buff sell is impossible here.
+# Format: zoneId,zoneId, ... ,zoneId,zoneId
+# Default: SellBuffRestrictedZonesIds =(no spaces)
+SellBuffRestrictedZonesIds =
Index: head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java	(working copy)
@@ -142,6 +142,18 @@
 									stm_items.clearParameters();
 								}
 								break;
+							case L2PcInstance.STORE_SELLBUFF:
+								if (!Config.OFFLINE_SELLBUFF_ENABLED)
+									continue;
+								title = "";
+
+								stm_items.setInt(1, pc.getObjectId());
+								stm_items.setInt(2, 0);
+								stm_items.setLong(3, 0);
+								stm_items.setLong(4, pc.getBuffPrice());
+								stm_items.executeUpdate();
+								stm_items.clearParameters();
+								break;
 							default:
 								//_log.info( "OfflineTradersTable[storeTradeItems()]: Error while saving offline trader: " + pc.getObjectId() + ", store type: "+pc.getPrivateStoreType());
 								//no save for this kind of shop
@@ -254,6 +266,13 @@
 							player.setCreateList(createList);
 							player.getCreateList().setStoreName(rs.getString("title"));
 							break;
+						case L2PcInstance.STORE_SELLBUFF:
+							while (items.next())
+							{
+								player.getSellBuffMsg().startBuffStore(player, items.getInt(4), false);
+								break;
+							}	
+							break;
 						default:
 							_log.info("Offline trader "+player.getName()+" finished to sell his items");
 					}
@@ -385,6 +404,18 @@
 							stm_items.clearParameters();
 						}
 						break;
+					case L2PcInstance.STORE_SELLBUFF:
+						if (!Config.OFFLINE_SELLBUFF_ENABLED)
+							break;
+						title = "";
+
+						stm_items.setInt(1, pc.getObjectId());
+						stm_items.setInt(2, 0);
+						stm_items.setLong(3, 0);
+						stm_items.setLong(4, pc.getBuffPrice());
+						stm_items.executeUpdate();
+						stm_items.clearParameters();
+						break;
 					default:
 						//_log.info( "OfflineTradersTable[storeOffliner()]: Error while saving offline trader: " + pc.getObjectId() + ", store type: "+pc.getPrivateStoreType());
 						//no save for this kind of shop
Index: head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java	(working copy)
@@ -37,11 +37,13 @@
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.VersionCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Voting;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.sellbuff;
 
 /**
  * This class ...
  * @version $Revision: 1.1.4.6 $ $Date: 2009/05/12 19:44:09 $
  */
+@SuppressWarnings("unused")
 public class VoicedCommandHandler
 {
 	private static Logger _log = Logger.getLogger(GameServer.class.getName());
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBypassToServer.java	(working copy)
@@ -121,6 +121,112 @@
 			{
 				comeHere(activeChar);
 			}
+			// SELL BUFF SYSTEM: ->
+			else if(_command.startsWith("sellbuffpage")){ //load page number (player or pet) //to sellbuff system. //
+				
+				int page = 0;
+				if(_command.length() == 13 || _command.length() == 17){
+					String x = _command.substring(12,13);
+					try{
+						page = Integer.parseInt(x);
+					}catch(Exception e){
+						_log.info(e.getMessage());
+					}
+				}
+				
+				int subPage = 0;
+				if(_command.length() == 17){
+					String y = _command.substring(16,17); // zmieniono nie testowano.
+					try{
+						subPage = Integer.parseInt(y);
+					}catch(Exception e){
+						_log.info(e.getMessage());
+					}
+				}
+				
+				
+				L2PcInstance target = null;
+								
+				if(activeChar.getTarget() instanceof L2PcInstance)
+				target = (L2PcInstance) activeChar.getTarget();
+								
+				if(target == null)
+					return;
+				
+				activeChar.getSellBuffMsg().setPage(target, activeChar, page, subPage);
+			}
+			else if(_command.startsWith("buff")){ //load buffId from html->bypass. //to sellbuff system. //
+				String x = _command.substring(4);
+				int id = Integer.parseInt(x);
+				L2PcInstance target = null;
+								
+				if(activeChar.getTarget() instanceof L2PcInstance)
+				target = (L2PcInstance) activeChar.getTarget();
+								
+				if(target == null)
+					return;
+				
+				activeChar.getSellBuffMsg().buffBuyer(target, activeChar, id);
+			}
+			else if(_command.startsWith("zbuffset")){ //load buffset from html->bypass. //to sellbuff system. //
+				String x = _command.substring(8);
+				int id = Integer.parseInt(x);
+				L2PcInstance target = null;
+								
+				if(activeChar.getTarget() instanceof L2PcInstance)
+				target = (L2PcInstance) activeChar.getTarget();
+								
+				if(target == null)
+					return;
+				
+				activeChar.getSellBuffMsg().buffsetBuyer(target, activeChar, id);
+			}
+			else if(_command.startsWith("petbuff")){ //load buffId from html->bypass. //to sellbuff system. //
+				String x = _command.substring(7);
+				int id = Integer.parseInt(x);
+				L2PcInstance target = null;
+								
+				if(activeChar.getTarget() instanceof L2PcInstance)
+				target = (L2PcInstance) activeChar.getTarget();
+								
+				if(target == null)
+					return;
+				
+				activeChar.getSellBuffMsg().buffBuyerPet(target, activeChar, id);
+			}
+			else if(_command.startsWith("zpetbuff")){ //load buff set from html->bypass.  //to sellbuff system. //
+				String x = _command.substring(8);
+				int id = Integer.parseInt(x);
+				L2PcInstance target = null;
+								
+				if(activeChar.getTarget() instanceof L2PcInstance)
+				target = (L2PcInstance) activeChar.getTarget();
+								
+				if(target == null)
+					return;
+				
+				activeChar.getSellBuffMsg().buffsetBuyerPet(target, activeChar, id);			
+			}
+			else if(_command.startsWith("actr")){ //to sellbuff system. //
+				try{
+					String l = _command.substring(5);
+					int p = 0;
+
+					p = Integer.parseInt(l);
+			
+					activeChar.getSellBuffMsg().startBuffStore(activeChar, p, true);
+				}catch(Exception e){
+					activeChar.sendMessage("Wrong field value!");
+				}
+			}
+			else if(_command.startsWith("pctra")){ //to sellbuff system. //
+				try{
+					activeChar.getSellBuffMsg().stopBuffStore(activeChar);
+				}catch(Exception e){
+					
+				}
+			}
+			// -> SELL BUFF SYSTEM.
 			else if(_command.startsWith("player_help "))
 			{
 				playerHelp(activeChar, _command.substring(12));
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -618,6 +618,10 @@
 		// Color System checks - Start
 		// Check if the custom PvP and PK color systems are enabled and if so check the character's counters
 		// and apply any color changes that must be done. Thankz Kidzor
+		
+		// Sellbuff system:
+		activeChar.getSellBuffMsg().restoreSellerData(activeChar);
+
 		/** KidZor: Ammount 1 **/
 		if (activeChar.getPvpKills() >= Config.PVP_AMOUNT1 && Config.PVP_COLOR_SYSTEM_ENABLED)
 			activeChar.updatePvPColor(activeChar.getPvpKills());
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(revision 991)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -126,6 +126,7 @@
 import com.l2jfrozen.gameserver.model.PcWarehouse;
 import com.l2jfrozen.gameserver.model.PetInventory;
 import com.l2jfrozen.gameserver.model.PlayerStatus;
+import com.l2jfrozen.gameserver.custom.SellBuffMsg;
 import com.l2jfrozen.gameserver.model.ShortCuts;
 import com.l2jfrozen.gameserver.model.TradeList;
 import com.l2jfrozen.gameserver.model.actor.appearance.PcAppearance;
@@ -520,6 +521,9 @@
 	
 	/** The Constant STORE_PRIVATE_PACKAGE_SELL. */
 	public static final int STORE_PRIVATE_PACKAGE_SELL = 8;
+	
+	/** The Constant STORE_SELLBUFF. */
+	public static final int STORE_SELLBUFF = 12;
 
 	/** The fmt. */
 	private final SimpleDateFormat fmt = new SimpleDateFormat("H:mm.");
@@ -1040,6 +1044,11 @@
 	/** The _hero. */
 	private boolean _hero = false;
 	
+	/** If player is selling buffs value = true. */
+	private boolean _sellbuff = false;
+	private int _buffprice = 0;
+	private SellBuffMsg _sbm = new SellBuffMsg();
+	
 	/** The _donator. */
 	private boolean _donator = false;
 
@@ -4583,6 +4592,9 @@
 			return;
 		}
 		
+		if(isSellBuff())
+			return;
+
 		if(L2Event.active && eventSitForced)
 		{
 			sendMessage("A dark force beyond your mortal understanding makes your knees to shake when you try to stand up ...");
@@ -7092,8 +7104,40 @@
 
 		// Target the new L2Object (add the target to the L2PcInstance _target, _knownObject and L2PcInstance to _KnownObject of the L2Object)
 		super.setTarget(newTarget);
+		
+		if(Config.SELL_BUFF_ENABLED){
+			if(newTarget instanceof L2PcInstance && ((L2PcInstance) newTarget).isSellBuff()){
+				this.getSellBuffMsg().setLastPage(0); // Back to first page when new target.
+				L2PcInstance seller = (L2PcInstance)newTarget;
+				this.getSellBuffMsg().sendBuyerResponse(seller, this, false);
+			}
+		}
+		
 	}
+	
 
+	
+	public boolean isSellBuff(){
+		return _sellbuff;
+	}
+			
+    public void setSellBuff(boolean j){
+    	_sellbuff = j;
+    	if(j){
+    		_privatestore = STORE_SELLBUFF;
+    	}else{
+    		_privatestore = STORE_PRIVATE_NONE;
+    	}
+    }
+		 
+    public int getBuffPrice(){
+    	return _buffprice;
+    }
+		    
+    public void setBuffPrice(int x){
+    	_buffprice = x;
+    }
+    
 	/**
 	 * Return the active weapon instance (always equiped in the right hand).<BR>
 	 * <BR>
@@ -9190,7 +9234,7 @@
 	 * <li>3 : STORE_PRIVATE_BUY</li><BR>
 	 * <li>4 : buymanage</li><BR>
 	 * <li>5 : STORE_PRIVATE_MANUFACTURE</li><BR>
-	 *
+	 * <li>6 : PRIVATE_SELLBUFF</li><BR>
 	 * @param type the new private store type
 	 */
 	public void setPrivateStoreType(int type)
@@ -17845,6 +17889,10 @@
 	{
 		return Config.FREIGHT_SLOTS + (int) getStat().calcStat(Stats.FREIGHT_LIM, 0, null, null);
 	}
+	
+	public SellBuffMsg getSellBuffMsg(){
+		return _sbm;
+	}
 
 	/**
 	 * Gets the dwarf recipe limit.
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/sellbuff.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/sellbuff.java	(revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/sellbuff.java	(working copy)
@@ -0,0 +1,112 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
+
+import com.l2jfrozen.Config;
+import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+
+/**
+ * 
+ * 
+ * @author Matthew
+ */
+public class sellbuff implements IVoicedCommandHandler
+{
+	private static final String[] VOICED_COMMANDS = {"sellbuffs"};
+		
+	@SuppressWarnings("static-access")
+	@Override
+	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+	{
+		if(activeChar == null)
+			return false;
+		
+		if(activeChar.isDead() || activeChar.isAlikeDead()){
+			activeChar.sendMessage("You are dead , you can't sell at the moment");
+			return false;
+		}
+		else if(activeChar.isInOlympiadMode() || Olympiad.getInstance().isRegistered(activeChar)){
+			activeChar.sendMessage("You are in olympiad , you can't sell at the moment");
+			return false;
+		}
+		else if(activeChar.atEvent){
+			activeChar.sendMessage("You are in event , you can't sell at the moment");
+			return false;
+		}
+		else if(!activeChar.isInsideZone(L2PcInstance.ZONE_PEACE)){
+			activeChar.sendMessage("You are not in peacefull zone , you can sell only in peacefull zones");
+			return false;
+		}
+		else if(isInRestrictedZone(activeChar)){
+			activeChar.sendMessage("You can't sell in restricted zone");
+			return false;
+		}
+		else if(activeChar.getPvpFlag() > 0 || activeChar.isInCombat() || activeChar.getKarma() > 0){
+			activeChar.sendMessage("You are in combat mode , you can't sell at the moment");
+			return false;
+		}
+		else if(!Config.SELL_BUFF_CLASS_LIST.contains(Integer.toString(activeChar.getClassId().getId()))){
+			activeChar.sendMessage("Your class can't sell buffs");
+			return false;
+		}
+		else if(activeChar.getLevel() < Config.SELL_BUFF_MIN_LVL){
+			activeChar.sendMessage("You can sell buffs on "+Config.SELL_BUFF_MIN_LVL+" level");
+			return false;
+		}
+		// summoner classes exception, buffs allowed from 56 level.
+		else if(activeChar.getClassId().getId() == 96 || activeChar.getClassId().getId() == 14 || activeChar.getClassId().getId() == 104 || activeChar.getClassId().getId() == 28){
+			if(activeChar.getLevel() < 56){
+				activeChar.sendMessage("You can sell buffs on 56 level");
+				return false;
+			}
+		}
+		
+		activeChar.getSellBuffMsg().sendSellerResponse(activeChar);
+
+	    return true;
+	}
+
+	
+	@Override
+	public String[] getVoicedCommandList()
+	{
+		return VOICED_COMMANDS;
+	}
+	
+	private boolean isInRestrictedZone(L2PcInstance activeChar){
+		for(int i=0; i<Config.SELL_BUFF_RESTRICTED_ZONES_IDS.size(); i++){
+			try{
+				if(activeChar.isInsideZone(Integer.parseInt(Config.SELL_BUFF_RESTRICTED_ZONES_IDS.get(i)))){
+					return true;
+				}
+			}catch(Exception e){
+				return false;
+			}
+			
+		}
+		return false;
+	}
+
+}
+
+
+
+

 

6 answers to this question

Recommended Posts

  • 0
Posted

1) seller.sitDown(); remove this line

2) buyer.sendMessage("You buyed: "+skill.getName()+" for "+seller.getBuffPrice()+" adena.");

before this line send a magicskilluse packet, in acis should be like this

 

player.broadcastPacket(new MagicSkillUse(activeChar, player, id, 1, 1, 1));

  • 0
Posted

Could someone answer me something?, I put the code as it is here. It didn't give me any error, but when I put /sellbuff or /bufshop nothing happens. Does anyone know what it could be? I use l2jfrozen

  • 0
Posted
On 2/6/2022 at 8:25 PM, Kusaty said:

Could someone answer me something?, I put the code as it is here. It didn't give me any error, but when I put /sellbuff or /bufshop nothing happens. Does anyone know what it could be? I use l2jfrozen

this is in voiced commandhandler friend so he uses the .sellbuffs command

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Little brother - without a reputation, you need to be quiet here when you open your mouth) firstly, I have my own developments. If you live in a nightmare or delirium from Russian garbage dumps, google RED-TEAM REVERSECODE and you will see that the best reverse engineer has been on the market for over 30 years.   🥰
    • Ah Alisa, the Russian scene knows exactly who you are and what you do. You're selling other people's stuff, acting like it's yours, hiding behind that dumb "goddess" thing, and then insulting people just for asking about prices or products.   MaxCheaters is basically the only place where you can still get away with this.   Give credit where credit is due and stop misleading the community. At this point, it's just pathetic.
    • L2JOne — Interlude C6 Level 86, S84 grade, clan level 11 — on an Interlude C6 core. 67 systems. Desktop Control Center. Edit the server while it runs. FULL SYSTEM CATALOGUE  ·  WEBSITE  ·  TELEGRAM Most Interlude packs give you a clean core and leave the interesting part to you. This one ships with the content already written — the economy systems, the event engine, the retention loop and the admin tooling a live server actually needs after week one. Everything is configurable from open files, and most of it is editable with the server running, from a Community Board panel or from the desktop Control Center. You should not need a new build to fix a broken skill or retune a drop rate on a Saturday night. QUICK FACTS Level cap 86, S80 and S84 grades, clan level 11 — High Five progression on an Interlude core 909 High Five items — Dynasty, Vesper and Icarus gear, Forgotten Scrolls, Dolls, Agathions 67 systems delivered ready — new, rebuilt, expanded or fixed 689 XML files — items, NPCs, skills, spawns, zones and every custom system, all open 343 quests implemented 147 GM commands, each with its own access level 95 database tables with install and versioned migration scripts 22 Community Board panels with open HTML 8 event modes that schedule themselves Java, JDK 22+, MariaDB / MySQL Desktop Control Center in English, Portuguese and Spanish HIGH FIVE CONTENT ON AN INTERLUDE CORE This is the part most Interlude packs do not have. The core is Interlude C6 — the chronicle your players know, with the combat and the pace they came for — but the progression ceiling is not the Interlude one. The end game was extended with High Five content, server side and client side. Level cap 86. The full experience table up to 86, with the rate brackets to match: five independent XP, SP and currency ranges covering 1-52, 52-61, 61-76, 76-78 and 78-86, so you shape the curve at the top instead of letting it flatten. S80 and S84 grades. Two grades above S, each with its own crystal, enchant bonus and gemstone cost — so the enchant and crystallization economy keeps working at the new ceiling instead of stopping at S. Clan level 11. Clan progression continues past the Interlude cap, with Blood Oath, Blood Alliance and Blood and Sand as the upgrade materials, and the clan skills that come with those levels. 909 High Five items. Dynasty, Vesper and Icarus weapons and armour with their augments and special abilities, 112 Forgotten Scrolls, Dolls and Agathions. High Five skill set. The skill ranges that come with the higher levels and the new gear are implemented, not stubbed — including the Doll and Agathion skills. Client tables included. The item name and grp tables for all of it ship with the pack, and the Control Center reads and repacks them. You are not left to reverse-engineer the client side of a Vesper set on your own. The practical effect: an Interlude server that does not run out of content at 80. Your players keep the chronicle they wanted and still have somewhere to go after the S set. DESKTOP CONTROL CENTER Start, restart and reload configuration Memory, GC, threads and CPU in real time Live log console and content search Database browser, scheduled backup, install and migration HWID bans and IP lookup Item editor with icon preview, plus multisell, NPC, class and config editors Item cloning, ID migration, item-pack import Reads and repacks the client itemgrp / npcgrp / skillgrp Automatic backup before every save Builds incremental updates, hash-verified per file WHAT IS INSIDE NEW = not in stock Interlude  ·  REBUILT = existed, rewritten from scratch  ·  EXPANDED = original kept, features added  ·  IMPROVED = original fixed and revised ECONOMY AND ITEMS — 11 systems Offline Shop — REBUILT. Keeps selling after the client closes, restores itself on restart, expires in a number of days you set. Own name colour and visual effect, no damage in peace zones, can be restricted to VIP only. Marketplace — NEW. Persistent market inside the Community Board. Listings stay up with the player offline, delivery is automatic, the listing fee is configurable, every sale logged. Enchant System — REBUILT. Rate per level and per scroll type in an open file. You choose what happens on failure: break, keep or drop one level. In-game editing panel, log of every attempt, automatic high-enchant announce. Custom currency — NEW. Any item as the private store currency: buy, sell and package sale, including the balance the client shows. Reward capsules — NEW. Boxes that draw items by weight, built in an open file. Event, donation and boss boxes with no code. Timed items and passes — NEW. Expire in real time, not play time, and keep counting offline. Noble, VIP, Kamaloka and auto farm passes ship ready. Equipment skins — NEW. Change the look of weapon and armour without touching a single stat. Accessory sets — NEW. The armour-set concept applied to rings, earrings and necklaces, with their own bonus. Deferred delivery — NEW. Items delivered at the player's next login, so donations, vote rewards and event prizes never get lost. Redeem coupons — NEW. GM generates a code, the player redeems it once. Campaigns, downtime compensation, streamer partnerships. Price and drop control — NEW. Single price across every merchant, all-free mode for test servers, gold bar conversion, drop block by grade on death. EVENTS AND PVP — 9 systems Event engine — NEW. Open-file catalogue: which events exist, when they open, how many players they need, what the prize is. Persistent ranking, level-balanced teams, rejoin after a disconnect. 8 event modes — NEW. Team vs Team, Deathmatch, Capture the Flag, Battle Royale with its own map, Hunting Grounds, Party, Spoil and Fight Boss. Each can run at a different time. Tournament — NEW. 1v1, 3v3, 5v5 and 9v9, solo and party registration. Per-format duration, run window, class composition limit and prize. Function zones — NEW. A whole PvP area from a single file: entry fee, auto-flag, anonymous mode, forbidden items and skills, temporary noblesse, restart lock, monster waves, a boss and automatic shutdown. Rotating siege — NEW. One castle drawn per cycle instead of nine independent schedules. The winner moves to the next castle an hour before the following siege, and no castle repeats until every other one has been fought over. Classic mode still available. Castle governor — NEW. The clan holding the active castle taxes merchants, board shop, gatekeepers and marketplace server-wide, and earns a drop, XP and skill bonus. Own vault and statue, wyvern rights for the leader. Every cap set by you. Olympiad — EXPANDED. Custom period and duration, battle limit, enchant cap in the arena, separate mage and fighter buffs, minimum PvP to enter, participant limit per IP, monthly winners. Event shop — NEW. Event currency buys prizes that exist nowhere else. Editable in-game. Anti-feed and dualbox control — NEW. XP and drop blocked on repeated same-IP kills, character limit per IP, whitelist per zone and instance, participant limit per IP with optional HWID check for events. PROGRESSION AND RETENTION — 13 systems VIP System — NEW. Tiers with their own XP/SP/drop rates, rewards and real-time duration. Benefits keep working in the offline shop, activation item configurable, status panel on the board. Daily missions — NEW. Objectives by action type, automatic scheduled reset, reward per mission, progress saved per character. Includes a daily login reward. Auto Farm — NEW. The player picks the skill list, monster priority and target type (mob, raid or grand boss), and can assist the summon or the party leader. Daily quota unlocked by a pass. You decide: everyone, VIP only, or off. Auto Potion (ACP) — NEW. Separate HP / MP / CP percentage triggers, configured in-game. Removes the incentive to run third-party software. Player-to-player buff selling — NEW. The human buffer gets its job back: advertise your own buffs, set the price, sell to whoever passes. Scheme Buffer — IMPROVED. Schemes saved per account, applied from the NPC and from the board, with a cost and skill list you control. AIO character — NEW. All-in-one character with its own buffs and saved macros, duration and type set by you. Level reward — NEW. Automatic prize on reaching each level, right where most new players give up. Rates per level bracket — NEW. Five independent brackets between 1 and 86 for XP, SP and currency, plus an exclusive rate inside instances. Subclass and skill stacking — EXPANDED. Configurable cap, switching anywhere, selective stacking across subclasses with a block list. Agathion — NEW. Companion pet that follows, talks and optionally heals by percentage. Restored at login. Pet and summon persistence — IMPROVED. Pet and servitor return after a reconnect with buffs and cooldown intact. A dropped connection stops costing ten minutes of rebuffing. Chat commands — NEW. A whole layer absent from stock Interlude: .menu .farm .acp .mission .vote .sell .register .instance .leader .crystal .recipe .aiomacro CONTENT AND WORLD — 8 systems Instanced territories — NEW. Private farm area per player or party, built from the map regions. Each region has its own monster list, respawn, entry policy and a trigger-released boss. No instance sees another, and the drop rate inside is exclusive. Spot fighting is over. Kamaloka — NEW. Instanced dungeon with its own scoring, a board ranking and an entry pass as an item. Simulated players — NEW. Server-controlled characters with combat, healing and potion AI, town walking routes and template clans. Visible in /who. A freshly opened server stops looking empty. Champion mobs — EXPANDED. Own HP, attack and speed, configurable aura, multiplied XP/SP/drop, exclusive drop list, optional guaranteed enchant. Boss info and reward — NEW. Schedule and status on the board, participation reward per raid, raid points to the clan, loot protection, grand boss death announce. Original Interlude content — IMPROVED. 343 quests, 9 castles with working sieges, 44 clan halls with auction and functions, Seven Signs, Festival of Darkness, manor, fishing. Grand boss AI revised — Antharas, Baium, Frintezza, Sailren. Polymorph — NEW. Visual transformation of players and NPCs from an open file. Seasonal events — NEW. Mammon Spawn and Master of Enchanting as calendar scripts. COMMUNITY BOARD — 22 panels Player panel — NEW. Board home with server info, rules, active promotions and a shortcut to every other panel. Server shop — NEW. A merchant inside the board, prices subject to the ruling clan's tax. Rankings — NEW. PvP, PK, level, clan raid points, Kamaloka score and event ranking — six lists updated live, with automatic weekly prizes. Donation panel — NEW. Balance, product and delivery on the character, integrated with the website system. Every delivery logged. Party matching — NEW. A party noticeboard by level, class and goal. Live information panels — NEW. Boss schedules, active events, open instances and territories, governor panel, channel videos with a watch reward, vote reward. All read from the real server state. Forum, mail and friends — IMPROVED. Internal forum, character mail, friend list, favourites and a personal memo. All panel HTML is open — change the visual identity with no recompile. ADMINISTRATION — 7 systems Operations panel — NEW. The desktop Control Center described above. Visual content editors — NEW. Items with icon preview, plus multisell, NPC, class and configuration editors. Item cloning, ID migration, item pack import, automatic backup before every save. Client file editor — NEW. itemgrp / npcgrp / skillgrp read, edit and repack, with ID migration synchronized between server and client. Adding a custom item stops being a manual process across three tools. In-game editors — NEW. Balance, event engine, function zones, territories and system config edited from a board panel, applied without restart, automatic backup of every changed file. GM commands — EXPANDED. 147 commands with per-command access level: zone creation by vertices in-game, spawns saved to the database, NPC route editor with preview, event / balance / enchant panels, HWID management. Persistent configuration — NEW. What the GM changes from the panel is stored and reapplied at next boot. Update package — NEW. The build ships only what changed, hash-verified per file, ready to publish to your players. SECURITY AND PROMOTION — 6 systems Guard and HWID — NEW. Validation at startup, machine identification, window limit per machine, configurable grace mode, access log per account, ban and lookup by GM command. Discord logging — NEW. 28 channels: enchant, drop, pickup, trade, warehouse, multisell, donation, Olympiad results, grand boss deaths, player and GM logins, suspicious IP alerts, chat keyword filter. When a player complains about a missing item, the answer is in the channel. Vote reward — NEW. 8 top lists, individual reward, per-site cooldown, global vote goal with a collective prize. YouTube integration — NEW. Turns your player base into your channel audience. Full section below. Announcements and promotions — NEW. Rotating in-game announces, time-boxed promotions with a board panel. Build protection — NEW. Obfuscation plus optional class encryption with its own loader. YOUTUBE — TURN YOUR PLAYERS INTO YOUR CHANNEL AUDIENCE Most packs call "YouTube integration" a button that opens a link. This one is a closed loop between your channel and the game, and the player never leaves the client. 1. Your channel, inside the game. The server queries the YouTube Data API and rewrites its own video list — title, description and publish date. You never maintain a list by hand: publish on YouTube and the panel updates itself. Players search it and pick what to watch. 2. The video plays inside the client. No alt-tab, no browser, nobody logs out to watch. The server reads the real duration of that video from YouTube and sets the timer to that exact length — the message on screen says how long is left. The player is held away for the duration, so watching is watching, not a tab left open in the background. 3. Watch time, not clicks. This is the part that matters for a channel. A click that bounces after three seconds does nothing for you. What reaches your channel here is a completed view, because the reward only exists if the video runs to the end. 4. The reward lands automatically. Items go straight to the character with an on-screen confirmation and a chat line naming the video. The reward items are yours to configure. Every upload reaches everyone online. A new video triggers an in-game announcement with a message you write. No ad spend, no posting the link in five Discords and hoping. It becomes a habit, not a one-off spike. The daily cap resets every day, so the same players come back tomorrow. Your back catalogue keeps earning views months after publication. Abuse controls built in. One reward per video per day, a configurable daily cap across all videos, one video in progress at a time, everything stored per character in the database — relogging resets nothing. Configurable: API key, channel, how many videos to pull, whether to announce, the announcement text, the reward items and the daily reward cap. A server with 300 players online is 300 completed views on every upload. That is the difference between a channel nobody sees and a channel that grows with the server. COMBAT AND BALANCE — 6 systems Balance per class — NEW. Damage dealt and taken per class, split by attack type, edited from the board, applied without restart, automatic backup so you can roll back. Balance per skill — NEW. Power, duration and behaviour per class, without touching the original skill XML. The broken skill of the month is fixed on the spot, not in the next release. Combat caps — NEW. Hard cap on attack and cast speed, no-cooldown skill list, skill duration overridden by ID, fixed cancel time, configurable expertise penalty. Extra effects and conditions — NEW. 9 effects from later chronicles ported to Interlude, 7 new skill conditions, weapon-swap skill, skill that teaches a skill, extra targets. Servitor share — NEW. The summoner passes a percentage of their stats to the servitor. Geoengine and movement — IMPROVED. Revised pathfinding with instance support. WHAT YOU GET The distribution, compiled and licensed for your project The complete datapack — 689 XML files and the Community Board HTML, open to edit Database scripts: install plus versioned migrations Desktop Control Center (EN / PT / ES) Continuous updates through the update system Direct support during setup Optional: the L2JOne Website System — player accounts, donations with automatic in-game delivery, admin dashboard, 4 payment methods, 4 languages. Sold separately, ask if you want both. HONEST NOTES Ships compiled and licensed per project. If you need full Java sources, ask up front — do not assume it is included. Guard/HWID and the build protection are real operational controls, not a promise of absolute protection. Anyone selling you "unhackable" is selling you a story. Two systems ship disabled and are still marked in-development in the config: Fake Farming and Timed Amulets. Everything else in this list is working. The game client itself is not distributed here. The item name and grp tables for the High Five content are included, and the Control Center edits itemgrp / npcgrp / skillgrp, but assembling and hosting the client is yours. CONTACT Full system catalogue: l2jone.com/fonte Website: l2jone.com Telegram: @Williams0ff E-mail: support@l2jone.com Pricing depends on the plan and on what you want bundled — message me and I will send the options. I am open to using the forum's middleman / escrow service. I have no reputation here yet, and I think asking for it is fair. Questions in the topic are welcome — I answer them here so the next person reading finds the answer too.    Scrolls Augments New Augment Acessories    
    • ⚡ Weekend special! Upgrade your personal Google account with 5TB storage and Gemini Pro in under 60 seconds.
    • Don't cry, it's a game. If it makes you cum on your monitor, of course, enjoy it. My business has been running for years and will continue to do so. No matter what happens here, the dogs bark, the caravan moves on. Start developing game engines - post them too - after all, I create them too) Salvation:Arena (MOBA) Unreal Engine RED-TEAM REVERSECODE Аліса займається розробкою ще з часів створення денді та сеги-діти які створюють шум для мене просто діти) За ці роки роботи я бачила багато різних людей у цій сфері все що я думаю про це не плачте та насолоджуйтесь життям слава ураїне - котись на свій бразильський форум)   If you'd simply asked me in a private message on the forum to be reinstated, you'd have been unblocked without a problem. I have no enemies—it's just business. I can make any product on the market, models and effects, copyrights—complex tools—at my age, people run large companies. I'm pleased that our beloved MXC* forum will now have a lot of free products. I earn a maximum of $200-$300 a year from this industry. If that excites you, well, have fun with us.       I moderate many gaming communities, here's one of them  if I hated you, you'd be out of here in a minute, brother  so don't get carried away with your wet dreams. On the topic of free work, start doing it yourself—the forum needs good free stuff. Someone will definitely like you here and throw a flower on your grave. Besides, you're forgetting that half the forum is involved in this interface development business and for many developers, it's a good income. So, you want to make life sweeter for them all, not just for me it's actually nice that you're such a noble young man.   Besides, I usually work from behind the scenes and don't move anywhere in the market but nothing stops me from doing what others do - working from the shadows  you won't even see that I'm doing it, it's so funny.   Start doing free work. You promised to do it well and post it to communities on time. Good luck! We'll have fun, that's great!🥰   завжди приємно поспілкуватися з веселими людьми              
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..