int pet_unlocktarget(struct pet_data *pd) { nullpo_ret(pd); pd->target_id = 0; pet_stop_attack(pd); pet_stop_walking(pd,1); return 0; }
int pet_unlocktarget(struct pet_data *pd) { nullpo_ret(pd); pd->target_id=0; pet_stop_attack(pd); pet_stop_walking(pd, STOPWALKING_FLAG_FIXPOS); return 0; }
static int pet_performance(struct map_session_data *sd, struct pet_data *pd) { int val; if (pd->pet.intimate > 900) val = (pd->petDB->s_perfor > 0)? 4:3; else if(pd->pet.intimate > 750) //@TODO: This is way too high val = 2; else val = 1; pet_stop_walking(pd,2000<<8); clif_pet_performance(pd, rnd()%val + 1); pet_lootitem_drop(pd,NULL); return 1; }