Luciar

Support Leaders
  • Content Count

    18
  • Joined

  • Last visited

  • Days Won

    1

Luciar last won the day on May 24

Luciar had the most liked content!

2 Followers

About Luciar

  • Rank
    Member
  • Birthday September 28

Contact Methods

  • Discord
    Luciar#0001

Profile Information

  • Gender
    Male
  • Interests
    Scripting, Emergency Medicine
  • Github
    Luciar
  • Emulator
    Hercules

Recent Profile Visitors

426 profile views
  1. 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.
  2. 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 ...
  3. 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.
  4. Resolved on Discord. Use changelook script command as demonstrated in the quest_shop NPC in npc/custom/quest_shop.txt
  5. Woot! Digests are back! Thanks for the update Ridley. Thanks to all the contributors as well!
  6. 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.
  7. 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.
  8. Glad to see some community news being posted and some new updates being brought to the Hercules forums! Dark theme ftw!
  9. 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.
  10. What "credit" are you trying to exchange?
  11. The script provided in Hercules looks fine. Did you reload scripts or restart your server after adjusting the .faileddestroy variable? Make sure you are running a recent version of Hercules. Although the script_command doc has not been updated to include failedremovecards's second argument being set to 3, it is defined in source as /// Removes all cards from the item found in the specified equipment slot of the invoking character. /// failedremovecards(<slot>, <type>); /// <type>=0 : will destroy both the item and the cards. /// <type>=1 : will keep the item, but destroy the cards. /// <type>=2 : will keep the cards, but destroy the item. /// <type>=3 : will just display the failure effect.
  12. Awesome, thank you for such a useful resource!