Jump to content
  • 0
Sign in to follow this  
xX Cloud Xx

Renovate lighting walk buff

Question

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.

Edited by xX Cloud Xx
duration was 9 sec at lvl 5

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

what do you mean by Renovate ?

Spoiler

{
	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

Share this post


Link to post
Share on other sites
  • 0
#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 );
}

 

Share this post


Link to post
Share on other sites

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.