How to disable certain skills from being copied by rogue class?

Yeezus

New member
Messages
6
Points
0
Hi guys I tried changeing AllowReproduce: true to AllowReproduce: false on skills that I didn't want to be copied and reloadskilldb but it still can be copied by rogue class.  I made sure that I am using the correct file (pre-re) and even changed the skill's cooldown and it took effect.  However, even after changing it to false or completely removing that line, it still doesn't work.  Anyone can help with this?

 
Hi guys I tried changeing AllowReproduce: true to AllowReproduce: false on skills that I didn't want to be copied and reloadskilldb but it still can be copied by rogue class.  I made sure that I am using the correct file (pre-re) and even changed the skill's cooldown and it took effect.  However, even after changing it to false or completely removing that line, it still doesn't work.  Anyone can help with this?
Which Rogue skill are you talking about,

If I am not wrong, "AllowReproduce" only restricts "Reproduce" Skill and not "Plagiarism" skill, so skills can still be copied via "Plagiarism"

 
Which Rogue skill are you talking about,

If I am not wrong, "AllowReproduce" only restricts "Reproduce" Skill and not "Plagiarism" skill, so skills can still be copied via "Plagiarism"
Ohhhhh.  I didnt know that.  I was looking for docs about skilldb but couldn't find it so I assume it is like that since rAthena has their own db for skills allowed to be copied.  As for your question about which skills... I want to disable Waterball from being copied and maybe enable Acid Demonstration to be copied.  How do I do this?

 
Requires source edit. Go to src/map/skill.c, find static int can_copy().

Anywhere after nullpo_ret(sd); you can put your conditions.

Code:
    if (skill_id == WZ_WATERBALL)
        return 0;

If you want to carryover skill_lv, you need to edit 2 lines.

Change 1, find line:

Code:
can_copy(tsd,copy_skill,bl)) // Split all the check into their own function [Aru]
Change to:

Code:
can_copy(tsd, copy_skill, skill_lv, bl)) // Split all the check into their own function [Aru]

Change 2, find line:

Code:
static int can_copy(struct map_session_data *sd, uint16 skill_id, struct block_list *bl)
Change to:

Code:
static int can_copy(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv, struct block_list *bl)
 
Back
Top