Антианимация

Большой зум
Где качаться?

Лут для спарки фей

Исторические квесты


Royal Fortune (30)

[ Сегодня были () · Новые сообщения · Правила форума (обновлено) · Поиск · Реклама ]
Страница 1 из 11
Модератор форума: Souls_Helling 
Топ серверов пиратии "Go piratia" » Серверная » Рейты, дроп, монстры, нпсы, предметы, феи » [Фикс]+3 +4 фруктов
[Фикс]+3 +4 фруктов
Souls_Helling Дата: Понедельник, 18.12.2017, 23:18 | Сообщение # 1
Офлайн

Высший ранг (450+)
Сообщений: 1148
Награды: 14
Репутация: 43
Замечания: 0%
Сейчас напишу как пофиксить фрукты +3 и +4 для феи.
Вдруг кому-нибудь понадобится)

Вот сами фрукты(Нужно вставить в funstion):
Фрукты +3

Код
function Lvup_Str_1 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_STR
        --SystemNotice(role ,attr_type )
        Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )
end
--МеЦКЛ«±¶іЙі¤
function Lvup_Con_1 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_CON
        Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )
end
--ГфЅЭЛ«±¶іЙі¤
function Lvup_Agi_1 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_AGI
        Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )
end
--ЧЁЧўЛ«±¶іЙі¤
function Lvup_Dex_1 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_DEX
        Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )
end
--ѕ«ЙсЛ«±¶іЙі¤
function Lvup_Sta_1 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_STA
        Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )
end

Вставляем ниже и изменяем:


Код
function Lvup_Str_2 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_STR
        --SystemNotice(role ,attr_type )
        Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )
end
--МеЦКЛ«±¶іЙі¤
function Lvup_Con_2 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_CON
        Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )
end
--ГфЅЭЛ«±¶іЙі¤
function Lvup_Agi_2 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_AGI
        Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )
end
--ЧЁЧўЛ«±¶іЙі¤
function Lvup_Dex_2 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_DEX
        Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )
end
--ѕ«ЙсЛ«±¶іЙі¤
function Lvup_Sta_2 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_STA
        Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )
end

Еще раз вставляем (также ниже) и изменяем:

Код
function Lvup_Str_3 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_STR
        --SystemNotice(role ,attr_type )
        Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )
end
--МеЦКЛ«±¶іЙі¤
function Lvup_Con_3 ( role , Item_Num ,Item_Traget )
        local attr_type =  ITEMATTR_VAL_CON
        Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )
end
--ГфЅЭЛ«±¶іЙі¤
function Lvup_Agi_3 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_AGI
        Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )
end
--ЧЁЧўЛ«±¶іЙі¤
function Lvup_Dex_3 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_DEX
        Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )
end
--ѕ«ЙсЛ«±¶іЙі¤
function Lvup_Sta_3 ( role , Item_Num ,Item_Traget )
        local attr_type = ITEMATTR_VAL_STA
        Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )
end

Далее ищем:
Код
function Elf_LvUp_1


