F e n r i r

Membro
  • Total de itens

    78
  • Registro em

  • Última visita

  • Days Won

    1

Reputação

4 Iniciante

Sobre F e n r i r

Informa??o do Perfil

  • Sexo:
    N?o informado
  1. Criei um sistema de imposto baseado battle/items.conf: vending_tax, onde todo aquele zeny que era deletado pelo emulador eu acabei revertendo para os lideres dos castelos.
  2. troque no npc: global_reg_value por: global_acc_reg_num_db
  3. parabéns Zell, sempre inovando no rag
  4. o emulador eAmod possui um sistema @pvpmode, onde deixava o player em modo de pvp e criava um aura de cor verde ao redor para identificar como modo pvp. da uma pesquisada nisso
  5. modifique essa parte: OnNPCKillEvent: for (set [email protected], 0; [email protected] < getarraysize($mvpid); set [email protected], [email protected] + 1) { if (killedrid == $mvpid[[email protected]]) set [email protected],1; } por: OnNPCKillEvent: for (set [email protected], 0; [email protected] < getarraysize($mvpid); set [email protected], [email protected] + 1) { if ((killedrid == $mvpid[[email protected]]) && (strcharinfo(3) != " guild_vs2 ")) set [email protected],1; }
  6. scripts

    muito bom HD, parabéns pela iniciativa
  7. provavelmente você deverá compatibilizar o seu executável com o sistema operacional do seu PC.
  8. vc precisa pegar a formula e tentar jogar números inteiros pra chegar no mesmo valor desejado. qual seria os valores e a formula a utilizar?
  9. estou tentando assim mas ainda tem alguma modificação que nao consigo criar :/ ACMD_FUNC(ranking) { nullpo_retr(-1, sd); if ( SQL_ERROR == Sql_Query(mmysql_handle, "SELECT `login`.`userid`, `global_reg_value`.`value` FROM `login` LEFT JOIN `global_reg_value` ON `login`.`account_id` = `global_reg_value`.`account_id` WHERE `global_reg_value`.`str` = '#ELOMOBA' AND `global_reg_value`.`value` > 0 ORDER BY `global_reg_value`.`value` DESC LIMIT 0,10") ) clif_displaymessage(fd, "MySQL Query Error. Please check your database."); else { clif_displaymessage(fd, "RANKING"); while ( SQL_SUCCESS == Sql_NextRow(mmysql_handle) ) { char *data; char userid[23]; int value; Sql_GetData(mmysql_handle, 0, &data, NULL); safestrncpy(userid, data, sizeof(name)); Sql_GetData(mmysql_handle, 1, &data, NULL); value = atoi(data); sprintf(atcmd_output, "name : %s | pontos : %d", userid, value); clif_displaymessage(fd, atcmd_output); } } Sql_FreeResult(mmysql_handle); } return 0; }
  10. Estou querendo aprender como criar um ranking, no caso uma consulta em sql no atcommand.c do emulador, sendo que será exibido como estes rankings em NPC que já utilizam. A intenção é para aprendizado, obrigado
  11. parabéns pelos sprites
  12. posta o NPC que fica mais fácil de identificar o erro.
  13. provavelmente ativando o mvpLOG vc pode fazer um sistema SQL de contagens dos monstros de acordo com o ID de cada.
  14. Estou com esse erro na compila??o infos.sln: 1>------ Rebuild All started: Project: infos, Configuration: Debug Win32 ------ 1> stdafx.cpp 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C2146: syntax error : missing ';' before identifier 'cin' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C2146: syntax error : missing ';' before identifier 'cout' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C2146: syntax error : missing ';' before identifier 'cerr' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C2146: syntax error : missing ';' before identifier 'clog' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C2146: syntax error : missing ';' before identifier 'wcin' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C2146: syntax error : missing ';' before identifier 'wcout' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C2146: syntax error : missing ';' before identifier 'wcerr' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C2146: syntax error : missing ';' before identifier 'wclog' 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\iostream(33): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): error C2297: '<<' : illegal, right operand has type 'const char [17]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(19): error C3861: 'sprintf': identifier not found 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2297: '<<' : illegal, right operand has type 'char [18]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2065: 'endl' : undeclared identifier 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(635): error C2378: 'std::istream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(25) : see declaration of 'std::istream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(636): error C2378: 'std::ostream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(26) : see declaration of 'std::ostream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(655): error C2378: 'std::wistream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(30) : see declaration of 'std::wistream' 1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(656): error C2378: 'std::wostream' : redefinition; symbol cannot be overloaded with a typedef 1> d:\program files\microsoft visual studio 10.0\vc\include\iostream(31) : see declaration of 'std::wostream' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(8): error C2084: function 'int main(void)' already has a body 1> d:\program files\microsoft visual studio 10.0\vc\include\cmath(7) : see previous definition of 'main' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): error C2297: '<<' : illegal, right operand has type 'const char [17]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(9): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2297: '<<' : illegal, right operand has type 'char [18]' 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): error C2065: 'endl' : undeclared identifier 1>d:\program files\microsoft visual studio 10.0\vc\include\cmath(22): warning C4552: '<<' : operator has no effect; expected operator with side-effect 1>d:\ragnarok\servidor_ragnabr\shield\ring-0-master\info\infos\stdafx.h(28): fatal error C1083: Cannot open include file: 'START.h': No such file or directory ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  15. a tabela do mac address ficar? na mesma de login? Assim fica melhor para fazer as checagens.