supermeng Posted August 3, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 07/30/15 Last Seen: September 8, 2015 Share Posted August 3, 2015 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 thisif (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 valueI check it's ok Quote Link to comment Share on other sites More sharing options...
Question
supermeng
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
it send value to "mode" of mob_clone_spawn is 0
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.