Копируем:
Код
function Elf_LvUp_1 ( role , Item_Num , Item_Traget , attr_type )          --
                
                local str = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STR )           --Б¦Бї
                local con = GetItemAttr( Item_Traget ,ITEMATTR_VAL_CON )           --МеЦК
                local agi = GetItemAttr( Item_Traget ,ITEMATTR_VAL_AGI )           --ЧЁЧў
                local dex = GetItemAttr( Item_Traget ,ITEMATTR_VAL_DEX )           --ГфЅЭ
                local sta = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STA )           --ѕ«Йс
        local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
        local Elf_MaxURE = GetItemAttr(Item_Traget,ITEMATTR_MAXURE)

        local Lv = str + agi + dex + con + sta
        local attr_type_num = GetItemAttr( Item_Traget ,attr_type )

        local a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) ) )
        
        if Lv >= 41 then
                a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 ) * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) )
        end
        
        local b = Percentage_Random ( a )
        
                local item_energe = GetItemAttr( Item_Traget ,ITEMATTR_ENERGY ) --ИЎѕ«БйіЙі¤¶И
                --local item_maxenerge = GetItemAttr( Item_Traget ,ITEMATTR_MAXENERGY ) --ИЎѕ«БйіЙі¤¶ИЧоґуЦµ
   
        if b == 1 then                    --іЙі¤ФтФцјУКфРФЈ¬їЫіэЛщУРіЙі¤Цµ -- ITEMATTR_ENERGY
                        AddItemEffect(role , Item_Traget , 0  )
                item_energe = 0
                SystemNotice (role , "Pet level up successfully! Growth rate is depleted")      
                
                    attr_type_num = attr_type_num + 2
                SetItemAttr ( Item_Traget , attr_type , attr_type_num )

                local Item_MAXENERGY = 240 * ( Lv + 2 )
                
                if Item_MAXENERGY > 6480 then
                        Item_MAXENERGY = 6480
                end

                local Item_MAXURE_NUM = Elf_MaxURE + 2000

                if Item_MAXURE_NUM > 32000 then
                        Item_MAXURE_NUM = 32000
                end
                
                SetItemAttr ( Item_Traget , ITEMATTR_MAXENERGY , Item_MAXENERGY )
                SetItemAttr ( Item_Traget , ITEMATTR_MAXURE , Item_MAXURE_NUM )
                ResetItemFinalAttr(Item_Traget)
                        AddItemEffect(role , Item_Traget , 1  )
        else                    --Оґ»сіЙі¤ФтЅцїЫіэТ»°лµДіЙі¤Цµ
                item_energe = 0.5 * item_energe
                SystemNotice (role , "Pet level up failed! Growth rate reduced by half")        
        end
                SetItemAttr ( Item_Traget , ITEMATTR_ENERGY , item_energe )

end


Вставляем ниже и изменяем:
Код
function Elf_LvUp_2 ( role , Item_Num , Item_Traget , attr_type )          --
                
                local str = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STR )           --Б¦Бї
                local con = GetItemAttr( Item_Traget ,ITEMATTR_VAL_CON )           --МеЦК
                local agi = GetItemAttr( Item_Traget ,ITEMATTR_VAL_AGI )           --ЧЁЧў
                local dex = GetItemAttr( Item_Traget ,ITEMATTR_VAL_DEX )           --ГфЅЭ
                local sta = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STA )           --ѕ«Йс
        local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
        local Elf_MaxURE = GetItemAttr(Item_Traget,ITEMATTR_MAXURE)

        local Lv = str + agi + dex + con + sta
        local attr_type_num = GetItemAttr( Item_Traget ,attr_type )

        local a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) ) )
        
        if Lv >= 41 then
                a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 ) * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) )
        end
        
        local b = Percentage_Random ( a )
        
                local item_energe = GetItemAttr( Item_Traget ,ITEMATTR_ENERGY ) --ИЎѕ«БйіЙі¤¶И
                --local item_maxenerge = GetItemAttr( Item_Traget ,ITEMATTR_MAXENERGY ) --ИЎѕ«БйіЙі¤¶ИЧоґуЦµ
   
        if b == 1 then                    --іЙі¤ФтФцјУКфРФЈ¬їЫіэЛщУРіЙі¤Цµ -- ITEMATTR_ENERGY
                        AddItemEffect(role , Item_Traget , 0  )
                item_energe = 0
                SystemNotice (role , "Pet level up successfully! Growth rate is depleted")      
                
                    attr_type_num = attr_type_num + 3
                SetItemAttr ( Item_Traget , attr_type , attr_type_num )

                local Item_MAXENERGY = 240 * ( Lv + 3 )
                
                if Item_MAXENERGY > 6480 then
                        Item_MAXENERGY = 6480
                end

                local Item_MAXURE_NUM = Elf_MaxURE + 3000

                if Item_MAXURE_NUM > 32000 then
                        Item_MAXURE_NUM = 32000
                end
                
                SetItemAttr ( Item_Traget , ITEMATTR_MAXENERGY , Item_MAXENERGY )
                SetItemAttr ( Item_Traget , ITEMATTR_MAXURE , Item_MAXURE_NUM )
                ResetItemFinalAttr(Item_Traget)
                        AddItemEffect(role , Item_Traget , 1  )
        else                    --Оґ»сіЙі¤ФтЅцїЫіэТ»°лµДіЙі¤Цµ
                item_energe = 0.5 * item_energe
                SystemNotice (role , "Pet level up failed! Growth rate reduced by half")        
        end
                SetItemAttr ( Item_Traget , ITEMATTR_ENERGY , item_energe )

