Litro 45 Posted July 26, 2015 I got this patch from rathena (attached below), i have patched it in my server (using herc emulator), can some one help me to make it like just one item will be in effect if there is more than one in inventory ? Charms.txt eA_Charms.txt Quote Share this post Link to post Share on other sites
0 karazu 33 Posted July 26, 2015 Dastgir gave me a Plugin for this one. U can ask him about it though Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 26, 2015 http://upaste.me/f8b42118100b0bab2^ This is as it is version, made months ago, there's no compile warnings/errors, but dont' know if it works or not with new rev, How it works? Add Following to item: Charm: true in item_db.conf in whichever item you want. 5 AnnieRuru, evilpuncker, Angelmelody and 2 others reacted to this Quote Share this post Link to post Share on other sites
0 Litro 45 Posted July 26, 2015 hi sir, how about the main question if there is item marked charm in inventory and later on he got one again other item with different id (so there is 2 charm marked item) is will just one that will giving effect either the first one or the latter? http://upaste.me/f8b42118100b0bab2^ This is as it is version, made months ago, there's no compile warnings/errors, but dont' know if it works or not with new rev, How it works? Add Following to item: Charm: true in item_db.conf in whichever item you want. and Thanks for this, the patch used by me giving memory dump when im closing or restarting the map server, i will try this one after removing my patch Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted July 26, 2015 (edited) 1>c:usersbanhb_000desktopnewherculespluginscharm_system.c(13): fatal error C1083: Cannot open include file: 'common/HPMi.h': No such file or directory Help, complie with vc 2010 Fixed! Another error: HPM:Addhook: unkown Hooking point 'status->calc_pc_additional'! @@Dastgir help! Edited July 26, 2015 by Gerz Quote Share this post Link to post Share on other sites
0 4144 364 Posted July 26, 2015 Look like this code based on still not merged pull request Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted July 26, 2015 (edited) yes, read it few minutes ago, just may crash or something @@Dastgir, what can i do now? Edited July 26, 2015 by Gerz Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 27, 2015 Look like this code based on still not merged pull requestHmm.. Yup, I think that's why I didn't released it.. And i forgot.I think I manually merged that PR in @@karazu server and then given this plugin. Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted July 27, 2015 (edited) @@Dastgir, so how about your pull request, did you test it? is it ok? if yes i will merge manually :3 Thank you! Edited July 27, 2015 by Gerz Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted July 27, 2015 https://github.com/dastgir/Hercules/commit/a6ceeb41d3daf30b1ce8f9c5e5b629977ca80964 and you have to generate HPM Hook manually Quote Share this post Link to post Share on other sites
0 Litro 45 Posted July 27, 2015 @@Angelmelody how about centos ? how to generate it ? Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted July 27, 2015 Tested! It work but bonus appear only when character log out and log in, change map drop item from inventory effect do not disappear, @@Dastgir Quote Share this post Link to post Share on other sites
0 Litro 45 Posted July 27, 2015 Tested! It work but bonus appear only when character log out and log in, change map drop item from inventory effect do not disappear, @@Dastgir tested to, get the same result Quote Share this post Link to post Share on other sites
0 Gerz 7 Posted July 29, 2015 (edited) @@Dastgir help please! Edited July 29, 2015 by Gerz Quote Share this post Link to post Share on other sites
0 fourxhackd 9 Posted December 17, 2018 Using @Dastgir's updated charms.c plugin found in his Github (Apr 29 2017), I was able to test it and it seems to be working fine on my build. Dropping the item from my inventory results to the effects (+1 STR in my case) to disappear. Picking the item up returns the effect. The command @itemreset removes the effect as well. I do however, experience a warning when I build on a unix-based (Ubuntu) system. The warnings showed up when I executed the command: make clean && make all Warnings Despite the warning, the effects seem to be fine and I am currently having no problems whatsoever. 1 Dastgir reacted to this Quote Share this post Link to post Share on other sites
I got this patch from rathena (attached below), i have patched it in my server (using herc emulator), can some one help me to make it like just one item will be in effect if there is more than one in inventory ?
Charms.txt
eA_Charms.txt
Share this post
Link to post
Share on other sites