PokemonRO Posted August 10, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 63 Reputation: 3 Joined: 07/12/12 Last Seen: December 30, 2013 Share 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 Link to comment Share on other sites More sharing options...
manabeast Posted August 10, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted August 10, 2012 http://rathena.org/board/topic/69103-how-to-make-custom-pet-attack/ HERE ^^ Quote Link to comment Share on other sites More sharing options...
clydelion Posted August 10, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share 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 Link to comment Share on other sites More sharing options...
PokemonRO Posted August 11, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 63 Reputation: 3 Joined: 07/12/12 Last Seen: December 30, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted August 11, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted August 11, 2012 The pet not attacking the same class as it is.. is that official in iRO and kRO? o_o Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.