Jump to content


Support Leaders
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Luciar

  1. If you are using rAthena you will likely have more success receiving help if you post on rAthena's support forum, not here.
  2. Moved to correct section of forum.
  3. 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.
  4. Luciar

    NPC Presença

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

    Torre Sem FIM

    Moved to international support forum. Posts outside of the international sections must be in English only
  6. Make use of the function getd https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L1414
  7. This is some absolutely amazing work! Very impressive!
  8. 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/
  9. View the syntax of consolemes() here: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L7868
  10. Debugmes has been deprecated. Use consolemes() instead.
  11. Please use the search function prior to posting new topics in the future.
  12. Ternary syntax is condition ? True value : false value [email protected] = (getequipid(3) == 13414 ? 1 : 0) + (getequipid(4) == 13414 ? 1 : 0);
  13. 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.
  14. ^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.
  15. 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.
  16. 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 ...
  17. 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 [email protected]$,select("- Entrar na sala VIP","- Administrar VIPs","","- Nada"); else set [email protected]$,select("- Entrar na sala VIP","","- Dias restantes de VIP","- Nada"); switch([email protected]$){ With This: if (getgmlevel() >= $minlvgm) [email protected] = select("- Entrar na sala VIP","- Administrar VIPs","","- Nada"); else [email protected] = select("- Entrar na sala VIP","","- Dias restantes de VIP","- Nada"); switch ([email protected]) { 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.
  18. Resolved on Discord. Use changelook script command as demonstrated in the quest_shop NPC in npc/custom/quest_shop.txt
  19. Woot! Digests are back! Thanks for the update Ridley. Thanks to all the contributors as well!
  20. Euphy’s Warper has pre-RE and RE settings and also supports last warp. It is located in Hercules: /npc/custom/warper.txt https://github.com/HerculesWS/Hercules/blob/master/npc/custom/warper.txt You can edit it to allow certain warps based on which episode you are currently based on.
  21. Thanks for trying to help the OP. However, this script isn’t written correctly. The OnInit label inherently does not have an attached RID, using detachrid() is pointless. You then use a for loop without any defined action: syntax for(index set; condition; increment) { action } Note that you are missing the action portion of the for loop. The OnPCLoginEvent label inherently DOES have an RID attached (namely, the player that just logged in). There is no need to use attachrid here. If you were to fix all of the issues I listed above, your script would distribute the items to all accounts as you have not implemented any check to ensure the account ID is within the specified range described by the OP.
  22. Glad to see some community news being posted and some new updates being brought to the Hercules forums! Dark theme ftw!
  23. Luciar

    Function Survival

    None of this script makes any sense. As you were told by me and many other people on the Hercules Discord, you need to learn the basics of NPC scripting.
  24. What "credit" are you trying to exchange?
  • Create New...

Important Information

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