Jump to content

nunb2560

Members
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by nunb2560


  1. On 9/23/2018 at 12:42 AM, DangThao said:

    Maybe something like this? inside ur attrcalculate.lua


    function CreatCha( role ) --[[´´½¨½ÇÉ«]]-- 
        --LuaPrint("Enter function CreatCha(role) --[[create character]]--".."\n") 
        local attr_ap = Attr_ap( role ) + 4 --[[£«5µã×ÔÓÉ·ÖÅäµãÊý]]--
        SetCharaAttr( attr_ap, role, ATTR_AP ) 
        AttrRecheck(role) 
        hp = GetChaAttr( role, ATTR_MXHP ) 
        sp = GetChaAttr( role, ATTR_MXSP ) 
        SetCharaAttr( hp, role, ATTR_HP ) 
        SetCharaAttr( sp, role, ATTR_SP ) 
        CreatChaSkill ( role ) 
        --LuaPrint("Out function CreatCha(role) --[[create character]]--".."\n") 
        AddChaSkill ( role , SKILL_NUM , 1 , 1 , 0 )
        --Replace SKILL_NUM to your newbie skill id in skillinfo.txt
        --SystemNotice ( role , "Learned skill '[Newbie Slash]'" )
    end 

    Yes, thank you. But theres a mistake in your code. You need to change the order like this:

     

    AddChaSkill ( role , SKILL_NUM , 1 , 1 , 0 )

    CreatChaSkill ( role ) 

    end


  2. This guide is for those who want to be required to use corals for the Voyager class, but without consuming corals energy.

    Its quite simple, just go at skilleffect.lua in your server files and search for

    SkillEnergy

    You will find something like this

    local energy_reduce = math.floor ( 1 + sklv * 0.25 )

    So, for every SkillEnergy, you must change the function for

    local energy_reduce = math.floor ( sklv * 0 )

    So, thats all. It's no longer consumes energy from your corals, but its required to use corals for use skills.


  3. For some reason when you put 3 skills in your fairy, it does not show the last skill or even shows a different skill or level. In order to alleviate this problem, you need follow the guide presented by @Home

     

    1 - Go to your "Game Folder/scripts/lua/table/scripts.lua

    2 - Add this function anywhere

    function GetNum_Fixed ( Num )
        Num = tostring(Num)
        a = string.sub(Num, -1)
        a = tonumber(a)
        return a
    end

    3 - Search for function GetElfSkill

    4 - Replace:

    local Part7 = GetNum_Part7 ( Num )

    To

    local Part7 = GetNum_Fixed ( Num )

     

    Now, you change the skill implementation sucess rate. Go at functions.lua in your server files /resource/script/calculate/functions.lua

     

    Search for

    function AddElfSkill

    Change booth lines 

    if rad<= 30 then
    if rad> 30 and rad < 60 then

    for

    if rad == 0 then

    Now its 100%.

     

    This guide is just what @Home suggers. But this only works for normal pets and 2gen pets made by code, it does not work for 2gen pets that were made by fairy marriage. 

    So, you need to change  fairy marriage. Go at forge.lua in your server files and search for

    function jlborn_item

    Now, you need to change what the function are doing for you. For each demonic fruit (3918-3925), you have this functions

    -- demonic fruit 3918
    	else
    			r1,r2 =MakeItem ( role , 231  , 1 , 4 )	--Fairy of Luck
    	end
    else
    	r1,r2 =MakeItem ( role , 231  , 1 , 4 )	--Fairy of Luck

    This function represents what it gives to you. The function is doing a bugged pet from marriage, so you need to change this function for

    	else
    			r1,r2 =GiveItem ( role , 0 , 231  , 1 , 4 )	--Fairy of Luck
    	end
    else
    	r1,r2 =GiveItem ( role , 0 , 231  , 1 , 4 )	--Fairy of Luck

    In this case, the marriage will give the same 2 gen pet that was made by code (level 0, but at least works), but there's a problem about possession and self destruct skill. So you need to fix that.

     

    Go at skilleffect.lua in your server files. Search for possession skill

    function Skill_JLFT_BEGIN

    change this line

    local item_elf_type = GetItemType ( item_elf )

    for

    local item_elf_id = GetItemID ( item_elf )

    then, change this other line

    if item_elf_type ~= 59 or Part1~=1 then

    for

    if item_elf_id < 231 and item_elf_id > 237 then

    Codes of 2gen pets are in 231-237.

     

    Then search for 

    function State_JLFT_Add

    change the line 

    local Part1 = GetNum_Part1 ( Num_JL )

    for

    local Part1 = 1 -- GetNum_Part1 ( Num_JL )

    Search for self destruct skill 

    function Skill_jlzb_Begin

    change the line

    local item_elf_type = GetItemType ( item_elf )

    for

    local item_elf_id = GetItemID ( item_elf )

    change the other line

    if item_elf_type ~= 59 or Part1~=1 then

    for

    if item_elf_id < 231 and item_elf_id > 237 then

    Then search for 

    function Skill_jlzb_End

    change the line 

    local item_elf_type = GetItemType ( item_elf )

    for 

    local item_elf_id = GetItemID ( item_elf )

    change the other line

    if item_elf_type == 59 then

    for

    if item_elf_id >= 231 and item_elf_id <= 237 then

     

    So, thats all.

    • Like 1
×
×
  • Create New...