Ir para conteúdo

Jackson Zani

Campones
  • Total de itens

    84
  • Registro em

  • Última visita

Tudo que Jackson Zani postou

  1. Belo tópico standorf! Pena que a maioria dos links estão quebrados ;\ Se não iria ajudar muita gente hehehe. Abraços!
  2. ótima dica obrigado nostradamus :] abraços
  3. PLEASE COMMENTS! Bom não sei se já tinha esse code aqui, não me lembro direito só que ele tinha um pequeno error intão irei postar certo Em game.cpp procure a função Game::playerSpeakTo e abaixo de : Player* toPlayer = getPlayerByName(receiver); if(!toPlayer) { player->sendTextMessage(MSG_STATUS_SMALL, "A player with this name is not online."); return false; } Adicione: #ifdef __BB_ANTI_MSG__ if(toPlayer->getAccessLevel() >= GM_PM_LEV && GM_PM == "no" && player->getAccessLevel() < ACCESS_TALK) { std::stringstream ww; ww << "You cannot message to " << toPlayer->getName() << "."; player->sendTextMessage(MSG_STATUS_SMALL, ww.str()); return false; } #endif Em configmanager.cpp abaixo de: m_confInteger[ACCESS_LOOK] = getGlobalNumber(L, "accesslook", 1); Adicione: #ifdef __BB_ANTI_MSG__ m_confString[GM_PM] = getGlobalString(L, "gm_pm", "no"); m_confInteger[GM_PM_LEV] = getGlobalNumber(L, "gm_block_pm_lev", 3); #endif Em configmanager.h abaixo de: MAX_DEPOT_ITEMS, Adicione: #ifdef __BB_ANTI_MSG__ GM_PM_LEV, #endif ainda em configmanager.h abaixo de: BATTLE_WINDOW_PLAYERS, Adicione: #ifdef __BB_ANTI_MSG__ GM_PM, #endif Em definitions.h abaixo de: #define ACCESS_LOOK g_config.getNumber(ConfigManager::ACCESS_LOOK) Adicione: #ifdef __BB_ANTI_MSG__ #define GM_PM g_config.getString(ConfigManager::GM_PM) #define GM_PM_LEV g_config.getNumber(ConfigManager::GM_PM_LEV) #endif no config.lua adicione: -- do you want to player can message to GM?(yes/no) gm_pm = "no" -- access level to block message from players gm_block_pm_lev = 3 agora dê alt+p vá em paramenters e em C++ Adicione: -D__BB_ANTI_MSG__ Credits: Jackson Zani, Valker(Code). Abraços
  4. não dexa como está na pasta normal suboras e tu posto no topico errado mais nao da nada hehehe, Não mexe na pasta não liga pra oque eu falei @nostradamus: eu gosto dele asim, não aparenta errors mas sua ídeia é muito boa hehehe vlw abraços!
  5. ops tinha errado de tópico sorry, suboras não precisa nada de itens nao hehehe só não pode esquecer de escrever no paraments :}
  6. hehehe isso mesmo erpen, demorei pra fazer esse code mais consegui! hahaha brigadão ai abraços!
  7. tipo eu falei certo erpen, eu acho mais justo porque tipo quando chega a um certo skills tipo maior que 60 o cara lvl alto vai ter damage *2, mesmo asim ele vai ter o hit muito alto.. abraços!
  8. Comments please 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 . Funcionou 100% em todas as versões 7.9+ do evolution ( não testei em outra versão ainda ) 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: Jackson Zani, Lews
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...