Jump to content
WVWMK

Максимальный уровень феи

Recommended Posts

1.Заходим файл functions.lua,который находиться ваш сервер ../resource/script/calculate

2. Ищем function Elf_LvUp

 

И так мы нашли функцию феи с помощью которой наша фея апаеться мелким фруктом

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 >= 51

        a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 ) * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) )

    end

if Lv >= 51 - Это уровень который можно будет апнуть фейке маленьким фруктом
Также вот второй способ апа феи только уже большим фруктом феи:
Находим в том же файлике functions.lua

 

function Elf_LvUp_1 ( role , Item_Num , 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 >= 51 then

        a = 1 / ( math.floor ( ( 1 + ( math.pow ( ( Lv / 10 ) , 3 ) ) ) * 10 ) / 10 ) * math.max ( 0.01 ,( 1 - attr_type_num * 0.05 ) )

    end

Это максимальный уровень феи,который можно апнуть фее большим фруктом

if Lv >= 51 -Заменяем на нужное вам число и закрываем файлик с сохранением изменений
 

  • Like 1

Делай добро и бросай его в воду

Share this post


Link to post
Share on other sites

Хотелось бы дополнить, что проверка на уровень феи может быть в функциях самих фруктов, в формате:
 

if elf_lvl >= 50 and elf_lvl <= 99999999999 then
            UseItemFailed ( role )
            return
        end

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...