F-Caneiras Posted October 19, 2017 at 08:28 PM Share Posted October 19, 2017 at 08:28 PM Boas maltinha Trago aqui algo que pode ser util Sistema de críticos ou dds em tempo real Imagem A pasta contem todos os tutoriais de como implementar nas surce e fix Spoiler https://drive.google.com/open?id=0B0Hhps-o8NmIdFNxQ1JES3hrNzg Virus scan https://www.virustotal.com/#/file/12d8f86ffbf5705c98e9f05bfd990488349fa508789f45a1b6f30415bf0b0bf8/detection Fonte Vegas 1 Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted October 19, 2017 at 08:53 PM Share Posted October 19, 2017 at 08:53 PM Editei a fonte para o autor @Caneiras Tenho esse sistema implementado, apenas deixo aqui uma modificação para simplificar: No tutorial, onde diz: #ifdef ENABLE_NEW_AFFECT_POTION bool CHARACTER::SetAffectPotion(LPITEM item) { int blend_get_affect[] = {AFFECT_POTION_1, AFFECT_POTION_2, AFFECT_POTION_3, AFFECT_POTION_4, AFFECT_POTION_5, AFFECT_POTION_6}; int blend_null[] = {APPLY_NONE, AFF_NONE, 0, false}; int blend_list[] = {50821, 50822, 50823, 50824, 50825, 50826}; const char* blend_succes = {"<Affect Potion> Set icon ingame for item: |cFFc9ff00|H|h[%s]"}; int blend_time = item->GetSocket(2); switch (item->GetVnum()) { case 50821: AddAffect(blend_get_affect[0], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; case 50822: AddAffect(blend_get_affect[1], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; case 50823: AddAffect(blend_get_affect[2], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; case 50824: AddAffect(blend_get_affect[3], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; case 50825: AddAffect(blend_get_affect[4], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; case 50826: AddAffect(blend_get_affect[5], blend_null[0], blend_null[2], blend_null[1], blend_time, blend_null[2], blend_null[3], blend_null[3]); break; } ChatPacket(CHAT_TYPE_INFO, blend_succes, item->GetName()); } #endif Colocar antes o seguinte: #ifdef ENABLE_NEW_AFFECT_POTION void CHARACTER::SetAffectPotion(LPITEM item){ switch (item->GetVnum()){ case 50821: AddAffect(AFFECT_POTION_1, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break; case 50822: AddAffect(AFFECT_POTION_2, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break; case 50823: AddAffect(AFFECT_POTION_3, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break; case 50824: AddAffect(AFFECT_POTION_4, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break; case 50825: AddAffect(AFFECT_POTION_5, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break; case 50826: AddAffect(AFFECT_POTION_6, APPLY_NONE, 0, AFF_NONE, item->GetSocket(2), 0, false, false); break;}} #endif No fix, onde diz: #ifdef ENABLE_NEW_AFFECT_POTION int pkAff_blend[] = {AFFECT_POTION_1, AFFECT_POTION_2, AFFECT_POTION_3, AFFECT_POTION_4, AFFECT_POTION_5, AFFECT_POTION_6}; if ((pkAff->dwType == pkAff_blend[0]) || (pkAff->dwType == pkAff_blend[1]) || (pkAff->dwType == pkAff_blend[2]) || (pkAff->dwType == pkAff_blend[3]) || (pkAff->dwType == pkAff_blend[4]) || (pkAff->dwType == pkAff_blend[5])) { ++it; continue; } #endif Substituir por: #ifdef ENABLE_NEW_AFFECT_POTION switch (pkAff->dwType){ case AFFECT_POTION_1: case AFFECT_POTION_2: case AFFECT_POTION_3: case AFFECT_POTION_4: case AFFECT_POTION_5: case AFFECT_POTION_6: { ++it; continue; }} #endif Como na imagem: 1 Link to comment Share on other sites More sharing options...
Marco Posted October 20, 2017 at 06:05 AM Share Posted October 20, 2017 at 06:05 AM Até que é engraçado, contudo deve causar alguma queda de FPS, algum tipo de lag não? ( nunca testei ) Link to comment Share on other sites More sharing options...
[Admin] tierrilopes Posted October 20, 2017 at 11:59 AM Share Posted October 20, 2017 at 11:59 AM Não causa pois funciona como os bónus azuis lá em cima, pelo menos não notei impacto nenhum Link to comment Share on other sites More sharing options...
F-Caneiras Posted October 20, 2017 at 12:05 PM Author Share Posted October 20, 2017 at 12:05 PM Quando activas os dds aparece em cima ao lado dos bónus da mesma forma que quando ligas as poções e a skils aprecem la em cima no cliente ao lado dos bónus assim sabes que tens os bónus activos por um lado sabes se tem bug ou não xD Link to comment Share on other sites More sharing options...
Marco Posted October 20, 2017 at 07:54 PM Share Posted October 20, 2017 at 07:54 PM ahahahah enganei-me, isto esta para o post da chuva :$ fail :/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now