masterzeus Posted July 3, 2019 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
1 Functor Posted July 4, 2019 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
0 Naruto Posted July 3, 2019 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
0 masterzeus Posted July 5, 2019 Author 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
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.
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.