Jump to content
Sign in to follow this  
DangThao

Magic Class skill True Sight

Recommended Posts

How to fix magic class True Sight? Whenever i installed Death Circle, the functionhook.lua will bug True Sight with the following code:
-- -----------------------------
-- Hooking cleric true sight
-- -----------------------------

if (deathcircle2_conf.disable_ts == true) then
    SkillSp_Syzy = function ( sklv ) 
    return 0 -- No sp consumption 
    end 
    SkillArea_Square_Syzy = function ( sklv ) 
    end 
    SkillArea_State_Syzy = function ( sklv ) 
    end
    
end


How to fix this? so it only works within deathcircle WITHOUT DELETE ANYTHING?
NOTE: True Sight ONLY BUGGED is magic class true sight skill is enabled with the above line.

Share this post


Link to post
Share on other sites

Hi bro. It is isn't a bug. I think this happen because that

function is not a hook, it is a replacement if deathcircle2_conf.disable_ts is true

try:

  function Skill_Syzy_Begin(role, sklv)
    local sp = Sp(role) 
    local sp_reduce  = SkillSp_Syzy ( sklv )    
    if sp - sp_reduce < 0 then 
        SkillUnable(role)   
        return 
    end
    if GetChaMapName(role) == 'deathcircle' then
      SystemNotice(role, 'Unable to use True Sight in current map')
      SkillUnable(role)
      return
    end
    Sp_Red (role , sp_reduce ) 
end

 


kong.png

a2.png

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.

Sign in to follow this  

×
×
  • Create New...