Jump to content
  • 0
Razorblade

OnUnequipScript problem

Question

Hey guys, i'm trying to create some misc items that add stats bonus to the character with the OnUnequipScript on itemdb, but it isn't working. Other commands like change base are working fine. How can i make a misc item add +3 on luk just for being on inventory, for instance?

Thanks!

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

It's named charm items. If you have it in inventory, it add some stats.

Try search for charm plugin.

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, 4144 said:

It's named charm items. If you have it in inventory, it add some stats.

Try search for charm plugin.

Thanks, mate! It was exactly what i was looking for, but still need some help. I've found some guides, like this. Followed this instructions into mmo.h file and itemdb.c. But then, i've got this file here and i don't know what i have to do with it. Just save it as "item_charms.c" on src/plugins folder?

Share this post


Link to post
Share on other sites
  • 0

yes save plugin file what you found into src/plugins.

then make.

also you can build plugin separaly by command: make plugin.item_charms

 

Share this post


Link to post
Share on other sites
  • 0
18 minutes ago, 4144 said:

yes save plugin file what you found into src/plugins.

then make.

also you can build plugin separaly by command: make plugin.item_charms

 

Saved the file as i told you, edited the item like this:

Quote

The modification works through the item's bonus script in your item_db/db2. Charm's effect don't work if you do not add type (12/etc.), job, upper, andgender in itemdb/db2. Charms will only work with items having type = 12/? on item_db/db2, so your other items won't be affected by this, just the ones you choose.

 

and not working in game :(

 

EDIT: 

found this:

K5HUqAn.png

i guess the script isn't running

Edited by Razorblade

Share this post


Link to post
Share on other sites
  • 0

try ask plugin author or search other charm plugin. I member here was more than one.

Share this post


Link to post
Share on other sites
  • 0
8 minutes ago, 4144 said:

try ask plugin author or search other charm plugin. I member here was more than one.

i'm thinking i have to do more things than just paste the .c file into src/plugins folder and run the emulator... isn't necessary to put the path to item_charms.c into another code? or use #include item_charms? i don't know :(

Oh, i'm looking into files on plugin paste and i ignored your "then make" instruction. Sorry, i'm newbie and need more explanation to "make" D:

is it just add item_charms after "myplugins = " on makefile.in, then save?

Edited by Razorblade

Share this post


Link to post
Share on other sites
  • 0
35 minutes ago, 4144 said:

Dont need edit any .c files

the plugin is installed, but not working as it should... i think i have to edit some .c files to make the item give status bonus, no?

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.