Jump to content

KirieZ

Core Developers
  • Content Count

    211
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by KirieZ

  1. When you change the value on source, you have to update your registry instead of the sd-> variable. Example: pc_setglobalreg(sd,script->add_variable("TRAINING_POINT"), sd->training_point + pontos); This would update both the script var and your sd-> data. Also, your atcommand has some issues: 1. sscanf pontos = sscanf(message, "%12d", &pontos); // should be sscanf(message, "%12d", &pontos); because sscanf will set values from string in the pointers passed by parameter. sscanf return is actually how many of these variables were filled (in this case it would always set "pontos" to 1 if you gave one number in the command). (Reference: http://www.cplusplus.com/reference/cstdio/sscanf/ ) 2. clif->message( fd, resultado + "/200"); // message - show points C doesn't let you concat strings like that. You would need to use something like sprintf (Reference: http://www.cplusplus.com/reference/cstdio/sprintf/ ) to make a string to hold your value. Take a look on costume atcommand, it uses a safe version of sprintf. Something like: (untested) // Where your str will be stored char buffer [50]; // writes into buffer a string in the format %d/200, where %d is the value of "resultado" sprintf (buffer, "%d/200", resultado); // sends string to client clif->message(fd, buffer); ------- If you fix the pc_setregistry you'll be able to use your TRAINING_POINT in scripts like: prontera,150,150,4 script TestGet 1_M_01,{ mes "Hi"; mes "> " + TRAINING_POINT; close; } prontera,150,152,4 script TestSet 1_M_01,{ mes "Hi"; TRAINING_POINT++; close; }
  2. Então o problema não está no seu version, o hercules não verificava esse version antigamente. Aparece algum erro em qualquer um dos servidores quando você tenta logar? Edit: Qual a data do seu cliente e do seu emulador?
  3. Se você trocar o check_client_version para false, você consegue se conectar normalmente? - Se sim, você colocou o mesmo valor no seu <version> do clientinfo.xml E no client_version_to_connect ? Eles devem ser iguais. - Se não, o maps-server acusa algum erro/warning quando você tenta conectar?
  4. Não sei se ainda está com problema, olhando os arquivos acho que encontrei o que pode ser: conf/login/login-server.conf: // Check The clientversion set in the clientinfo ? check_client_version: false // What version we would allow to connect? (if check_client_version is enabled) client_version_to_connect: 20 Se por acaso check_client_version estiver true, acredito que você possa escolher a versão no client_version_to_connect e colocar o mesmo que está no seu clientinfo. Nunca usei esta funcionalidade então não tenho certeza.
  5. se você está se referindo ao campo "<version>" do clientinfo.xml, até onde sei o Hercules não usa esse valor, imagino que não tenha uma configuração para isso
  6. Looks like a packet problem, open an issue on herc github explaining it @4144
  7. Looks like a client issue (packets maybe). Can you try a newer client (2015 if possible)? if it works in a newer client, open an Issue on github
  8. Looks like you're using an old hercules, this is an old issue and is fixed already : https://github.com/HerculesWS/Hercules/pull/1992/files Try updating to a newer version
  9. I think it depends on the theme. Was the theme developed by you? If yes, it'll probably be easier as you know where everything is coded. The general layout in flux is set pretty much in 2 or 3 files, so it's not that hard to make the overall layout. Details (e.g. buttons) might be a trickier.
  10. I don't think there's a tutorial for that. You "can", but you'll have to manually convert it. Responsiveness of a website is basically using html/css to style a page in a way it fits correctly in different devices. So you can create a new flux theme and manually port your layout to flux. I don't recall any tutorials on creating themes for flux, but a start point would be to duplicate flux's default theme (iirc, flux-folder/themes/default) into a new theme and start changing its layout from there. Sorry for the vague answer, I hope it can give you some directions
  11. KirieZ

    [AJUDA]FluxCP

    Ficaria: $gender = 'M'; $params->get('xxx') é uma função que diz "retorne o valor do parametro chamado 'xxx' que veio do formulário". nesse caso você não quer que essa informação venha do formulário
  12. KirieZ

    [AJUDA]FluxCP

    Essas partes mesmo, você pode tirar a parte do theme (apagar mesmo) e no module vc troca $params->get('gender') para 'M', assim ele não vai tentar recuperar essa informação do form.
  13. KirieZ

    [AJUDA]FluxCP

    Acredito que não tenha uma opção pronta para isso, você precisa alterar o module/theme para definir o gênero sozinho (pode ser M para todos, pois não irá importar para os clientes novos) e não pedir para o usuário. Se me lembro bem os arquivos são: module/account/create themes/<seu tema>/account/create
  14. Version 1.1.0

    109 downloads

    Hello everybody, I was trying some plugins a couple days ago and was bored of creating VS Projects by hand for each plugin, so I made this simple tool. You just have to set where's your Hercules is, the VS version you want to create projects for and where it should create on. The list of files in your src/plugins folder will be shown so you can choose which plugins you want to create VS Projects for. Also, it saves your settings so you don't have to fill these inputs everytime. It requires .NET Framework 2.0 or newer and probably will run only on Windows (I think there's no need for other OSes, right? xD) If you find any issues with it, let me know and I will try to fix it.
  15. FluxCP has a monster and item database by default. You can also make your own database using item_db.sql, mob_db.sql and mob_skill_db.sql files in sql-files folder (that is also used by fluxcp). For other kinds of databases you probably need to make it by yourself, maybe creating something to export db folder to sql or something like that.
  16. KirieZ

    getcharid ???

    Acredito que não tenha um comando para o nome de usuário da conta, mas você pode fazer com uma query sql a partir do ID da conta. Algo como (não testei): query_sql("SELECT userid FROM login WHERE account_id = " + getcharid(CHAR_ID_ACCOUNT) + " LIMIT 0,1", .@logins$); .@login$ = .@logins$[0]; mes "Seu usuário é: " + .@login$;
  17. What he meant is that you didn't show login server messages output run 3 servers = run login-server ,char-server and map-server, each server in a different window
  18. KirieZ

    fake npc

    are you using latest hercules? I remember seeing a pull request that fixed this issue a month ago or so
  19. It's weird that your characters start in a smaller ID, but if you doesn't have Rodex button in your client, you can disable what's causing this error by commenting this line on pc.c intif->rodex_checkhasnew(sd);
  20. Sim, em todos os close, porque todos eles encerram a execução do script, como o @Kurare explicou.
  21. Não consegui ler muito o script porque estou no celular, mas você deve colocar ou antes do close ou entre close2 e end. Sobre o specialeffect2, veja se este post ajuda: espero ter ajudado
  22. Se me lembro bem o Hercules não deixa ser executado em um usuário com privilégio root, por não ser necessário. Você precisa criar um novo usuário, tente seguir os passos desse tutorial, na parte "create a new linux user": https://habilisbest.com/rathena-setting-up-ragnarok-online-private-server .
  23. Should be fixed with last commit (a couple hours ago) Edit: At least part of it, I didn't notice other problems
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.