Jump to content

hemagx

Core Developers
  • Content Count

    248
  • Joined

  • Days Won

    10

Everything posted by hemagx

  1. Well I've done few changes to this, I used same method as @AnnieRuru but as a plugin, first hercules provides us with the amazing status->pc_calc_additional which is meant for plugins, it's placed right after Equipment parse so it would not overwrite the value the plugin set, and then the plugin set the matk rate to 0, and tada! I've also changed map check to check the id of the map instead, this is simpler, faster and also allowed a run time check for if you accidentally put a wrong map name (check server_online function), and it's tested :3 works as charm! /** * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * * Copyright (C) 2013-2019 Hercules Dev Team * Copyright (C) Hemagx <[email protected]> * * Hercules is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /// Zero Matk Hercules Plugin #include "common/hercules.h" /* Should always be the first Hercules file included! (if you don't make it first, you won't be able to use interfaces) */ #include "common/core.h" #include "common/mapindex.h" #include "map/map.h" #include "map/pc.h" #include "map/status.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" /* should always be the last Hercules file included! (if you don't make it last, it'll intentionally break compile time) */ HPExport struct hplugin_info pinfo = { "Zero MATK", // Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "0.1", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated) }; const char *map_name = "prontera"; int16 map_id = -1; // init it with invalid value to make sure on failure it would always cause our check to fail. static void status_calc_pc_additional_post(struct map_session_data *sd, enum e_status_calc_opt opt) { if (sd == NULL) // I don'r prefer usage of nullpo in hooks, unless we're replacing a function multiaple nullpo reports can turn confusing. return; if (sd->bl.m != map_id) return; sd->matk_rate = 0; return; } /* run when server starts */ HPExport void plugin_init (void) { addHookPost(status, calc_pc_additional, status_calc_pc_additional_post); } HPExport void server_online (void) { unsigned short map_index; if ((map_index = mapindex->name2id(map_name)) == 0) { ShowError("%s:plugin_init: Failed to get map index for map %s the plugin would now fail to start\n", pinfo.name, map_name); core->runflag = CORE_ST_STOP; } if ((map_id = map->mapindex2mapid(map_index)) == -1) { ShowError("%s:plugin_init: Failed to get map id for map %s the plugin would now fail to start\n", pinfo.name, map_name); core->runflag = CORE_ST_STOP; } }
  2. Greetings, After a long break I'm returning back to the freelancing scene, I've been in the RO private servers scene since 2012, with over 9 years of programming experience and 6 years of software development choosing me will ensure you would be getting an excellent quality of code/changes. Status: Available What do i work on? Core Development (Source, C) Scripting and database editing Database Management System Administration (Linux only) I can also work on applications written in PHP, Node.js, Python, C++. Pricing Hercules source editing starting from 10$ per request. Hercules scripting starting from 10$ per request. Hercules database editing from 5$ per request. Any other requests pricing would be calculated with 8$ per hour of work. For rush requests you will be charged a flat fee of 8USD per hour of work, a detailed bill of how many hours will be spent, the final sum and expected delivery date will be given before payment for any rush requests, and all rush requests are prepaid and can never be post paid. Contact methods Discord: Ema#8360 Payment methods Paypal Crypto (BTC/Ether only) Western Union/Money Gram Bank Wire Terms of Service With every requests you get a guaranteed Hercules compatibility for 1 year, In-case any of Hercules update during this period breaks my code you will be given an update upon request free of charge. After first year of the guaranteed compatibility period you will be charged a small fee for any updates, very simple updated may be still done for free and it's up to my judgement. In-case of paying with any other services than Crypto currency you're sole responsible of any fees the used service asks for, and that the net amount is at least equivalent to what i asked for. For medium/large projects a 50% deposit shall be paid, and it's nonrefundable as soon as i start working on it, rest being paid after project is done and delivered. Pre-made (Coming soon) Client web settings saving/emblem/adventurer agency support (Soon)
  3. Sorry, this was dead a long time ago, the service topic for it was removed as well.
  4. There's no point at all of doing that, it was designed this way to save memory that would happen due to any waste in IDs (which is an usual act from Gravity), not only it saves memory it also reduce the time spent in looping the status changes.
  5. It has been released already in services sections :3 * Feel free to close this topic
  6. Keep watching the topic to know when It's available. I was kinda busy, but I kinda "made my own" messy version of this command. will update the topic after i finish re-write the whole thing.
  7. Aura is pretty much possible, however gray maps, I guess we can do it, could you please upload a set example of those maps and send it to me?
  8. Reduce your waiting time by suggesting new features the modification will be released as whole and one paid pack, so we need more things to put it inside! * NEW UPDATE * I'm little bit slow in adding new features because I'm re-writing the core of my system, however we have two new things. Item Name Coloring Messages Timestamp "inspired by Project Chaos RO (nachtwolke.ai4rei.com)"
  9. Hello! ~ * Introduction RO Hooks is a paid project, which will allow a set of custom abilities to your client, such as player name coloring, server side GM sprite and such; It is is meant to be a way to edit this old dead game client to add things either improving player's experience or giving the ability to have new of content or to give your players something special. * What do we have currently GM Clothes and Robot Clothes controller server side (Robot Clothes is a Special Event Sprite) Player Name coloring (Server-side) Item Name Coloring (Client-Side) Messages Timestamp "inspired by Project Chaos RO (nachtwolke.ai4rei.com)" More to come * Pictures - GM and Robot Clothes - Name Coloring - Colorizing Item Names (Configure client side, could be applied to any kind of items) - Messages Timestamp * Which Clients are supported? Pretty much anything 2012-04 and onward, older clients are also supported upon request. * Is there anything more? when is this supposed to be release? And can we suggest something? There's still other futures which will be announced soon, I'm pretty much working everyday to find something newer. It will be released as soon as we have enough set of custom futures, also any suggestions for features is more than welcome, as soon as anything new finished i will announce it here. Also as soon as it's ready for sell I will get a Paid Service topic.
  10. Pst this may help too: http://web.archive.org/web/20080827220329/http://ro.doddlercon.com/wiki/
  11. This errors occurs only when servers ain't in sync, please make sure you recompiled all three servers.
  12. This issue happens when trying to access a memory already freed. however at this line i can't find any memory calls in clean hercules on this line so you probably have customized thing. and finally, we need the script or someway to reproduce this issue..
  13. This is not a packet obfuscation issue, you will see a packet error if it was. probably some bad network configure.
  14. Configure your server with epoll enbabled ./configure --enable_epoll That should do the trick, make sure to rebuild the server.
  15. hemagx

    Clan System

    Duh, s'bout time! I asked you 3 weeks ago for it and you said you'd "work on it" :/ +1 I'm looking forward for this Yea so ? uhm
  16. hemagx

    Clan System

    Small update, i actually delayed it and not fully dropped i should be working on it again as soon as my next PR is ready (in 2 ~ 3 day)
  17. that most perfect animation (and maybe even sprites) i've ever seen for RO
  18. I did not bother read iRO Wiki it's full of bullshit usually. and as explained above it's Aegis vs Hercules.
  19. Comparing Hercules Formula against Aegis they both gives same results
  20. I would suggest to make MariaDB as the database softwear here instead of regular mysql, it proved to have greater performance.
  21. You're lucky that i'm facing serious issue right now and i can't continue what i'm working on. Gonna work on this plugin now glad to hear that <3 got few issue, gonna delay it...(hears someone crying in the corner)..
×
×
  • Create New...

Important Information

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