RedMAN 22 Report post Posted July 28, 2016 (edited) Всех приветствую. Хотелось бы реализовать идею крыльев с дополнительными крутяцкими бонусами. Сам пытался выдернуть скрипты из сборки Tales Of Symphonies. Путём раскурочивания скриптов добился отображения этих статов на крыльях, но никакого видимого бонуса не даётся. Подскажите пожалуйста, где я мог ошибиться и как воплотить эту идею. Это мой skilleffect.lua Цитата -- Крылья новичка function State_BBRING1_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 150 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 200 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end function State_BBRING1_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 150 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 200 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end -- Свадебные крылья function State_BBRING2_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 1 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 250 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 300 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end function State_BBRING2_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 1 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 250 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 300 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end -- Крылья 1 уровня function State_BBRING3_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 2 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 300 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 350 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end function State_BBRING3_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 2 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 300 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 350 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end -- Крылья 2 уровня function State_BBRING4_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 3 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 350 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 400 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end function State_BBRING4_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 3 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 350 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 400 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end -- Крылья 3 уровня function State_BBRING5_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 4 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 450 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 500 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end function State_BBRING5_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 4 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 450 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 500 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) ALLExAttrSet(role) end -- Крылья 4 уровня function State_BBRING6_Add ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 6 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 5 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 500 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 600 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEC_MSPD) local add_bonus = 40 local result_bonus = cha_bonus + add_bonus SetChaAttr(role, ATTR_STATEC_MSPD, result_bonus) ALLExAttrSet(role) end function State_BBRING6_Rem ( role , statelv ) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STR) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STR, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_CON) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_CON, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_AGI) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_AGI, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_DEX) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_DEX, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_STA) local add_bonus = 6 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_STA, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_PDEF) local add_bonus = 5 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_PDEF, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXHP) local add_bonus = 500 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXHP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEV_MXSP) local add_bonus = 600 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEV_MXSP, result_bonus) local cha_bonus = GetChaAttr(role, ATTR_STATEC_MSPD) local add_bonus = 40 local result_bonus = cha_bonus - add_bonus SetChaAttr(role, ATTR_STATEC_MSPD, result_bonus) ALLExAttrSet(role) end Это Functions.lua Цитата -- Система крыльев(Начало) local wing_item = GetChaItem(role, 2, 0) local item_id = GetItemID(wing_item) --Крылья новичка if(item_id == 7825) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING1 , statelv , statetime ) --Свадебные крылья elseif(item_id == 7824) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING2 , statelv , statetime ) --Крылья 1 уровня elseif(item_id == 7826) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING3 , statelv , statetime ) --Крылья 2 уровня elseif(item_id == 7827) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING4 , statelv , statetime ) --Крылья 3 уровня elseif(item_id == 7828) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING5 , statelv , statetime ) --[[Крылья 4 уровня elseif(item_id == 7834) then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_BBRING6 , statelv , statetime ) else local statelv_bbring1 = GetChaStateLv ( role , STATE_BBRING1 ) if statelv_bbring1~=0 then RemoveState ( role , STATE_BBRING1 ) end local statelv_bbring2 = GetChaStateLv ( role , STATE_BBRING2 ) if statelv_bbring2~=0 then RemoveState ( role , STATE_BBRING2 ) end local statelv_bbring3 = GetChaStateLv ( role , STATE_BBRING3 ) if statelv_bbring3~=0 then RemoveState ( role , STATE_BBRING3 ) end local statelv_bbring4 = GetChaStateLv ( role , STATE_BBRING4 ) if statelv_bbring4~=0 then RemoveState ( role , STATE_BBRING4 ) end local statelv_bbring5 = GetChaStateLv ( role , STATE_BBRING5 ) if statelv_bbring5~=0 then RemoveState ( role , STATE_BBRING5 ) end local statelv_bbring6 = GetChaStateLv ( role , STATE_BBRING6 ) if statelv_bbring6~=0 then RemoveState ( role , STATE_BBRING6 ) end end Это Variable.lua Цитата STATE_BBRING1 = 200 --Бонус крыльев STATE_BBRING2 = 201 --Бонус крыльев STATE_BBRING3 = 202 --Бонус крыльев STATE_BBRING4 = 203 --Бонус крыльев STATE_BBRING5 = 204 --Бонус крыльев STATE_BBRING6 = 205 --Бонус крыльев Всё должно работать, даже получилось добиться отображения статов. Быть может я что-то упустил? Что-то забыл скопировать? Расчитываю на вас, светлые умы:) Цитата Edited July 28, 2016 by RedMAN 1 Quote Share this post Link to post Share on other sites