Page 1 of 1

Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 5:55 pm
by XGP0001
I have literally looked all through the forum, and the wiki has nothing I can see as far as adding stats to things. How does one add stats like STR or +Skill or Regain etc to a certain Item, like say for instance a Judges Cape? I have looked through everything and I cant even find the armors and if I can I see just numbers nothing like STR DEX etc.. Where do I need to look and how do I add stats? Please help

Re: Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 7:21 pm
by kjLotus
XGP0001 wrote:I have literally looked all through the forum, and the wiki has nothing I can see as far as adding stats to things. How does one add stats like STR or +Skill or Regain etc to a certain Item, like say for instance a Judges Cape? I have looked through everything and I cant even find the armors and if I can I see just numbers nothing like STR DEX etc.. Where do I need to look and how do I add stats? Please help
item_mods.sql

modifier.h

Re: Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 9:35 pm
by XGP0001
kjLotus wrote:
XGP0001 wrote:I have literally looked all through the forum, and the wiki has nothing I can see as far as adding stats to things. How does one add stats like STR or +Skill or Regain etc to a certain Item, like say for instance a Judges Cape? I have looked through everything and I cant even find the armors and if I can I see just numbers nothing like STR DEX etc.. Where do I need to look and how do I add stats? Please help
item_mods.sql

modifier.h
Whats modifier.h? I found the file but how do I add stats to this, its only a few numbers? lol I literally am 100% new to this.

Re: Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 11:11 pm
by kjLotus
XGP0001 wrote:
kjLotus wrote:
XGP0001 wrote:I have literally looked all through the forum, and the wiki has nothing I can see as far as adding stats to things. How does one add stats like STR or +Skill or Regain etc to a certain Item, like say for instance a Judges Cape? I have looked through everything and I cant even find the armors and if I can I see just numbers nothing like STR DEX etc.. Where do I need to look and how do I add stats? Please help
item_mods.sql

modifier.h
Whats modifier.h? I found the file but how do I add stats to this, its only a few numbers? lol I literally am 100% new to this.
item_mods is what stores what items give what stats (modifiers). if you wanted to add a new stat to an item, you'd add a new row to that with itemid (check ffxiah for that - it's the number in the address bar), the modid (all those numbers at the top of modifier.h - they're in hex, so you'll have to convert them to decimal... easy with windows calculator), and the value (how much stats). the stats won't show up on the item in game, but if you put 100 of modid 8 (strength) on an item and equipped it, you'd still see the +100 in the character sheet

just make sure if you edit the .sql file you rerun the batch file in navicat

Re: Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 11:47 pm
by XGP0001
Ok thank you sir will try this right now.

Re: Item Mods, +Stats etc?!

Posted: Mon May 13, 2013 11:56 pm
by XGP0001
Well I tried this and it added 1000 DEF but nothing else. I added 1000 DEF instead of 30 to the cape. The second line I made myself to try and make +1000 STR if 8 means STR? This is how I took it, so what did I do wrong now lol?^^

INSERT INTO `item_mods` VALUES(13606, 1, 1000);
INSERT INTO `item_mods` VALUES(13606, 1000, 8);

Re: Item Mods, +Stats etc?!

Posted: Tue May 14, 2013 8:50 am
by Troak
You should probably notice that the position of where you are adding 1000 and 8 are flipped from where they are for defense. You are essentially trying to add mod 1000 (which doesn't exist) with a value of 8. Flip those values around: INSERT INTO `item_mods` VALUES(13606, 8, 1000);

Re: Item Mods, +Stats etc?!

Posted: Tue May 14, 2013 1:08 pm
by XGP0001
wow thank you! I think I got this now, just one last question. I take it 1=DEF, 8=STR is there a list anywhere for the numbers of all the stats like 1-?? =???

Re: Item Mods, +Stats etc?!

Posted: Tue May 14, 2013 1:21 pm
by kjLotus
XGP0001 wrote:wow thank you! I think I got this now, just one last question. I take it 1=DEF, 8=STR is there a list anywhere for the numbers of all the stats like 1-?? =???
kjLotus wrote:modifier.h

Re: Item Mods, +Stats etc?!

Posted: Tue May 14, 2013 3:13 pm
by XGP0001
ty I found it all :D

Everything was in status.lua

MOD_NONE = 0x00
MOD_DEF = 0x01
MOD_HP = 0x02
MOD_HPP = 0x03
MOD_CONVMPTOHP = 0x04
MOD_MP = 0x05
MOD_MPP = 0x06
MOD_CONVHPTOMP = 0x07
MOD_STR = 0x08
MOD_DEX = 0x09
MOD_VIT = 0x0A
MOD_AGI = 0x0B
MOD_INT = 0x0C
MOD_MND = 0x0D
MOD_CHR = 0x0E

etc etc and so on :D Just convert to Hex :D and it worked! TY all if I have any more issues I will ask, yall are awesome! Now I just need to fix my pol.exe crashing everytime a mob drops items lol.