[HELP] block item drop from inventory a one map

Results 1 to 4 of 4
  1. #1
    Apprentice qql1234 is offline
    MemberRank
    May 2012 Join Date
    10Posts

    [HELP] block item drop from inventory a one map

    Hello friends,someone how to block item drop from inventory a one map?


  2. #2
    Enthusiast Vitor Zaions is offline
    MemberRank
    Oct 2013 Join Date
    38Posts

    Re: [HELP] block item drop from inventory a one map

    Search for:

    Code:
    if( !plr->IsSwimming() )
    {
    var[0].SetString("$FR_PAUSE_INVENTORY_DROP_ITEM");
    var[1].SetInt(HPA_DROP_ITEM);
    gfxMovie.Invoke("_root.api.Main.Inventory.addContextMenuOption", var, 2);
    }
    Change to:

    if( !plr->IsSwimming() && gClientLogic().m_gameInfo.mapId != GBGameInfo::MAPID_WZ_Cliffside )
    {
    var[0].SetString("$FR_PAUSE_INVENTORY_DROP_ITEM");
    var[1].SetInt(HPA_DROP_ITEM);
    gfxMovie.Invoke("_root.api.Main.Inventory.addContextMenuOption", var, 2);
    }

    Extra:

    Search:
    else if(itm->category == storecat_Backpack)
    {
    var[0].SetString("$FR_PAUSE_CHANGEBP");
    var[1].SetInt(HPA_USE_ITEM);
    gfxMovie.Invoke("_root.api.Main.Inventory.addContextMenuOption", var, 2);
    }

    Change For:

    else if(itm->category == storecat_Backpack)
    {
    if( !plr->IsSwimming() && gClientLogic().m_gameInfo.mapId != GBGameInfo::MAPID_WZ_Cliffside ) //Fix By Chrome
    {
    var[0].SetString("$FR_PAUSE_CHANGEBP");
    var[1].SetInt(HPA_USE_ITEM);
    gfxMovie.Invoke("_root.api.Main.Inventory.addContextMenuOption", var, 2);
    }
    }
    PS:Test the extra code,i don't test it
    Last edited by Vitor Zaions; 19-07-16 at 06:49 AM.

  3. #3
    Apprentice qql1234 is offline
    MemberRank
    May 2012 Join Date
    10Posts

    Re: [HELP] block item drop from inventory a one map

    Quote Originally Posted by Vitor Zaions View Post
    Search for:


    Change to:




    Extra:

    Search:

    Change For:



    PS:Test the extra code,i don't test it
    Thx. i want 2... map ?

  4. #4
    ☆Dying Dawn☆ Bombillo is offline
    MemberRank
    Jan 2012 Join Date
    ValhallaLocation
    977Posts

    Re: [HELP] block item drop from inventory a one map

    if( !plr->IsSwimming() && gClientLogic().m_gameInfo.mapId != GBGameInfo::MAPID_WZ_Cliffside || gClientLogic().m_gameInfo.mapId != GBGameInfo::MAPID_WZ_YOURMAPNAME )



Advertisement