View Single Post
Old 04.07.2007, 21:43   #189
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Code:
//RequestCursedWeaponList
//Client sends packet format "ch"
case 0x22:
	if(isDebug)
		logNormal << ... ;
	
	//send reply
	//first d = size, then second d = item ID to add to the list
	pSocket->Send("chdd", 0xFE, 0x45, 1, 8190);
	break;
Code:
//RequestCursedWeaponLocation
//Client sends packet format "ch"
case 0x23:
	if(isDebug)
		logNormal << ... ;

	//Get Cursed Weapon Users and send their location
	if(CursedWeaponUserExists(8190))
	{
		User * pZaricheUser = userMap.GetUser(GetCursedWeaponUserName(8190));
		if(pZaricheUser != NULL)
		{
			if(pZaricheUser->SharedData != NULL)
			{
				CSharedData * pSharedData = pZaricheUser->SharedData;
				//first d = size, then 5 d's for item_id, id/unk, x, y, z
				pSocket->Send("chddddd", 0xFE, 0x46, 1, 8190, 1, (int)pSharedData->X, (int)pSharedData->Y, (int)pSharedData->Z);
			}
		}
	}
	else
	{
		pSocket->Send("chd", 0xFE, 0x46, 0);
	}
	break;
Have fun My own Zariche system isn't done, but the basics are.
mcrabben7 is offline