Spanky
Nombre de messages : 392 Age : 42 Localisation : Osaka, Japon Date d'inscription : 01/12/2007
| Sujet: Faire en sorte qu'un pet consomme des baby spice 28/07/09, 11:21 am | |
| Voila mon probleme je cherche a implanter des pets dans le jeu je peut les summon ils ont leur skill ig je peut mettre les bay spice dans leur inventaire mais quand je clik droit dessus your pet cannot use this item or j'ai declarer l'item dans mon core quelqu'un pourrait m'aider la dessus voici mon code - Code:
-
Index: lin2srv/java/net/sf/l2j/gameserver/model/L2PetDataTable.java =================================================================== --- lin2srv/java/net/sf/l2j/gameserver/model/L2PetDataTable.java (revision 14) +++ lin2srv/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
| |
|