Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Help How to Enable Socket With Joh  (Visto 731 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline judakiss21 Posteado: March 21, 2021, 04:12:51 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 11
  • ph
Can someone help me how to add Jewel of Harmony (Yellow Options) to Socketed Items??
I am using Takumi Source.. pls comment or pm me.

Gracias:


Offline Ifreat #1 Posteado: March 21, 2021, 10:54:12 AM | Modificado: March 21, 2021, 10:58:05 AM by baphomet

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 731
  • Gracias recibida: 5119
  • gb
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK

Error . . . . . .

Offline Ifreat #2 Posteado: March 21, 2021, 10:54:23 AM | Modificado: March 21, 2021, 11:00:57 AM by baphomet

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 731
  • Gracias recibida: 5119
  • gb
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK


Error . . . . . .

Offline judakiss21 #3 Posteado: March 21, 2021, 02:18:31 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 11
  • ph
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK



https://prnt.sc/10rs71w have thats line in GS


Offline Ifreat #4 Posteado: March 21, 2021, 03:06:13 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 731
  • Gracias recibida: 5119
  • gb
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK



https://prnt.sc/10rs71w have thats line in GS
i gave you thr code just copy and search it on gs and look for the variables for lpitem

Error . . . . . .

Offline judakiss21 #5 Posteado: March 21, 2021, 03:32:26 PM | Modificado: March 21, 2021, 03:38:31 PM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 11
  • ph
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK



https://prnt.sc/10rs71w have thats line in GS
i gave you thr code just copy and search it on gs and look for the variables for lpitem

can u give me full source bro?


Offline Ifreat #6 Posteado: March 21, 2021, 03:38:19 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 731
  • Gracias recibida: 5119
  • gb
full source is on the ltp source which is not complete
you need to modify it yourself

Error . . . . . .

Offline Ifreat #7 Posteado: March 21, 2021, 10:33:38 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 731
  • Gracias recibida: 5119
  • gb
check this lines in

ItemManager.cpp

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK



https://prnt.sc/10rs71w have thats line in GS
i gave you thr code just copy and search it on gs and look for the variables for lpitem

can u give me full source bro?

since you like copy paste and not analyzing the source itself
i will give you this code and the rest is up to you xD

Code: [Select]
void CItemManager::ItemByteConvert(BYTE* lpMsg,CItem item) // OK
{
lpMsg[0] = item.m_Index & 0xFF;

lpMsg[1] = 0;
lpMsg[1] |= item.m_Level*8;
lpMsg[1] |= item.m_Option1*128;
lpMsg[1] |= item.m_Option2*4;
lpMsg[1] |= item.m_Option3 & 3;

//int tempDur = this->GetItemDurability(item.m_Index,item.m_Level,item.m_NewOption,item.m_SetOption);

//lpMsg[2] = ((BYTE)item.m_Durability > tempDur)?tempDur:item.m_Durability;

lpMsg[2] = (BYTE)item.m_Durability;

lpMsg[3] = 0;
lpMsg[3] |= (item.m_Index & 256) >> 1;
lpMsg[3] |= ((item.m_Option3>3)?64:0);
lpMsg[3] |= item.m_NewOption;

lpMsg[4] = item.m_SetOption;

lpMsg[5] = 0;
lpMsg[5] |= (item.m_Index & GET_ITEM(15,0)) >> 5;
lpMsg[5] |= ((item.m_ItemOptionEx & 128) >> 4);
lpMsg[5] |= ((item.m_IsPeriodicItem & 1) << 1);
lpMsg[5] |= ((item.m_IsExpiredItem & 1) << 2);

/*if(item.IsSocketItem(1) == 0 && item.IsPentagramItem() == 0 && item.IsPentagramJewel() == 0 && item.IsPentagramMithril() == 0 && item.IsMuunItem() == 0)
{
lpMsg[6] = item.m_JewelOfHarmonyOption;
}
else
{
LogAdd(LOG_TEST, "%d",item.m_SocketOptionBonus);
lpMsg[6] = item.m_SocketOptionBonus;
}*/
lpMsg[6] = item.m_JewelOfHarmonyOption;

/*if (item.IsSocketItem())
{
lpMsg[6] = 3;
}*/

memcpy(&lpMsg[7],item.m_SocketOption,MAX_SOCKET_OPTION);
}

Error . . . . . .

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4034 Views
Last post May 23, 2020, 11:26:39 AM
by anpemeut
0 Replies
1500 Views
Last post April 27, 2020, 11:15:48 AM
by emersonx13
3 Replies
1424 Views
Last post April 13, 2022, 06:09:21 AM
by samsunggon
2 Replies
511 Views
Last post March 20, 2021, 01:02:00 AM
by samsunggon
1 Replies
1036 Views
Last post April 02, 2021, 04:03:03 PM
by Azzlaer