Jump to content

hemagx

Core Developers
  • Content Count

    248
  • Joined

  • Last visited

  • Days Won

    10

hemagx last won the day on September 4 2021

hemagx had the most liked content!

About hemagx

  • Rank
    Advanced Member

Contact Methods

  • IRC Nickname
    Ema

Profile Information

  • Gender
    Not Telling
  • Github
    hemagx
  • Emulator
    Hercules

Recent Profile Visitors

35930 profile views
  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. Sorry, this was dead a long time ago, the service topic for it was removed as well.
  3. Still alive bro? :)

  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..
×
×
  • Create New...

Important Information

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