Jump to content
  • 0
Litro

Charms [Item gift effect while in inventory]

Question

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

14 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

 

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 by Gerz

Share this post


Link to post
Share on other sites
  • 0

Look like this code based on still not merged pull request

Share this post


Link to post
Share on other sites
  • 0

Look like this code based on still not merged pull request

Hmm.. 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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

dastgir.thumb.PNG.2503368cfb64102b8328462c412ca726.PNG

Despite the warning, the effects seem to be fine and I am currently having no problems whatsoever.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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