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);
}
Re: questions about 08 files
Quote:
Originally Posted by
phoenix_147
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%
Re: questions about 08 files
Oh I thought he meant hp/ap/ammo spawns by worlditems in that thread! Thanks for letting me know!
Re: questions about 08 files
Quote:
Originally Posted by
phoenix_147
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