Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Pedido Fix Source autopot exteam  (Visto 626 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline copixx Posteado: August 05, 2019, 07:49:12 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 61
  • Gracias recibida: 42
  • ar
Buenas noches! Tengo este source en el offattack de los sources ExTeam (S3 o S6 son iguales) pero no funciona, o sea, no consume las pociones de mana. Si algun coder sabe como fixearlo o programarlo se los agradezco!

P.D: estuve intentando pero no se codear, fixie otras cosas pero esto no puedo :/ este es el link de los sources: http://tuservermu.com.ve/index.php?topic=24208.0

Citar
void cOffExp::UseMana(int aIndex)
{
   LPOBJ lpObj = &gObj[aIndex];


   if(lpObj->Mana > 100) return;
      
   int pos;

   pos = gObjGetManaItemPos(aIndex);

   if(pos == -1) return;

   if( lpObj->pInventory[pos].m_Type == ITEMGET(14,4) ||
      lpObj->pInventory[pos].m_Type == ITEMGET(14,5) ||
      lpObj->pInventory[pos].m_Type == ITEMGET(14,6)  )
   {
      int tMana = (lpObj->pInventory[pos].m_Value*10) - (lpObj->Level);

      if ( tMana < 0 )
      {
         tMana=0;
      }

      switch ( lpObj->pInventory[pos].m_Type )
      {
      case ITEMGET(14,4):
         tMana += ((int)(lpObj->MaxMana + lpObj->AddMana))*20/100;
         break;
      case ITEMGET(14,5):
         tMana += ((int)(lpObj->MaxMana + lpObj->AddMana))*30/100;
         break;
      case ITEMGET(14,6):
         tMana += ((int)(lpObj->MaxMana + lpObj->AddMana))*40/100;
         break;
      }

      lpObj->Mana += tMana;

      if ( gObj[aIndex].Mana > (gObj[aIndex].MaxMana+gObj[aIndex].AddMana-1.0f) )
      {
         gObj[aIndex].Mana = gObj[aIndex].MaxMana+gObj[aIndex].AddMana;
      }

      GCManaSend(aIndex, (int)gObj[aIndex].Mana, 0xFF, 0, (int)gObj[aIndex].BP);

      if ( !gObjSearchItemMinus(&gObj[aIndex], pos, 1) )
      {
         gObjInventoryItemSet(aIndex, pos, -1);
         gObj[aIndex].pInventory[pos].Clear();
         GCInventoryItemDeleteSend(aIndex, pos, 1);
      }
   }
}



Offline Odisk #1 Posteado: August 06, 2019, 01:27:09 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 882
  • Gracias recibida: 12302
  • pr
Estas usando el comando o la ventana que se abre del offattack ?

one day

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1247 Views
Last post July 14, 2017, 02:42:40 AM
by Cacikus
1 Replies
664 Views
Last post October 26, 2019, 03:15:55 PM
by Bladimir Barbaro
2 Replies
592 Views
Last post January 08, 2020, 04:07:19 PM
by kayito
0 Replies
480 Views
Last post June 03, 2020, 07:00:10 PM
by mavine
4 Replies
1376 Views
Last post February 22, 2021, 12:18:47 PM
by takumi12