Jump to content

Luciar

Support Leaders
  • Content Count

    45
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Luciar

  1. Hercules does not use an instance database like rAthena does. This should fix your issue: Find this line: if( PV_INSTANCE_ID <= 0 ){ Change to: if( PV_INSTANCE_ID < 0 ){
  2. This script has nothing to do with job changing?
  3. Moving to the correct section of the forums. Please take the time to find the correct section when posting.
  4. This is not an issue with the NPC, but instead with your client files. Moving to the correct section.
  5. Moving to correct area... This is a script release area - please post in the correct section.
  6. If you are using rAthena you will likely have more success receiving help if you post on rAthena's support forum, not here.
  7. Moved to correct section of forum.
  8. Set a variable that is increased every time someone purchases a heal. Display the variable. Please see the script command documentation and sample scripts located at /doc/script_commands.txt and /doc/sample/ Be cognizant that you will need to handle the number prior to it exceeding the maximum integer value of 2^31 to avoid any issues.
  9. Luciar

    NPC Presença

    Moved to international support section. Posts outside of the international area must be in English only.
  10. Luciar

    Torre Sem FIM

    Moved to international support forum. Posts outside of the international sections must be in English only
  11. Make use of the function getd https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L1414
  12. Approved, good luck!
  13. This is some absolutely amazing work! Very impressive!
  14. Please refrain from posting in languages other than English outside of the International Communities section as per the forum guidelines. This forum is English only. The Portuguese section can be found here: https://herc.ws/board/forum/79-portuguese-community/
  15. View the syntax of consolemes() here: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L7868
  16. Debugmes has been deprecated. Use consolemes() instead.
  17. Please use the search function prior to posting new topics in the future.
  18. Ternary syntax is condition ? True value : false value .@count = (getequipid(3) == 13414 ? 1 : 0) + (getequipid(4) == 13414 ? 1 : 0);
  19. I would potentially be willing to help you, but this request remains unclear and lacking in detail. The poor translation coupled with limited information makes it impossible to assist you. Please try to provide clear details of what exactly you want. If you are unable to do so in English, consider using one of our international forums found here.
  20. ^This. Also, you have made several requests on the forums recently. It would be nice to see you attempt to start learning how to do these things for yourself. The purpose of this forum is not to do everything for you. The additions you requested are quite simple, and there are examples of how to do exactly what you have requested throughout the Hercules repository and forums. Use these resources to get started: doc/script_commands.txt https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L1005 https://github.com/HerculesWS/Hercules/wiki/Timers-(Scripting) Look through scripts several scripts found in the repository or custom scripts you have collected. Read them line by line. If you don’t know what a specific line does, look up its functionality in doc/script_commands.txt. Once you have begun to make your own attempt, if you need assistance, I will be happy to help you.
  21. Check this setting option in conf/map/battle/items.conf https://github.com/HerculesWS/Hercules/blob/master/conf/map/battle/items.conf#L108 Option 3 will unequip disabled items/cards on joining the map with the mapflag. This will change the behavior for any time a player enters any map with disabled items server wide.
  22. I was just coming back to edit my post with regard to this! @Miud00 note that getgmlevel() returns the Level of the group to which the player is assigned. (See level below) getgroupid() returns the group ID of the group to which the player is assigned. (See id below) As defined in conf/groups.conf { id: 1 name: "Group" inherit: ( "" ) level: 0 ...
  23. This script could use a few updates on syntax and modern scripting conventions. As always try referring to the /doc/ and doc/sample directories in Hercules for best practices, examples, and script command documentation. Try Replacing this: if (getgmlevel() >= $minlvgm) set .@menu$,select("- Entrar na sala VIP","- Administrar VIPs","","- Nada"); else set .@menu$,select("- Entrar na sala VIP","","- Dias restantes de VIP","- Nada"); switch(.@menu$){ With This: if (getgmlevel() >= $minlvgm) .@menu = select("- Entrar na sala VIP","- Administrar VIPs","","- Nada"); else .@menu = select("- Entrar na sala VIP","","- Dias restantes de VIP","- Nada"); switch (.@menu) { Note that the select() script command will return an INTEGER value corresponding to the menu option selected, not a string. Furthermore, switch() will not accept a string as an argument. Let me know if that fixes your problem. I have not reviewed the entire script.
×
×
  • Create New...

Important Information

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