NPC Buffer by House for Epilogue

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
INDIGO
Posts: 30
Joined: Sun Feb 26, 2006 2:42 pm

NPC Buffer by House for Epilogue

Post by INDIGO »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 3817:
L2JDP Revision 6895:


When compiling you receive this message:

Code: Select all

     [javac] Note: D:\workspace\epilog_L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2BufferInstance.java uses or overrides a deprecated API.    [javac] Note: Recompile with -Xlint:deprecation for details. 
NPS buffer works Buffs only sets the player on the pet buffs not set.

How to remove this message?
How do I set so buff and a pet?
mochitto
Posts: 87
Joined: Fri Jul 18, 2008 2:27 pm
Location: Slovakia

Re: NPC Buffer by House for Epilogue

Post by mochitto »

For pet buff

Code: Select all

 else if (currentCommand.startsWith("givebuffs"))	    {	       if(player.isInOlympiadMode())	           return; 	       String targettype = st.nextToken();	       String scheme_key = st.nextToken(); 	       if (targettype.equalsIgnoreCase("pet"))	       {	    	   L2Summon petTarget = player.getPet(); 	    	   if (petTarget != null)	    		   	    	   {	    		   	for (L2Skill sk : CharSchemesTable.getInstance().getScheme(player.getObjectId(), scheme_key))	    	   		{	        	   		sk.getEffects(player, petTarget);	    	   		}	    	   }	    	   else	    		   player.sendMessage("No have pet!");	       }	       else	       {	    	   for (L2Skill sk : CharSchemesTable.getInstance().getScheme(player.getObjectId(), scheme_key))	           {	    		   L2Character target = player;	    		   sk.getEffects(player, target);	           }  	       }	    } 
Sorry for my bad english.
Post Reply