• Content count

  • Joined

  • Last visited

  • Days Won


KirieZ last won the day on January 6

KirieZ had the most liked content!

1 Follower

About KirieZ

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Location:
  • Emulator:
  • Github

Recent Profile Visitors

2703 profile views
  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: ) 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: ) 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. Que erro você está tendo?
  5. 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.
  6. 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
  7. Looks like a packet problem, open an issue on herc github explaining it @4144
  8. 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
  9. Looks like you're using an old hercules, this is an old issue and is fixed already : Try updating to a newer version
  10. 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.
  11. 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
  12. 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
  13. 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.
  14. 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
  15. Version 1.1.0


    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.