Shade Posted July 28, 2012 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 123 Reputation: 29 Joined: 04/09/12 Last Seen: February 10, 2021 Share Posted July 28, 2012 Hi, I am looking forward to edit the SP drain in this two skills, I tried searching skill.c,status.c and battle.c but couldn't find these skills in any of them. Do anyone know where the data for these skill effects are? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
malufett Posted July 28, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 554 Reputation: 70 Joined: 04/04/12 Last Seen: November 8, 2013 Share Posted July 28, 2012 for shockwave @skill.c case HT_SHOCKWAVE: status_percent_damage(src, bl, 0, 15*skilllv+5, false); break; and with the ugly dance case DC_UGLYDANCE: rate = 5+5*skilllv; if(sd && (skill=pc_checkskill(sd,DC_DANCINGLESSON))) rate += 5+skill; status_zap(bl, 0, rate); break; 1 Quote Link to comment Share on other sites More sharing options...
Shade Posted July 28, 2012 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 123 Reputation: 29 Joined: 04/09/12 Last Seen: February 10, 2021 Author Share Posted July 28, 2012 (edited) Thanks again Malufett, I am just wondering what each value actually mean? Why status_percent_damage and status zap do the same thing? So, if I want to change the ugly dance to so the same SP reduction (i.e. consume 80% SP per tick at max level), I just have to edit to this? : case DC_UGLYDANCE: rate = 15+5*skilllv; if(sd && (skill=pc_checkskill(sd,DC_DANCINGLESSON))) rate += 5+skill; status_percent_damage(src, bl, 0, rate, false); break; I am looking forward to understand src codes better but I am not sure if there a guide on it in Wiki or rAthena forum. Thanks in advance. Edited July 28, 2012 by Shade Quote Link to comment Share on other sites More sharing options...
malufett Posted July 29, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 554 Reputation: 70 Joined: 04/04/12 Last Seen: November 8, 2013 Share Posted July 29, 2012 here is there definition #define status_zap(bl, hp, sp) status_damage(NULL, bl, hp, sp, 0, 1) int status_percent_change(struct block_list *src,struct block_list *target,signed char hp_rate, signed char sp_rate, int flag); status_zap is used for only in manipulating hp/sp with a fixed value and w/o manipulating statuses like removing it or triggering something and also without walk delay in short silent manipulation... while status_percentage_damage is manipulating hp/sp in a percentage value and it has an option if you want to kill the target or not when it takes all hp/sp...and also same with status_zap that it does't have walk delay/flinching animation 1 Quote Link to comment Share on other sites More sharing options...
Question
Shade
Hi,
I am looking forward to edit the SP drain in this two skills, I tried searching skill.c,status.c and battle.c but couldn't find these skills in any of them. Do anyone know where the data for these skill effects are?
Thanks in advance.
Link to comment
Share on other sites
3 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.