PokemonRO Posted August 10, 2012 Posted August 10, 2012 Got a weird problem here, is there a code in the source that is not allowing pets to attack the mob? Example: If I made doppelganger into a pet and it supports me and helps by attacking mobs, it will attack all other mobs EXCEPT another doppelganger. So essentially, pet mobs won't attack other mobs that are the same mob id Quote
manabeast Posted August 10, 2012 Posted August 10, 2012 http://rathena.org/board/topic/69103-how-to-make-custom-pet-attack/ HERE ^^ Quote
clydelion Posted August 10, 2012 Posted August 10, 2012 pet.c if(bl == NULL || bl->type != BL_MOB || bl->prev == NULL || pd->pet.intimate < battle_config.pet_support_min_friendly || pd->pet.hungry < 1 || pd->pet.class_ == status_get_class(bl)) return 0; if you want, you can remove || pd->pet.class_ == status_get_class(bl) result: if(bl == NULL || bl->type != BL_MOB || bl->prev == NULL || pd->pet.intimate < battle_config.pet_support_min_friendly || pd->pet.hungry < 1) return 0; Quote
PokemonRO Posted August 11, 2012 Author Posted August 11, 2012 http://rathena.org/b...tom-pet-attack/ HERE ^^ Sorry this method didn't work! My pet didn't attack the same mob id. Thank you so much clyde for the source fix, it worked like a charm Quote
Mystery Posted August 11, 2012 Posted August 11, 2012 The pet not attacking the same class as it is.. is that official in iRO and kRO? o_o Quote
Question
PokemonRO
Got a weird problem here, is there a code in the source that is not allowing pets to attack the mob?
Example: If I made doppelganger into a pet and it supports me and helps by attacking mobs, it will attack all other mobs EXCEPT another doppelganger.
So essentially, pet mobs won't attack other mobs that are the same mob id
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.