PDA

View Full Version : |Source| Fix Bug de Zen (Com interfaces Abertas)



Goten
29/03/2020, 05:55 PM
ItemManager.cpp

//==============================================
// ENCONTRE E COLA NA PRÓXIMA FUNÇÃO
//================================================== ================================
// int CItemManager::RepairItem(LPOBJ lpObj,CItem* lpItem,int slot,int type) // OK
//================================================== ================================


//================================================== ===================
// Fix deixe o item de reparo dentro da interface e crie um bug Zen
// Seu custo diminui de (Ex: 5200 a 2000)
//================================================== ================================================== ==================
if (lpObj->Interface.type == INTERFACE_TRADE ||
lpObj->Interface.type == INTERFACE_WAREHOUSE ||
lpObj->Interface.type == INTERFACE_SHOP)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"Você não pode reparar nenhum item com determinadas interfaces abertas.");
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"Atenciosamente, a Administração.");
return 0;
}
//================================================== ================================================== ==================


Creditos:
File Emu
FG.Rih
NasLy