end


Еще раз вставляем(также ниже) и изменяем:
Код
function Elf_LvUp_3 ( role , Item_Num , Item_Traget , attr_type )          --
                
                local str = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STR )           --Б¦Бї
                local con = GetItemAttr( Item_Traget ,ITEMATTR_VAL_CON )           --МеЦК
                local agi = GetItemAttr( Item_Traget ,ITEMATTR_VAL_AGI )           --ЧЁЧў
                local dex = GetItemAttr( Item_Traget ,ITEMATTR_VAL_DEX )           --ГфЅЭ
                local sta = GetItemAttr( Item_Traget ,ITEMATTR_VAL_STA )           --ѕ«Йс
        local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
        local Elf_MaxURE = GetItemAttr(Item_Traget,ITEMATTR_MAXURE)

        local Lv = str + agi + dex + con + sta
        local attr_type_num = GetItemAttr( Item_Traget ,attr_type )

        local a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) ) )
        
        if Lv >= 41 then
                a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 ) * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) )
        end
        
        local b = Percentage_Random ( a )
        
                local item_energe = GetItemAttr( Item_Traget ,ITEMATTR_ENERGY ) --ИЎѕ«БйіЙі¤¶И
                --local item_maxenerge = GetItemAttr( Item_Traget ,ITEMATTR_MAXENERGY ) --ИЎѕ«БйіЙі¤¶ИЧоґуЦµ
   
        if b == 1 then                    --іЙі¤ФтФцјУКфРФЈ¬їЫіэЛщУРіЙі¤Цµ -- ITEMATTR_ENERGY
                        AddItemEffect(role , Item_Traget , 0  )
                item_energe = 0
                SystemNotice (role , "Pet level up successfully! Growth rate is depleted")      
                
                    attr_type_num = attr_type_num + 4
                SetItemAttr ( Item_Traget , attr_type , attr_type_num )

                local Item_MAXENERGY = 240 * ( Lv + 4 )
                
                if Item_MAXENERGY > 6480 then
                        Item_MAXENERGY = 6480
                end

                local Item_MAXURE_NUM = Elf_MaxURE + 4000

                if Item_MAXURE_NUM > 32000 then
                        Item_MAXURE_NUM = 32000
                end
                
                SetItemAttr ( Item_Traget , ITEMATTR_MAXENERGY , Item_MAXENERGY )
                SetItemAttr ( Item_Traget , ITEMATTR_MAXURE , Item_MAXURE_NUM )
                ResetItemFinalAttr(Item_Traget)
                        AddItemEffect(role , Item_Traget , 1  )
        else                    --Оґ»сіЙі¤ФтЅцїЫіэТ»°лµДіЙі¤Цµ
                item_energe = 0.5 * item_energe
                SystemNotice (role , "Pet level up failed! Growth rate reduced by half")        
        end
                SetItemAttr ( Item_Traget , ITEMATTR_ENERGY , item_energe )

end

Далее открываем ItemEffect.lua находится тут \resource\script\calculate

Ищем:
Код
function ItemUse_CJ_longguo


