Is it possible to block certain items from being placed inside of a pet's inventory? If not, is it possible to automatically make specific pets be returned to egg when entering a map?
you can find it on conf/battle/pet.confAny script documentations for this @@Dastgir? Not sure if this can be done through OnPCLoadMapEvent.
nothing is impossibleif you willing to touch the source code, I move to source support I mean plugin request, since I only write plugins nowIs it possible to block certain items from being placed inside of a pet's inventory?
there is no known way to automatically turn them into egg form, but there is a *getpetinfo script commandthe command will return 0 if no pet is foundIf not, is it possible to automatically make specific pets be returned to egg when entering a map?
#include "common/hercules.h"#include <stdio.h>#include <string.h>#include <stdlib.h>#include "map/pet.h"#include "common/HPMDataCheck.h"HPExport struct hplugin_info pinfo = { "PetNoLootItemID", SERVER_TYPE_MAP, "0.1", HPM_VERSION,};int pet_ai_sub_hard_lootsearch_pre( struct block_list *bl, va_list *ap ) { struct flooritem_data *fitem = (struct flooritem_data *)bl; // pet will no loot these items if ( fitem->item_data.nameid == 501 || fitem->item_data.nameid == 502 || fitem->item_data.nameid == 503 || fitem->item_data.nameid == 504 || fitem->item_data.nameid == 505 ) hookStop(); return 0;}HPExport void plugin_init (void) { addHookPre( "pet->ai_sub_hard_lootsearch", pet_ai_sub_hard_lootsearch_pre );}
We use essential cookies to make this site work, and optional cookies to enhance your experience.