Tipologie server(PvM / PvP): PVM
*Resursă folosită: *Link exclusiv J4M* -
*ServerFiles utilizat:Clean
*Syserr:
Poză: Video
*Detalii suplimentare: Cum fac sa apara ca la esarfe, dupa ce pun esarfa si dupa arma sa apara jos acolo esarfa cu bonusurile. Vreau sa fac asa si la esarfa aura. Cred ca am gasit unde trebuie modificat dar nu stiu cum. Uitati-va la video ca sa intelegeti.
Cod: Selectaţi tot
ACMD(do_aura_add)
{
char arg1[256];
one_argument(argument, arg1, sizeof(arg1));
if (!*arg1)
return;
BYTE *position;
position = new BYTE;
str_to_number(*position, arg1);
if (*position > 179)// envanter max slot sayi
return;
if (ch->GetInventoryItem(*position) != NULL)
{
if (ch->GetWindow() == 3)
{
if (ch->GetInventoryItem(*position)->GetVnum() >= 49001 && 49006 >= ch->GetInventoryItem(*position)->GetVnum())
ch->AurayiSlotaEkleme(ch->GetInventoryItem(*position));
else if (ch->GetInventoryItem(*position)->GetType() == ITEM_ARMOR && ch->GetInventoryItem(*position)->GetSubType() != ARMOR_BODY)
ch->MaterialiSlotaEkleme(ch->GetInventoryItem(*position));
}
else
{
if (ch->GetInventoryItem(*position)->GetVnum() >= 49001 && 49006 >= ch->GetInventoryItem(*position)->GetVnum())
ch->AurayiSlotaEkleme(ch->GetInventoryItem(*position));
else if (ch->GetInventoryItem(*position)->GetVnum() == 49990)
ch->MaterialiSlotaEkleme(ch->GetInventoryItem(*position));
}
}
delete position;
}


