Jump to content

KirieZ

Core Developers
  • Content Count

    209
  • Joined

  • Last visited

  • Days Won

    14

KirieZ last won the day on April 14

KirieZ had the most liked content!

3 Followers

About KirieZ

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location:
    Brazil
  • Github
    guilherme-gm
  • Emulator
    Hercules

Recent Profile Visitors

5153 profile views
  1. by "hpm overload things" you mean hookPre/hookPost? As far as I remember, overloading, as in "I want to completely skip hercules original function" (maybe it should actually be called override?) were always made with a direct assignment to the interface (like in the original post here), while hookPre/hookPost would be used if you want to keep the original code running, but wants to do something else before/after it. Example: https://github.com/HerculesWS/Hercules/blob/stable/src/plugins/db2sql.c#L1180 I am not aware of another method for overloading/overriding. I do agree that you should only do it if you have a reason to, but is there a better way to overload/override than a direct assignment?
  2. Yes, you can look into inventory expansion ( npc/others/inventory_expansion.txt ) for details on how to do it via script. You probably can also do it via source, but it would need a bit more of digging through code.
  3. You are right, looks like "server_ready" is not part of the HPM events, so it is never called. I think the docs actually meant "server_online" (which means the server is ready / online). I generally prefer using plugin_init, as you said, since server_online runs after several processing already happened (e.g. config loading). So the tutorial should probably use "plugin_init" instead. Nice finding! Do you want to PR a fix to the docs? If not, I can edit it later
  4. Your script is most likely creating a new item (delitem + getitem) instead of identifying it, and it is likely doing a basic item ignoring all of its enchants. Thus, it is a complete new item and loses everything. To properly identify items via script you should use one of these commands: - identify -- https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L3656 - identifyidx -- https://github.com/HerculesWS/Hercules/blob/stable/doc/script_commands.txt#L3665
  5. Hello everyone, As you may already have seen from the 2024.03 release notes in GitHub ( https://github.com/HerculesWS/Hercules/releases/tag/v2024.03 ), Hercules' GitHub wiki has been moved to a new platform, powered by mkdocs and available at: https://docs.herc.ws/ This change aims to make the Hercules documentation generally better since the mkdocs-powered documentation does bring a better navigation, search capabilities and editing options. With that we can, hopefully, cover the gap that many have felt after we switched from MediaWiki to GitHub Wiki, while also providing some extras (like the ability to easily have a local copy). With the new mkdocs-powered document, we have: (compared to GH Wiki) - A bit more control over the sections, no longer a single side bar with everything - Extended markdown syntax for editing docs content - Better searching, as results are shown as you type - It is now possible to properly include image in the docs, without workarounds Contributions are highly appreciated and should be made through Pull Requests to the new hercules-docs repository ( https://github.com/HerculesWS/hercules-docs ). You may find general guidance on how to run the docs locally and edit it in the Editing the Docs page ( https://docs.herc.ws/contributing/editing-the-docs/ ) The content of the new repository was copied from the GitHub wiki (which was originally the MediaWiki content and had several contributions over the years), and reorganized into a few sections. Additionally, everything was converted to Markdown, so we should generally get an ok experience. The conversion of MediaWiki pages to Markdown was made through an automated tool (pandoc) so we should still expect some things to not be perfectly right, a few noticeable cases are: - Linking between pages are likely to be broken - Some syntax highlighting may not be in the most presentable format - Several images are still missing Fixing those will require manual work to replicate the images, update links, etc. Why not return to MediaWiki? This question has shown up a few times in our Discord, and I think it is worth linking to the topic when the move happened back then: TLDR; Maintaining MediaWiki together with IPB (our forum software) is complicated. Huge thanks to Haru for making this idea come true! Please let us know if you have questions, comments or suggestions for the new docs.
  6. This is not Hercules, is it? "mob_db.yml" is not part of Hercules... I am not sure if I can really help, but you are trying to reduce the players Max Level? I don't think you need to change MAX_LEVEL constant in source for that. You only need to change it to go higher. To cap to lower levels, you can just change exp_group_db.conf. It will use a bit more memory than it really needed, but will be much easier, and you won't have issues like in your print, where the server MAX_LEVEL is lower than the monsters you are trying to load. See https://docs.herc.ws/customization/edit-max-level/#configuration-files for more info (I think this is still up to date) Although I don't think this is the cause for you to get inf% exp... unless you changed some source code that broke that.
  7. It is in data/luafiles514/lua files/service_korea (_korea may be something else depending on how your client is patched and how your clientinfo looks like, but usually it is a country name)
  8. You are not supposed to keep the server online with generate-translations plugin. This plugin is only meant for you to use when generating the PO files. e.g.: ./map-server --load-plugin generate-translations --generate-translations After you run it, it will generate the translation files and shut down. After that you don't need the plugin anymore, unless you have new NPCs that you want to generate new translation files.
  9. KirieZ

    Inserting sql

    I think you are missing a ; at the end of the alter table statement. not sure if this solves everything, but looking into a bit of SQL syntax should help understanding the other errors.
  10. KirieZ

    Fake Players

    Yes, SpriteId is the sprite you are copying from. SpriteName is the sprite/unique name for this monster you are creating now. ViewData / SpriteId is the sprite you are copying the image from. So if you want your mercenary to look like a Knight (Id = 7), SpriteId = 7 should work ( from https://github.com/HerculesWS/Hercules/blob/stable/db/constants.conf#L83 ) It has been ages since I last used that... but I don't think you need to touch client
  11. KirieZ

    Fake Players

    If you are looking to make monsters look like players, but still be a monster (like mob_avail used to do), use "ViewData" field in mob_db.conf. This field was created to replace mob_avail.txt and is equivalent to it, but better for reading/setting up
  12. Hello and welcome 1. I am not sure what you meant or what to answer... If you are asking whether there is an injector ready to use (I think 7 days to day uses BepInEx?) the answer is not really. You can use NEMO to inject windows DLLs, but this is just basic DLL injection. Anything you want to do you are on your own. Talking about RO this is very low level stuff that only a few people know and maybe it is not what you are looking for... 2. Most of this stuff is server sided (a.k.a. in Hercules folders). The GRF will only keep resource files and some lua files will batch some info like map path and descriptions. But exp tables and etc are server sided. For your plans, I think most of the things will be done in Hercules and client lua files, I am not a pro in custom skills though. 3. Player data is saved in you SQL database. Should be possible to play in LAN with some configuration in your clientinfo and hercules files (conf folder)
  13. this script seems fine. May you post your entire item db entry? And please, explain what "not working" means for you (e.g. no effect at all, effect not exactly as expected, etc)
  14. You didn't say what you are stuck at, so I will assume you are just new to hercules and don't know where to look for docs. For bonuses conceded by equipment, item bonus docs is the place to go. You can use general script commands, but for character bonuses, item bonus docs is where you will find the commands specific for items. You can check it here: https://github.com/HerculesWS/Hercules/blob/stable/doc/item_bonus.md (it is also in your hercules copy, at doc/item_bonus.md)
  15. This indeed looks like a mapcache issue. 'Map Cache' is what we call the copy of the maps that Hercules keeps on the server side. While the client has the gat/rsw/gnd files to define what the map looks like and how each cell behaves, the server also needs its own data, specially for the cell part, and this comes into the Map Cache file. The Map Cache files are meant for things like determining water in the map (for skills that needs that) and to tell which cells are walkable/not walkable/shootable/etc. Without it, a modded client could walk through walls and etc. When your client has map files that doesn't match the server ones, you get things like you see a path but clicking it doesn't let you walk through. Because the server sees the map as a completely different thing than what you are seeing in-game. From your description, this seems exactly the case. To fix that, you should regenerate the map cache file for this map using the map cache plugin. I think this guide may help you, it is in the repository docs folder: https://github.com/HerculesWS/Hercules/blob/stable/doc/map_cache.md you should pick the files from your GRF and follow the steps to recreate the map cache of the map you are having issues with. and yes, izlude and the academy map changed a few times along the years.
×
×
  • Create New...

Important Information

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