Trigger Skils Chain

Results 1 to 2 of 2
  1. #1
    Apprentice asafe is offline
    MemberRank
    Apr 2008 Join Date
    6Posts

    Trigger Skils Chain

    Hello, I'm here to ask for help at all, I have some doubts before the trigger chain of class that only 10%

    and also ask for a system of credits if someone has and I do not know whether to sell or something, because here in Brazil, already has three or more servers that have the system of credits, some even have the system in English and not Portuguese ie means that came from there, so if someone has, interece to sell or want to post to help us, please grateful ....


  2. #2
    Member MrPrettyBoy is offline
    MemberRank
    Jul 2008 Join Date
    61Posts

    Re: Trigger Skils Chain

    To enable chain skills first you need to edit skill.java and edit these lines

    private boolean chainSuccess = true;

    then paste this after you find this in your section

    // Check Chain Skill Result
    boolean skillChainTriggerRate = CustomConfig.SKILL_CHAIN_TRIGGERRATE;

    if(skillChainTriggerRate)
    {
    int chainProb = skillTemplate.getChainSkillProb();
    if (chainProb != 0)
    {
    if (Rnd.get(100) < chainProb)
    this.chainSuccess = true;
    else
    this.chainSuccess = false;
    }
    }else{
    this.chainSuccess = true;
    }

    Then head to gameserver/config/main/custom.properties and add this line under Npc config's

    # Chain Trigger Rate
    # true = Chain Trigger Rate is enabled
    # false = Chain Trigger Rate is disabled(all chain skill 100% success)
    # Default: false
    gameserver.skill.chain.triggerrate = false

    then lastly go to gameserver/data/static_data/skills and edit your "skill_templaes.xml"

    Then find this line chain_skill_prob=
    (Example):chain_skill_prob="50" <- change that to 100 for everytime you see chain_skill_prob= then go back in game and your chain skills should work 100%



Advertisement