OnUnequipScript problem

Razorblade

New member
Messages
11
Points
0
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!

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

Try search for charm plugin.

 
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?

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

then make.

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

 
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:

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

 
Last edited by a moderator:
try ask plugin author or search other charm plugin. I member here was more than one.

 
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?

 
Last edited by a moderator:
Need add your plugin into plugins.conf also

 
Dont need edit any .c files

 
Back
Top