Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/27/22 in Posts

  1. Several such releases exist on the forum but all of them are old and don't work anymore. I updated one of them, this now works on the latest Rathena, apply both in this order : https://github.com/SeravySensei/rathena/commit/e02ba8bd88c626baca4619bbb2dbaecd30c93f9b https://github.com/SeravySensei/rathena/commit/b928ee02b19ef18460a82a37c170473877bf11f1 (add .diff or .patch to the url to get those)
    1 point
  2. Hi all, I put together a command-line tool to help save time when porting lots of existing items to an rAthena server: https://github.com/Latiosu/dp2rathena I noticed that the rAthena community often refers to divine-pride.net (DP) as a source of truth, so I figured it would be useful to connect with their API. Summary The tool uses data from divine-pride.net and attempts to map the API response to a desired rAthena database format. Installation Requires Python 3.6+ and pip installed: pip install dp2rathena Usage Generate a divine-pride.net API key if you don't have one yet (registration required), then you can start converting data: Example 1: Store API key and convert items with id 501 and 1101 dp2rathena config dp2rathena item 501 1101 Produces this output: Example 2: Convert mobskills for mobs with id 1002, 1049 and 1299 and save to a file called "attacks.txt" (re-uses stored API key if present) dp2rathena mobskill 1002 1049 1299 > C:\Users\Latios\Desktop\attacks.txt Produces a file in the Desktop folder called "attacks.txt": Example 3: Convert mob with id 20357 to mob_db.yml format dp2rathena mob 20357 Produces following command-line output: Further instructions can be found at the repository: https://github.com/Latiosu/dp2rathena Limitations I've moved this section to the GitHub repository above to keep it up-to-date. --- Let me know if you'd like to be able to convert other data from DP, some other suggestion or any questions. Edit: Add terminal animation for a visual explanation
    1 point
  3. || means OR which is IF 1 requirement are fulfilled = accepted. && means AND So ALL requirements needed to be fulfilled.
    1 point
  4. Well, you're mixing up || and &&. You must have all items, so you need: if (countitem(7830) > 0 && countitem(7831) > 0 && countitem(6151) > 0 && countitem(969) > 999 && countitem(60003) > 199) { (Also the "next;" below that line shouldn't be there.)
    1 point
  5. Just a simple modification to enable/disable Discount or Overcharge on specified NPC Shop. Maybe the idea was brought from Shop System and my old commit about "disable" discount for point & item shop. It just simple touch, add optional flag at very last of NPC shop line. -%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}{,<flag>} <map name>,<x>,<y>,<facing>%TAB%shop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>{,<itemid>:<price>...}{,<flag>} <map name>,<x>,<y>,<facing>%TAB%marketshop%TAB%<NPC Name>%TAB%<sprite id>,<itemid>:<price>:<quantity>{,<itemid>:<price>:<quantity>...}{,<flag>} If the flag isn't set, it doesn't bother any default NPC. Flag 0x1 = Disable Discount 0x2 = Disable Overcharge If unset, Discount and Overcharge are enabled (if available) Examples Discount & Overcharge are disabled here prontera,147,167,6 shop Shop 1 872,2102:-1,2104:-1,501:-1,3 Overcharge is disabled prontera,147,164,6 shop Shop 2 872,2102:-1,2104:-1,501:-1,2 Discount is disabled prontera,147,161,6 shop Shop 3 872,2102:-1,2104:-1,501:-1,1 When file is loaded with that flag, you will get this Info Download discount_flag-rA-20180713-ec1d6d28.diff for rAthena Git Hash: ec1d6d28 (20180713)
    1 point
  6. Infromation How to use (example) ItemID,,,,,,,,,,,,,,,,,,,{ bonus bNoEleStone,1; },{ },{ } Download For 4e137d30 (2016-08-04): bNoEleStone-rA-4e137d30.diff [spoiler=the old things that I can't even remember that is this] Rev.2: bNoEleStone-rA-rev2.patch - Remake .patch file, old patch files were bad manual patch - Ready for svn17127 Rev.1: - Remove Ninja's Link (Soulinker Buff) to enable 'noEleStone' - Ready for svn17122 Initial release. **If you guys like this, rate this post and give me rep +1 haha**
    1 point
×
×
  • Create New...