Pesquisar na Comunidade
Mostrando resultados para as tags ''descompilação''.
Encontrado 3 registros
-
//0401C3F addr da func na TMSrv 7.56 int BASE_CanEquip(STRUCT_ITEM* item, STRUCT_SCORE* score, int SlotPos, int MobClass, STRUCT_ITEM* pBaseEquip, int OriginalFace, int cktrans) { if (item->sIndex <= 0 || item->sIndex >= MAX_ITEMLIST) return 0; int UniqueItem = g_pItemList[item->sIndex].nUnique; if (SlotPos == 15) return 0; int GradeItem = g_pItemList[item->sIndex].nGrade; if (SlotPos != -1) { int ItemPos = BASE_GetItemAbility(item, 17); if (!((ItemPos >> SlotPos) & 1)) return 0; if (SlotPos == 6 || SlotPos == 7) { int OtherPos = SlotPos == 6 ? 7 : 6; int OtherIndex = pBaseEquip[OtherPos].sIndex; if (OtherIndex > 0 && OtherIndex < MAX_ITEMLIST) { int UniqueItem2 = g_pItemList[OtherIndex].nUnique; int PosEquip = BASE_GetItemAbility(&pBaseEquip [OtherPos], EF_POS); if (ItemPos == 64 || PosEquip == 64) { if (UniqueItem == 46) { if (PosEquip != 128) return 0; } else { if (UniqueItem2 != 46) return 0; if (ItemPos != 128) return 0; } } } } } if (MobClass >= 22 && MobClass <= 25 || MobClass == 32) MobClass = OriginalFace; int EggIndex = 0; if (item->sIndex >= 2300 && item->sIndex < 2390) EggIndex = (item->sIndex - 2300) % 30; int TransItem = MobClass % 10; if (SlotPos == 1 && TransItem > 5 && item->sIndex != 747 && item->sIndex != 3500 && item->sIndex != 3507 && item->sIndex != 3501 && item->sIndex != 3502 && item->sIndex != 3303 && item->sIndex != 3507) { return 0; } if ((EggIndex == 19 || EggIndex == 20) && TransItem <= 5) return 0; int TransItem2 = BASE_GetItemAbility(item, EF_TRANS); switch (TransItem2) { case 1: if (TransItem < 6) return 0; break; case 2: if (TransItem >= 6) return 0; break; case 3: if (TransItem < 6) return 0; if (cktrans != 1) return 0; break; } if (!((BASE_GetItemAbility(item, 18) >> MobClass / 10) & 1)) { if (TransItem <= 5) return 0; int nSlotPos = BASE_GetItemAbility(item, 17); if (nSlotPos != 64 && nSlotPos != 128 && nSlotPos != 192) return 0; } if (UniqueItem % 10 >= 9 && UniqueItem < 40 && TransItem < 6) return 0; int ReqLevel = BASE_GetItemAbility(item, EF_LEVEL); int ReqStr = BASE_GetItemAbility(item, EF_REQ_STR); int ReqInt = BASE_GetItemAbility(item, EF_REQ_INT); int ReqDex = BASE_GetItemAbility(item, EF_REQ_DEX); int ReqCon = BASE_GetItemAbility(item, EF_REQ_CON); int wType = BASE_GetItemAbility(item, EF_WTYPE); int WeaponType = wType % 10; int WeaponMode = wType % 10; int WeaponDivision = wType % 10 / 10; if (SlotPos == 7 && WeaponType) { int Rate = 100; if (WeaponDivision || WeaponMode <= 1) { if (WeaponDivision == 6 && WeaponMode > 1) Rate = 150; } else { Rate = 130; } ReqLevel = Rate * ReqLevel / 100; ReqStr = Rate * ReqStr / 100; ReqInt = Rate * ReqInt / 100; ReqDex = Rate * ReqDex / 100; ReqCon = Rate * ReqCon / 100; } if (TransItem > 5) { if (ReqLevel > score->Level) return FALSE; if (ReqStr > score->Str) return FALSE; if (ReqInt > score->Int) return FALSE; if (ReqDex > score->Dex) return FALSE; if (ReqCon > score->Con) return FALSE; } return TRUE; }
-
descompilação GetItemAbility(NoSanc, Static, Bonus e item) 762 W2PP
lord320 postou um tópico no fórum em WYD - Desenvolvimento
NoSanc [Hidden Content] Item [Hidden Content] Static [Hidden Content] Bonus [Hidden Content] Como todos nós sabemos o calculo não é 100% preciso então resolvi fazer essa descompilação, essa descompilação promete corrigir calculo dos atributos do itens foi retirada do .exe redefinir as refinações assim para que funcione 100%(Pode haver algum erro até onde eu testei está 100% funcional) #define REF_10 10 #define REF_11 11 #define REF_12 12 #define REF_13 13 #define REF_14 14 #define REF_15 15 Por favor, caso não queria corrigir o "erro" Evite resposta flame na publicação. Créditos: @yukita @lord320- 5 respostas
-
- 47
-
-
-
source Descompilação (DBSRV & TMSRV) 7556
seitbnao postou um tópico no fórum em Depósito Patched/Links Quebrados
DBSRV.c #Download TMSRV.c #Download- 4 respostas
-
- 7
-
-
- 7556
- descompilação
-
(e 2 mais)
Tags:
