Jump to content
  • 0

Pet looting items with master dead


masterzeus

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   1
  • Joined:  08/18/13
  • Last Seen:  

Hello everyone, I have a problem, I do not know if it is a bad configuration or it is a bug.

The pets, for example Yoyo, grab the items while the master is dead.
For example, a person kills a Boss and the person dies, the Yoyo picks up everything while the master is dead.

I would like the pets not to pick up anything while the master is dead, is it possible?

Edited by masterzeus
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

You can try this:

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.

 

He added a check for if master is dead or not

Should work but I havnt tested it myself

Link to comment
Share on other sites

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.

×
×
  • Create New...