Luciar

Support Leaders
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Luciar

  1. Make use of the function getd https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L1414
  2. I am sorry to hear that you two had a disagreement. Please refrain from flaming each other. Perhaps it is best if you both went your separate ways and left it at that.
  3. This is some absolutely amazing work! Very impressive!
  4. 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/
  5. View the syntax of consolemes() here: https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L7868
  6. Debugmes has been deprecated. Use consolemes() instead.
  7. Please use the search function prior to posting new topics in the future.
  8. Ternary syntax is condition ? True value : false value [email protected] = (getequipid(3) == 13414 ? 1 : 0) + (getequipid(4) == 13414 ? 1 : 0);
  9. 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.
  10. ^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.
  11. 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.
  12. 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 ...
  13. 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.
  14. Resolved on Discord. Use changelook script command as demonstrated in the quest_shop NPC in npc/custom/quest_shop.txt
  15. Woot! Digests are back! Thanks for the update Ridley. Thanks to all the contributors as well!
  16. 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.
  17. 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.
  18. Glad to see some community news being posted and some new updates being brought to the Hercules forums! Dark theme ftw!
  19. 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.
  20. What "credit" are you trying to exchange?