mi server file bug

Results 1 to 4 of 4
  1. #1
    Apprentice ellento01 is offline
    MemberRank
    Aug 2009 Join Date
    7Posts

    mi server file bug

    I have this problem, do cant open chest in mi server
    http://imageshack.us/photo/my-images/696/dibujonbo.jpg/
    Last edited by ellento01; 09-05-12 at 04:18 AM.


  2. #2
    Novice jontepp is offline
    MemberRank
    Aug 2009 Join Date
    4Posts

    Re: mi server file bug

    your database and game server is nor compatible if im not wrong

  3. #3
    Account Upgraded | Title Enabled! opexone78 is offline
    MemberRank
    Oct 2008 Join Date
    216Posts

    Re: mi server file bug

    try to replace your client bin files with your server bin files, especially iteminfo.bin

  4. #4
    Account Upgraded | Title Enabled! micah1121 is offline
    MemberRank
    Jan 2010 Join Date
    213Posts

    Re: mi server file bug

    LoL, this is epically simple
    in your iteminfo.txt on the line for the chest there should be ItemUse_(whatever name you put)
    first thing you do is set any name after the _ then go to resource/scripts/calculate/itemeffect.lua

    in the itemeffect.lua find the line of the function that you put it Example: function ItemUse_WOAH
    function ItemUse_ Make sure the name is the same as the name in your iteminfo.txt

    example:
    Iteminfo:
    ItemUse_WOAH

    then in the itemeffect.lua is should look like this

    Spoiler:
    function ItemUse_WOAH ( role , Item )
    local cha = TurnToCha ( role )
    local cha_type = GetChaTypeID ( cha )

    local Item_CanGet = GetChaFreeBagGridNum ( cha )

    if Item_CanGet <= 1 then --------------------This is how many spaces are needed to open chest
    SystemNotice(role ,"Requires 1 slots in inventory to open this Chest") ------- txt that appears if the number of spaces arent available in inventory

    UseItemFailed ( role )
    return
    end

    GiveItem ( cha , 0 , (your item id) , (quantity) , (if gem 101-109 if normal items just put 1 or 0 ) ) ----------- item the person gets after double clicking chest if they have enough spaces, please dont be stupid; you clearly remove the parenthesis, suppose to look like
    GiveItem ( cha , 0 , 654, 1 , 0 )

    end


    if you still dont understand just add my msn and il help you
    micah_1151@hotmail.com



Advertisement