Jump to content
  • 0

slaveclone, don't heal friend..


supermeng

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/30/15
  • Last Seen:  

I found this issue, I don't know if anyone else found like me.

when I do call atcommand "slaveclone" to copy character has skill "HEAL".

but it always heal monster.

 

I try to check in source to find some strange.

 

and found this in function mobskill_use

 

skill_target = (md->db->status.mode&MD_RANDOMTARGET) ? MST_RANDOM : ms.target;
 
I found function ACMD_FUNC(clone)
it send value to "mode" of mob_clone_spawn is 0
 
but function mob_clone_spawn have this

if (mode) //User provided mode.
status->mode = mode;
else if (flag&1) //Friendly Character, remove looting.
status->mode &= ~MD_LOOTER;
 
.. this mean if mode is 0, it will use status->mode while don't have initial value
 
so it make 

skill_target = (md->db->status.mode&MD_RANDOMTARGET) ? MST_RANDOM : ms.target;

has wrong result..

so the solution maybe change mob_clone_spawn

if((x = mob_clone_spawn(pl_sd, sd->bl.m, x, y, "", master, 0, flag?1:0, 0)) > 0) {

by change value 0 to properly value

ok maybe 0x8D is good value
I check it's ok

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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