Jump to content

Question

Posted

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

  • 1
Posted

@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.

  • Upvote 1
  • Like 1
  • 0
Posted
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!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...