Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Fix CustomAttack auto mana potion MUEMU  (Visto 1251 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline lunaticodeveloper Posteado: June 02, 2021, 03:42:38 PM | Modificado: June 02, 2021, 06:12:12 PM by lunaticodeveloper

  • MAESTRO

  • US. DE HONOR

  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.845
  • Gracias recibida: 22184
  • ar
 cool2

Estuve viendo un bug que me reportaron al estar con el custom attack el personaje no se toma las potas medium de mana importante ne servers slow.

encontre que es porque esta mal hecho el llamado al item del CustomAttack.

Buscar en CustomAttack.cpp

Code: [Select]
if((GetTickCount()-((DWORD)lpObj->PotionTime)) >= (DWORD)this->m_CustomAttackPotionDelay && ((lpObj->Mana*100)/(lpObj->MaxMana+lpObj->AddMana)) < 50)
{
PMSG_ITEM_USE_RECV pMsg;

pMsg.header.set(0x26,sizeof(pMsg));

pMsg.SourceSlot = 0xFF;

pMsg.SourceSlot = ((pMsg.SourceSlot==0xFF)?gItemManager.GetInventoryItemSlot(lpObj,GET_ITEM(14,6),-1):pMsg.SourceSlot);

pMsg.SourceSlot = ((pMsg.SourceSlot==0xFF)?gItemManager.GetInventoryItemSlot(lpObj,GET_ITEM(14,4),-1):pMsg.SourceSlot);

pMsg.SourceSlot = ((pMsg.SourceSlot==0xFF)?gItemManager.GetInventoryItemSlot(lpObj,GET_ITEM(14,3),-1):pMsg.SourceSlot);

pMsg.TargetSlot = 0xFF;

pMsg.type = 0;

if(INVENTORY_FULL_RANGE(pMsg.SourceSlot) != 0){gItemManager.CGItemUseRecv(&pMsg,lpObj->Index);}
}

Y Modificar de esta forma:



Saludos:
Lunaticodeveloper

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!
Alojamiento de Servidores / Venta de Configuraciones Mu Online / Espacio de alojamiento para WebHost / Venta de diseño grafico.

Offline melo920 #1 Posteado: June 04, 2021, 01:37:53 PM | Modificado: June 06, 2021, 12:05:05 AM by melo920

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 281
  • Gracias recibida: 6487
  • co

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
19 Replies
5385 Views
Last post October 14, 2018, 03:09:53 PM
by facuquilmes
1 Replies
604 Views
Last post March 24, 2019, 10:32:55 AM
by tinnhan247
20 Replies
3272 Views
Last post May 13, 2021, 06:01:04 PM
by legacy101
3 Replies
1976 Views
Last post September 01, 2022, 10:47:05 AM
by BANGUber
0 Replies
147 Views
Last post June 16, 2023, 10:04:00 AM
by xXSiniestroXx