Xoskis 2 Report post Posted January 8, 2017 help my please... My server have bug stats. Server have wings all stats 38 and cloak all stats 36... look photo. DODGE BUG... IF i use PET STR, STR BUG... I do not want to take away wings and cloak... need u help. Quote Share this post Link to post Share on other sites
Tera 26 Report post Posted January 8, 2017 I use server files where exclusively that pet brought different bugs, check that it is correctly added in skilleff.lua in calculate ------------------------------------------------------------------------------------------------------ function Skill_JLFT_End ( ATKER , DEFER , sklv ) local statelv = sklv local statetime = 190 - sklv * 10 local item_elf = GetChaItem(ATKER , 2, 1) -- Pet Handle local item_elf_type = GetItemType ( item_elf ) -- Pet Type local Item_ID = GetItemID ( item_elf ) -- Pet ID elseif Item_ID== xxxx then -- Angela Jr --RemoveStats(role) AddState( ATKER , ATKER , STATE_JLFT8, statelv , statetime ) ------------------------------------------------------------------------------------------------------- function State_JLFT_Add ( role , sklv ) local Item_bg = GetChaItem ( role , 2 , 1 ) local Get_Item_Type = GetItemType ( Item_bg ) if Get_Item_Type==59 then local Item_ID = GetItemID ( Item_bg ) --Get ID local str = GetItemAttr( Item_bg ,ITEMATTR_VAL_STR ) --Strength local con = GetItemAttr( Item_bg ,ITEMATTR_VAL_CON ) --Constitution local agi = GetItemAttr( Item_bg ,ITEMATTR_VAL_AGI ) --Agility local dex = GetItemAttr( Item_bg ,ITEMATTR_VAL_DEX ) --Accuracy local sta = GetItemAttr( Item_bg ,ITEMATTR_VAL_STA ) --Spirit local URE = GetItemAttr( Item_bg ,ITEMATTR_URE ) local MAXURE = GetItemAttr( Item_bg ,ITEMATTR_MAXURE ) local lv_JL = str + con + agi + dex + sta local Num_JL = GetItemForgeParam ( Item_bg , 1 ) local Part1 = GetNum_Part1 ( Num_JL ) local Part2 = GetNum_Part2 ( Num_JL ) local Part3 = GetNum_Part3 ( Num_JL ) local Part4 = GetNum_Part4 ( Num_JL ) local Part5 = GetNum_Part5 ( Num_JL ) local Part6 = GetNum_Part6 ( Num_JL ) local Part7 = GetNum_Part7 ( Num_JL) local star=0 local statelv=lv_JL*0.025*(sklv+1)*0.05 -- lv*1/40*(skilllv+1)/2*0.1 if Item_ID == xxxx then -- Angela Jr --RemoveStats(role) if str~=nil and str~=0 then str = str SetCharaAttr(str ,role , ATTR_STATEV_STR) end if con~=nil and con~=0 then con = con SetCharaAttr(con ,role , ATTR_STATEV_CON) end if sta~=nil and sta~=0 then sta = sta SetCharaAttr(sta ,role , ATTR_STATEV_STA) end if dex~=nil and dex~=0 then dex = dex SetCharaAttr(dex ,role , ATTR_STATEV_DEX) end if agi~=nil and agi~=0 then agi = agi SetCharaAttr(agi ,role , ATTR_STATEV_AGI) end end end Quote Share this post Link to post Share on other sites
Rinor 59 Report post Posted January 8, 2017 @Xoskis why dont you check lua_err.txt ? ( Serverfile/LOG/log/lua_err.txt ) open it and check the error you getting and show us here Quote Share this post Link to post Share on other sites