Jump to content
  • 0

Pet Custom 627 Error


Ravena

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  05/04/17
  • Last Seen:  

Hi, guys I put the follow at pet.c

 

Quote
Quote
Q: I un-commented the MVPs/Mini-Bosses, but I still can't capture any! How come?
A: Servers by default do not support capturing Boss Mosters, if you wish to enable this, go to src/map/pet.c and search for "// catch_target_class == 0 is used for universal lures (except bosses for now). [skotlex]" and change the lines below into:
    if (sd->catch_target_class == 0)
        sd->catch_target_class = md->class_;
    if(i < 0 || sd->catch_target_class != md->class_) {
        clif_emotion(&md->bl, 7);    //mob will do /ag if wrong lure is used on them.
        clif_pet_roulette(sd,0);
        sd->catch_target_class = -1;
        return 1;
    } // (Don't forget to re-compile after)

 

But when compile i got the error class_ não é um membro de mob_data(is not a member of mob_data)

any ideia how to fix it?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   3
  • Joined:  10/01/17
  • Last Seen:  

change:

'md->class_'

to:

'md->mob_id'

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  403
  • Reputation:   245
  • Joined:  12/17/11
  • Last Seen:  

Yeah, I should probably update that thread some day. For now try the solution Pandoras suggested, it should work.

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