Page 1 of 1

I need help for pet food

Posted: Wed Jul 29, 2009 8:34 am
by tsubasahitosan
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:last rev 3313
L2JDP Revision Number:
i try to add a pet on game , i can summon i can put food on inventory et but when i right clik game said me your pet can't use this item
or i add him on core
check my code can you help me plz

Code: Select all

Index:java/net/sf/l2j/gameserver/model/L2PetDataTable.java===================================================================--- java/net/sf/l2j/gameserver/model/L2PetDataTable.java	(revision 14)+++java/net/sf/l2j/gameserver/model/L2PetDataTable.java	(working copy)@@ -183,6 +183,11 @@ 		return npcId == 16035; 	} +	public static boolean isSupportPet(int npcId)+	{+		return npcId > 16042 && npcId < 16053 && npcId != 16049;+	}+	 	public static boolean isPetFood(int itemId) 	{ 		switch (itemId)@@ -280,6 +285,15 @@ 			case 12782:// Baby Cougar 			case 12781:// Baby Kookaburra +			case 16043://fox shaman+			case 16044://wild beast fighter+			case 16045://white weasel+			case 16046://fairry princess+			case 16050://owl machin+			case 16051://spirit shaman+			case 16052://toy knight+			case 16053://turtle ascentic+			 				return new int[] { 7582 }; 			case 16034:// Improved Baby Buffalo 			case 16036:// Improved Baby Cougar	@@ -318,6 +332,14 @@ 			case 10313: // improved kookaburra 			case 10426: // Fenrir 			case 10611: // White Fenrir+			case 13020: // Fox Shaman Hunting Helper Necklace+			case 13017: // White Weasel Hunting Helper Necklace+			case 13018: // Fairy Princess Hunting Helper Necklace+			case 13019: // Wild Beast Fighter Hunting Helper Necklace+			case 13548: // Toy Knight Hunting Helper Necklace+			case 13550: // Owl Monk Hunting Helper Necklace+			case 13551: // Turtle Ascetic Hunting Helper Necklace+			case 14062: //spirit shaman truc  			{ 				return true;@@ -367,7 +389,15 @@ 			case 12780:// Baby Buffalo 			case 12782:// Baby Cougar 			case 12781:// Baby Kookaburra-				return new int[] { 6648, 6649, 6650 };+			case 16043://fox shaman+			case 16044://wild beast fighter+			case 16045://white weasel+			case 16046://fairry princess+			case 16050://owl+			case 16051://spirit shaman+			case 16052://toy knight+			case 16053://turtle ascentic+				return new int[] { 6648, 6649, 6650, 13020, 13019, 13017, 13018, 13550, 14062, 13548, 13551 };  			case 16034:// Improved Baby Buffalo 			case 16036:// Improved Baby Cougar 

Re: I need help for pet food

Posted: Thu Jul 30, 2009 1:57 am
by tsubasahitosan
anyone can help me plz

Re: I need help for pet food

Posted: Fri Jul 31, 2009 10:30 pm
by tsubasahitosan
bump anyone have idea ?