questions about 08 files

Results 1 to 5 of 5
  1. #1
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    questions about 08 files

    can 08 files add costom meds?


  2. #2
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: questions about 08 files

    2008 files can't add custom meds. You need to add them.
    They don't work unless you use this fix. Credits to Phail.

    Code:
    {
        MUID *uidChar;
        uint32_t nItemId;
        float fPos[3];
        float fTime;  
        
        WorldItem (MUID *uid, uint32_t id, float f[3], float fTimer)
        {
            uidChar = uid;
            nItemId = id;
            memcpy (fPos, f, 12);
            fTime = fTimer;
        }
    };
    
    DWORD WINAPI WorldItemCallback(LPVOID lpReserved)
    {
       WorldItem *pItem =(WorldItem *)lpReserved;
       Sleep (pItem->fTime * 1000);
       Packet pkt (MC_REQUEST_SPAWNWORLD_ITEM, GetPacketCounter());
       pkt << *uidChar << nItemId << fPos[0] << fPos[1] << fPos[2];
       pkt.Prepare();
       send (GetSocket(), pkt.getBuffer(), pkt.size(), 0);
       delete pItem;
    }
    
    void RequestSpawnWorldItemHook (MUID *uidChar, uint32_t nItem, float fPos[3], float fTime)
    {
        CreateThread (NULL, NULL, WorldItemCallback, new WorldItem (uidChar,nItme, fPos, fTime), NULL, NULL);   
    }

  3. #3
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Re: questions about 08 files

    Quote Originally Posted by phoenix_147 View Post
    2008 files can't add custom meds. You need to add them.
    They don't work unless you use this fix. Credits to Phail.

    Code:
    {
        MUID *uidChar;
        uint32_t nItemId;
        float fPos[3];
        float fTime;  
        
        WorldItem (MUID *uid, uint32_t id, float f[3], float fTimer)
        {
            uidChar = uid;
            nItemId = id;
            memcpy (fPos, f, 12);
            fTime = fTimer;
        }
    };
    
    DWORD WINAPI WorldItemCallback(LPVOID lpReserved)
    {
       WorldItem *pItem =(WorldItem *)lpReserved;
       Sleep (pItem->fTime * 1000);
       Packet pkt (MC_REQUEST_SPAWNWORLD_ITEM, GetPacketCounter());
       pkt << *uidChar << nItemId << fPos[0] << fPos[1] << fPos[2];
       pkt.Prepare();
       send (GetSocket(), pkt.getBuffer(), pkt.size(), 0);
       delete pItem;
    }
    
    void RequestSpawnWorldItemHook (MUID *uidChar, uint32_t nItem, float fPos[3], float fTime)
    {
        CreateThread (NULL, NULL, WorldItemCallback, new WorldItem (uidChar,nItme, fPos, fTime), NULL, NULL);   
    }
    WRONG! use GunZ 2830's method to enable Custom MAps for clan + world items and follow styxs tutorial on how to add custom meds and it works 100%

  4. #4
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: questions about 08 files

    Oh I thought he meant hp/ap/ammo spawns by worlditems in that thread! Thanks for letting me know!

  5. #5
    Alpha Member gregon13 is offline
    MemberRank
    Nov 2007 Join Date
    CanadaLocation
    1,945Posts

    Re: questions about 08 files

    Quote Originally Posted by phoenix_147 View Post
    Oh I thought he meant hp/ap/ammo spawns by worlditems in that thread! Thanks for letting me know!
    np and if you have items that go pass 40 ap find his disable AP thread it disables the ap limit



Advertisement