Jackson Zani 1 #1 Posted February 9, 2007 Comments please http://www.otnet123.kit.net/style_emoticons/<#EMO_DIR#>/smile.gif bom! Para quem não sabe oque é critical, é um code para você dar hits maior que o normal ( somente quando você da critical ), a chance você poderá mudar no config.lua, quanto maior o seu skills, menor será seu damage de critical http://www.otnet123.kit.net/style_emoticons/<#EMO_DIR#>/smile.gif. Funcionou 100% na nova SVN em weapons.cpp procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, ammuAttackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif Em CONFIGMANAGER.CPP adicione #ifdef __CRITICAL_HIT__ m_confInteger[CRITICAL_HIT] = getGlobalNumber(L, "criticalhit", 10); #endif Em CONFIGMANAGER.H adicione #ifdef __CRITICAL_HIT__ CRITICAL_HIT, #endif No config.lua Adicione -- chance to make a critical hit (10 = 10%) criticalhit = 10 Em parâmetros, nas opções do projeto, adicione em Compilador C++: -D__CRITICAL_HIT__ Pronto, agora dê rebuild all Esse comando faiz os paladins e os knights darem critico o damage eh você que ajusta Créditos para: Lews, Jackson Zani 1 boxxer321 reacted to this Share this post Link to post
Jackson Zani 1 #2 Posted February 9, 2007 Comments please http://www.otnet123.kit.net/style_emoticons/<#EMO_DIR#>/smile.gif bom! Para quem não sabe oque é critical, é um code para você dar hits maior que o normal ( somente quando você da critical ), a chance você poderá mudar no config.lua, quanto maior o seu skills, menor será seu damage de critical http://www.otnet123.kit.net/style_emoticons/<#EMO_DIR#>/smile.gif. Funcionou 100% na nova SVN em weapons.cpp procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif procure por: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, ammuAttackValue); em baixo adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif Em CONFIGMANAGER.CPP adicione #ifdef __CRITICAL_HIT__ m_confInteger[CRITICAL_HIT] = getGlobalNumber(L, "criticalhit", 10); #endif Em CONFIGMANAGER.H adicione #ifdef __CRITICAL_HIT__ CRITICAL_HIT, #endif No config.lua Adicione -- chance to make a critical hit (10 = 10%) criticalhit = 10 Em parâmetros, nas opções do projeto, adicione em Compilador C++: -D__CRITICAL_HIT__ Pronto, agora dê rebuild all Esse comando faiz os paladins e os knights darem critico o damage eh você que ajusta Créditos para: Lews, Jackson Zani Share this post Link to post
strenght 0 #3 Posted February 9, 2007 Funcionou 100% mesmo, isso melhorou muito e valorizou os knight e os paladin parabens! continue asim que tu vai longe! >APROVADO< Share this post Link to post
strenght 0 #4 Posted February 9, 2007 Funcionou 100% mesmo, isso melhorou muito e valorizou os knight e os paladin parabens! continue asim que tu vai longe! >APROVADO< Share this post Link to post
bruxo 0 #5 Posted February 9, 2007 Opa, tinha que ser programmer do Mirage mesmo ^^ Parabéns, funciona 100% ^^ Share this post Link to post
bruxo 0 #6 Posted February 9, 2007 Opa, tinha que ser programmer do Mirage mesmo ^^ Parabéns, funciona 100% ^^ Share this post Link to post
lews 0 #7 Posted February 9, 2007 a gente ta tentando fazer um critical melhorzin... soh q eu to meio enferrujado ainda esse ai o jack soh pego o code e adicionou as msg =p Share this post Link to post
lews 0 #8 Posted February 9, 2007 a gente ta tentando fazer um critical melhorzin... soh q eu to meio enferrujado ainda esse ai o jack soh pego o code e adicionou as msg =p Share this post Link to post
Sephy 0 #9 Posted February 9, 2007 nossa tava querendo isso... mto bom parabéns e continue assim fLwz Share this post Link to post
Sephy 0 #10 Posted February 9, 2007 nossa tava querendo isso... mto bom parabéns e continue assim fLwz Share this post Link to post
lews 0 #11 Posted February 10, 2007 aki ta a atualizaçao q o jackson falou... soh q esse eh o code intero, entao qm colocou o antigo fica esperto ae =p WEAPONS.CPP: Em "int32_t WeaponMelee::getWeaponDamage", procure: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo, adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif Em "int32_t WeaponDistance::getWeaponDamage", procure: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, ammuAttackValue); em baixo, adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif CONFIGMANAGER.CPP #ifdef __CRITICAL_HIT__ m_confInteger[CRITICAL_HIT] = getGlobalNumber(L, "criticalhit", 10); #endif CONFIGMANAGER.H #ifdef __CRITICAL_HIT__ CRITICAL_HIT, #endif CONFIG.LUA -- chance to make a critical hit (10 = 10%) criticalhit = 50 Observações: Feito e testado no Evolutions 0.7.6 Créditos: Rapha, Lews, Jackson. Em parâmetros, nas opções do projeto, adicione em Compilador C++: -D__CRITICAL_HIT__ Share this post Link to post
lews 0 #12 Posted February 10, 2007 aki ta a atualizaçao q o jackson falou... soh q esse eh o code intero, entao qm colocou o antigo fica esperto ae =p WEAPONS.CPP: Em "int32_t WeaponMelee::getWeaponDamage", procure: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, attackValue); em baixo, adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif Em "int32_t WeaponDistance::getWeaponDamage", procure: int32_t maxDamage = Weapons::getMaxWeaponDamage(attackSkill, ammuAttackValue); em baixo, adicione: #ifdef __CRITICAL_HIT__ if(random_range(0,100) < g_config.getNumber(ConfigManager::CRITICAL_HIT)){ if(attackSkill > 60){ maxDamage *= 2; } else if(attackSkill > 30){ maxDamage *= 3; } else { maxDamage *= 4; } g_game.addAnimatedText(player->getPosition(), 906, "Critical!"); } #endif CONFIGMANAGER.CPP #ifdef __CRITICAL_HIT__ m_confInteger[CRITICAL_HIT] = getGlobalNumber(L, "criticalhit", 10); #endif CONFIGMANAGER.H #ifdef __CRITICAL_HIT__ CRITICAL_HIT, #endif CONFIG.LUA -- chance to make a critical hit (10 = 10%) criticalhit = 50 Observações: Feito e testado no Evolutions 0.7.6 Créditos: Rapha, Lews, Jackson. Em parâmetros, nas opções do projeto, adicione em Compilador C++: -D__CRITICAL_HIT__ Share this post Link to post
Jackson Zani 1 #13 Posted February 10, 2007 muito boa lews eu sabia que uma hr ou otra nois ia conseguir equipe eh equipe! abração valeu broww! Share this post Link to post
Jackson Zani 1 #14 Posted February 10, 2007 muito boa lews eu sabia que uma hr ou otra nois ia conseguir equipe eh equipe! abração valeu broww! Share this post Link to post
tuizom 0 #15 Posted February 12, 2007 Opa Jack~ Muito Bom essa parada ai! Ta de Parabéns! Continue assim! Abraços Share this post Link to post
Nishimura 0 #16 Posted February 13, 2007 @Jackson Cara, vc pode me adicionar no MSN? Preciso de uns toques. Eu pago pelo suporte. add se possivél. [email protected] Vlw Share this post Link to post
Delvire 0 #17 Posted February 13, 2007 Nuss e eu pensando q esse -C++ era uma coisa complicada pra kct :mrgreen: bom, pra qem gosta de "animaçõezinhas" ta mto bom msm Share this post Link to post
Vufusuf 1 #18 Posted February 13, 2007 Originally posted by Jackson Zani no caso desse a chance de ele acertar eh de 0 á 100 ex:if(random_range(0,100) < 7){ se quiser mais demorado, mude 100 para 400+ C++ não é minha área, mas não precisa saber C++ pra entender que no caso o o dano crítico no caso tem 7% de chance, e não de 0 à 100 (1%). É + ou - assim que funciona: random_range(0,100) = irá sortiar um número randomicamente entre 0 e 100 if(random_range(0,100) < 7 = Se o numéro for menor que 7 então... (no caso se o número for entre 0 e 6) Ou seja, 7% de chance E pra quem qusier alterar a chance de crítico, tem que apenas alterar o 7 pela porcentagem desejada Legal a idéia do code, só axo que essa 'fórmula' podia ser reformulada (x * 2 ? xD) Mas isso é o dono do server que ve.... Abraços Share this post Link to post
Jackson Zani 1 #19 Posted February 13, 2007 @Delvire: é meio complicado sim, mais quando tu intende tu pega o jeito ;D @Nishimura: Fosse add @Brigado Vufusuf, mais como você pode ver mudamos totalemnte do code dai esqueci de comentar hehehe. mais obrigado ai! abraços Share this post Link to post
Nishimura 0 #20 Posted February 16, 2007 Aeee. Critical Hit System funcionando 100% Perfieto velho Vlw.. Recomendoo Share this post Link to post