Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04.07.2007, 21:43   #11
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35.