Копируем:
Код
function ItemUse_CJ_longguo( role , Item , Item_Traget )
local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Str_1 ( role , Item_Num , Item_Traget ) --Б¦БїКфРФµДіЙі¤єЇКэ
end
end
end

--ёЯј¶±щј«Л¬їЪГ·
function ItemUse_CJ_koumei ( role , Item , Item_Traget )
local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Icespire Plum" )
UseItemFailed ( role )
else
Lvup_Agi_1 ( role , Item_Num , Item_Traget ) --ГфЅЭКфРФµДіЙі¤єЇКэ
end
end
end
--ёЯј¶єЈ·зчЁУгЛї
function ItemUse_CJ_yusi ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)

if Item_type == 58 and Item_Traget_Type == 59  then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Zephyr Fish Floss" )
UseItemFailed ( role )
else
Lvup_Dex_1 ( role , Item_Num , Item_Traget ) --ЧЁЧўКфРФµДіЙі¤єЇКэ
end
end
end
--ёЯј¶°ЧТшіЗ№ыё¬
function ItemUse_CJ_guopu ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Argent Mango" )
UseItemFailed ( role )
else
Lvup_Con_1 ( role , Item_Num , Item_Traget ) --МеЦККфРФµДіЙі¤єЇКэ
end
end
end

--ёЯј¶РВЙіб°ГЧ±э
function ItemUse_CJ_mibing ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)

if Item_type == 58 and Item_Traget_Type == 59  then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Shaitan Biscuit" )
UseItemFailed ( role )
else
Lvup_Sta_1 ( role , Item_Num , Item_Traget ) --ѕ«ЙсКфРФµДіЙі¤єЇКэ
end
--local Item_MAXENERGY = Elf_MaxEXP + 20
--SetItemAttr ( Item_Traget , ITEMATTR_MAXENERGY , Item_MAXENERGY )
end
end

Фрукты +3
Вставляем в самый низ и изменяем:
Код
function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Str_2 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Agi_2 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Dex_2 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Con_2 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Sta_2 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end


Фрукты +4
Еще раз вставляем(также в самый низ) и изменяем:
Цитата
function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Str_3 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Agi_3 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Dex_3 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Con_3 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

function ваша_функция_из_ItemInfo ( role , Item , Item_Traget )

local Cha_Boat = 0
Cha_Boat = GetCtrlBoat ( role )
--      SystemNotice( role , Cha_Boat )
if Cha_Boat ~= nil then
SystemNotice( role , "Cannot use while sailing" )
UseItemFailed ( role )
return
end
local Item_type = GetItemType ( Item )
local Item_Traget_Type = GetItemType ( Item_Traget )
local Item_Num = GetItemID ( Item )
local Check_Exp = 0
local Elf_MaxEXP = GetItemAttr(Item_Traget,ITEMATTR_MAXENERGY)
--SystemNotice(role ,Elf_MaxEXP )

if Item_type == 58 and Item_Traget_Type == 59 then
Check_Exp = CheckElf_EXP ( role , Item_Traget ) --ѕ«БйexpКЗ·сВъЧгЙэј¶Мхјю
if Check_Exp == 0 then
SystemNotice(role , "Growth rate is not full. Unable to feed pet with Snow Dragon Fruit" )
UseItemFailed ( role )
else
Lvup_Sta_3 ( role , Item_Num , Item_Traget ) --ёщѕЭѕЯМеµАѕЯСЎФсІ»Н¬КфРФµДіЙі¤єЇКэ ( АэЦРОЄstr )
end
end
end

Не забудте вместо
 ваша_функция_из_ItemInfo заменить на ту котору вы писали в ItemInfo Для фруктов!

Добавлено (18.12.2017, 23:18)
---------------------------------------------
Поправил

 

Топ серверов пиратии "Go piratia" » Серверная » Рейты, дроп, монстры, нпсы, предметы, феи » [Фикс]+3 +4 фруктов
Страница 1 из 11
Поиск:

Правила чата
Мини-чат
+Мини-чат
0