Jump to content
Sign in to follow this  
Graf

Яйцо с феей >0 уровня

Recommended Posts

Яйцо с феей >0 уровня

Если вы хотите добавить на ваш сервер яйцо с феей > 0 уровня, то вот пример на фее 65 уровня.

Заходим в Server/resource/iteminfo.txt и вписываем:

####    Lv65 Egg of Mordo Junior Strength    n0323    10130005    0    0    0    0    0    0    31    0    0    0    0    0    1    1    1    1    99    0    0    -1,-2,-2,-2    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0    0,0    0,0    0    0    0    0    0    0    0    0    0    ItemUse_MJRstr    0    0    0    0,0    0    0    Double click to obtain Level 65 Mordo Junior Strength.    0
####    Lv65 Egg of Mordo Junior Constitution    n0323    10130005    0    0    0    0    0    0    31    0    0    0    0    0    1    1    1    1    99    0    0    -1,-2,-2,-2    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0    0,0    0,0    0    0    0    0    0    0    0    0    0    ItemUse_MJRcon    0    0    0    0,0    0    0    Double click to obtain Level 65 Mordo Junior Constitution.    0
####    Lv65 Egg of Mordo Junior Spirit    n0323    10130005    0    0    0    0    0    0    31    0    0    0    0    0    1    1    1    1    99    0    0    -1,-2,-2,-2    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0    0,0    0,0    0    0    0    0    0    0    0    0    0    ItemUse_MJRspr    0    0    0    0,0    0    0    Double click to obtain Level 65 Mordo Junior Spirit.    0
####    Lv65 Egg of Mordo Junior Accuracy    n0323    10130005    0    0    0    0    0    0    31    0    0    0    0    0    1    1    1    1    99    0    0    -1,-2,-2,-2    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0    0,0    0,0    0    0    0    0    0    0    0    0    0    ItemUse_MJRacc    0    0    0    0,0    0    0    Double click to obtain Level 65 Mordo Junior Accuracy.    0
####    Lv65 Egg of Mordo Junior Agility    n0323    10130005    0    0    0    0    0    0    31    0    0    0    0    0    1    1    1    1    99    0    0    -1,-2,-2,-2    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    -1,-2,-2,-2,-2,-2,-2,-2,-2,-2    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0,0    0    0,0    0,0    0    0    0    0    0    0    0    0    0    ItemUse_MJRagi    0    0    0    0,0    0    0    Double click to obtain Level 65 Mordo Junior Agility.    0

Затем переходим в Server/resource/script/calculate/itemeffect.lua и вставляем:

-- Яйцо ловкости
function ItemUse_MJRagi( role , Item )
    local Item_CanGet = GetChaFreeBagGridNum ( role ) 
    if Item_CanGet <= 1 then
        SystemNotice(role ,"Недостаточно место в инвентаре! ")
        UseItemFailed ( role )
        return
    end
local new_agi= 65
local new_lv = 65
local r1,r2 = MakeItem ( role , 500 , 1 , 4 )
local Item_newJL = GetChaItem ( role , 2 , r2 )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_AGI , new_agi )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_LV , new_lv )
SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_URE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , 6480 )
SetItemAttr ( Item_newJL , ITEMATTR_ENERGY , 6480 )
RefreshCha(role)
end
 
-- Яйцо точности
function ItemUse_MJRacc( role , Item )
    local Item_CanGet = GetChaFreeBagGridNum ( role ) 
    if Item_CanGet <= 1 then
        SystemNotice(role ,"Недостаточно место в инвентаре! ")
        UseItemFailed ( role )
        return
    end
local new_dex= 65
local new_lv = 65
local r1,r2 = MakeItem ( role , 500 , 1 , 4 )
local Item_newJL = GetChaItem ( role , 2 , r2 )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_DEX , new_dex )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_LV , new_lv )
SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_URE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , 6480 )
SetItemAttr ( Item_newJL , ITEMATTR_ENERGY , 6480 )
RefreshCha(role)
end
 
-- Яйцо силы
function ItemUse_MJRstr( role , Item )
    local Item_CanGet = GetChaFreeBagGridNum ( role ) 
    if Item_CanGet <= 1 then
        SystemNotice(role ,"Недостаточно место в инвентаре! ")
        UseItemFailed ( role )
        return
    end
local new_str= 65
local new_lv = 65
local r1,r2 = MakeItem ( role , 500 , 1 , 4 )
local Item_newJL = GetChaItem ( role , 2 , r2 )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_STR , new_str )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_LV , new_lv )
SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_URE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , 6480 )
SetItemAttr ( Item_newJL , ITEMATTR_ENERGY , 6480 )
RefreshCha(role)
end
 
-- Яйцо телосложения
function ItemUse_MJRcon( role , Item )
    local Item_CanGet = GetChaFreeBagGridNum ( role ) 
    if Item_CanGet <= 1 then
        SystemNotice(role ,"Недостаточно место в инвентаре! ")
        UseItemFailed ( role )
        return
    end
local new_con = 65
local new_lv = 65
local r1,r2 = MakeItem ( role , 500 , 1 , 4 )
local Item_newJL = GetChaItem ( role , 2 , r2 )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_CON , new_con )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_LV , new_lv )
SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_URE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , 6480 )
SetItemAttr ( Item_newJL , ITEMATTR_ENERGY , 6480 )
RefreshCha(role)
end
 
-- Яйцо духа
function ItemUse_MJRspr( role , Item )
    local Item_CanGet = GetChaFreeBagGridNum ( role ) 
    if Item_CanGet <= 1 then
        SystemNotice(role ,"Недостаточно место в инвентаре! ")
        UseItemFailed ( role )
        return
    end
local new_sta= 65
local new_lv = 65
local r1,r2 = MakeItem ( role , 500 , 1 , 4 )
local Item_newJL = GetChaItem ( role , 2 , r2 )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_STA , new_sta )
SetItemAttr ( Item_newJL , ITEMATTR_VAL_LV , new_lv )
SetItemAttr ( Item_newJL , ITEMATTR_MAXURE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_URE , 32000 )
SetItemAttr ( Item_newJL , ITEMATTR_MAXENERGY , 6480 )
SetItemAttr ( Item_newJL , ITEMATTR_ENERGY , 6480 )
RefreshCha(role)
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.

Sign in to follow this  

×
×
  • Create New...