Jump to content
flamyman1412

How to change MID?

Recommended Posts

local MID = GetChaID(dead)
    if(MID == 1)then
        local fame         = GetChaAttr( atk , ATTR_FAME )
        local famebonus = 100
        fame = fame + famebonus
        SetCharaAttr( fame, atk , ATTR_FAME )
    elseif(MID == 2) then
        BickerNotice(atk,'Find a refining gem!')    
        GiveItem(atk, 885 , 1, 4 )        
    end

 

I will adjust to a monster. All in game?
What is the function?

Share this post


Link to post
Share on other sites

MID is used to called the deadmonster id and this can be placed inside your server file > resource > script > calculate > exp_and_level.lua; find function GetExp_New(dead , atk  ) 
and place it near the end of this function.
 

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...