Renovate lighting walk buff

xX Cloud Xx

New member
Messages
3
Points
0
I was wondering where can you set if a buff (specifically lighting walk buff) can be renovated?

Currently this skill at lvl 5 has coldown of 5 seconds and a duration of 9 seconds, but you cant renovate it until it completely ends. I already looked at skill.c, skill.h, status.c and status.h (Also skill_db.conf) and didnt find anything related to the "renovating" stuff.

 
Last edited by a moderator:
what do you mean by Renovate ?

{
Id: 2335
Name: "SR_LIGHTNINGWALK"
Description: "Lightning Walk"
MaxLevel: 5
Hit: "BDT_SKILL"
SkillType: {
Self: true
}
DamageType: {
NoDamage: true
}
AfterCastActDelay: 100
SkillData1: {
Lv1: 5000
Lv2: 6000
Lv3: 7000
Lv4: 8000
Lv5: 9000
Lv6: 10000
Lv7: 11000
Lv8: 12000
Lv9: 13000
Lv10: 14000
}
CoolDown: 50
FixedCastTime: -1
Requirements: {
SPCost: {
Lv1: 80
Lv2: 70
Lv3: 60
Lv4: 50
Lv5: 40
Lv6: 30
Lv7: 20
Lv8: 10
Lv9: 1
Lv10: 1
}
HPRateCost: {
Lv1: -5
Lv2: -4
Lv3: -3
Lv4: -2
Lv5: -1
Lv6: 0
Lv7: 1
Lv8: 2
Lv9: 3
Lv10: 4
}
}
},

I changed CoolDown into 50, I can spam repeatedly

 
I mean by renewing the status SC_LIGHTNINGWALK. You CAN use the skill but it doesnt reaply the status until it ends (9 seconds at lvl 5). You can check the timer in the icon

 
Code:
#include "common/hercules.h"
#include "map/status.h"
#include "common/timer.h"
#include "plugins/HPMHooking.h"
#include "common/HPMDataCheck.h"

HPExport struct hplugin_info pinfo = {
	"Renovate",
	SERVER_TYPE_MAP,
	"0.1",
	HPM_VERSION,
};

bool status_end_sc_before_start_post( bool retVal, struct block_list *bl, struct status_data *st, struct status_change *sc, enum sc_type type, int undead_flag, int val1, int val2, int val3, int val4 ) {
	if ( bl == NULL || st == NULL || sc == NULL || retVal == true )
		return true;
	if ( type == SC_LIGHTNINGWALK )
		status_change_end(bl, SC_LIGHTNINGWALK, INVALID_TIMER);
	return false;
}

HPExport void plugin_init(void) {
	addHookPost( status, end_sc_before_start, status_end_sc_before_start_post );
}
 
Back
Top