masterzeus Posted July 3, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 62 Reputation: 1 Joined: 08/18/13 Last Seen: 10 hours ago Share Posted July 3, 2019 I have a problem with pets, these are currently "looting" with the owner dead ... Which thing should not be, do not throw me any errors in the console. What can be? I also checked the pets.conf in the battle folder. Quote Link to comment Share on other sites More sharing options...
1 Functor Posted July 4, 2019 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 352 Reputation: 267 Joined: 09/08/13 Last Seen: Yesterday at 04:45 AM Share Posted July 4, 2019 @masterzeus Open "../src/map/pet.cpp" and in the function "pet_ai_sub_hard" change: if(!target && pd->loot && pd->loot->count < pd->loot->max && DIFF_TICK(tick,pd->ud.canact_tick) > 0) { to: if (!target && pd->loot && pd->loot->count < pd->loot->max && !pc_isdead(pd->master) && DIFF_TICK(tick,pd->ud.canact_tick) > 0) { Save changes and recompile the server. 1 1 Quote Link to comment Share on other sites More sharing options...
0 Naruto Posted July 3, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.01 Content Count: 416 Reputation: 74 Joined: 05/16/19 Last Seen: January 24, 2021 Share Posted July 3, 2019 (edited) Its like that because they couldnt figure out how to remove the intimacy loss on death LOL Edited July 3, 2019 by Naruto Quote Link to comment Share on other sites More sharing options...
0 masterzeus Posted July 5, 2019 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 62 Reputation: 1 Joined: 08/18/13 Last Seen: 10 hours ago Author Share Posted July 5, 2019 On 7/3/2019 at 8:08 PM, Functor said: @masterzeus Open "../src/map/pet.cpp" and in the function "pet_ai_sub_hard" change: if(!target && pd->loot && pd->loot->count < pd->loot->max && DIFF_TICK(tick,pd->ud.canact_tick) > 0) { to: if (!target && pd->loot && pd->loot->count < pd->loot->max && !pc_isdead(pd->master) && DIFF_TICK(tick,pd->ud.canact_tick) > 0) { Save changes and recompile the server. Nice, Functor! Its work! Thanks!!! Quote Link to comment Share on other sites More sharing options...
Question
masterzeus
I have a problem with pets, these are currently "looting" with the owner dead ... Which thing should not be, do not throw me any errors in the console.
What can be?
I also checked the pets.conf in the battle folder.
Link to comment
Share on other sites
3 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.