Jump to content
Nikito

CLERIC´S ENERGY SHIELD

Recommended Posts

Hello everyone, well my question is quite particular..

I want to make the skill Energy Shield be like permanent, bcos the normal usage is that when enter a portal it wears off and needs to be use again.

 

I want to be Like crusader´s Stealth... that when enters a portal it keeps to be on

 

Any clues how or where i look into?

 

Thanks in advance 😃

Share this post


Link to post
Share on other sites

search for 
 

Skill_Xlpz_End ( ATKER , DEFER , sklv )  

and replace statetime to 
 

local statetime = 9999

this simple trick will work, don't need to edit source code .

Share this post


Link to post
Share on other sites

Hello @Nikito!

 

Try add energy shield state in ctrl.lua of the map file that the portal leads to:

function after_enter_<mapname>(role, map_copy)

	-- Check if role is cleric and has Energy Shield skill
	-- Get level of the Energy Shield skill
	local skilllv = 10 -- Example!
	
	AddState(role, role, STATE_MFD, skilllv, -1)

end

 


Share this post


Link to post
Share on other sites
On 4/30/2020 at 10:13 AM, V3ct0r said:

Hello @Nikito!

 

Try add energy shield state in ctrl.lua of the map file that the portal leads to:


function after_enter_<mapname>(role, map_copy)

	-- Check if role is cleric and has Energy Shield skill
	-- Get level of the Energy Shield skill
	local skilllv = 10 -- Example!
	
	AddState(role, role, STATE_MFD, skilllv, -1)

end

 

Sir How to fix energy shield? When I use the energy shield and attacked by a player it wont consume the sp, but the HP on the char was taken

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
Reply to this topic...

×   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.


×
×
  • Create New...