Item Mods, +Stats etc?!

Post Reply
XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Item Mods, +Stats etc?!

Post by XGP0001 » Mon May 13, 2013 5:55 pm

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

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Item Mods, +Stats etc?!

Post by kjLotus » Mon May 13, 2013 7:21 pm

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

XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Re: Item Mods, +Stats etc?!

Post by XGP0001 » Mon May 13, 2013 9:35 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Item Mods, +Stats etc?!

Post by kjLotus » Mon May 13, 2013 11:11 pm

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

XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Re: Item Mods, +Stats etc?!

Post by XGP0001 » Mon May 13, 2013 11:47 pm

Ok thank you sir will try this right now.

XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Re: Item Mods, +Stats etc?!

Post by XGP0001 » Mon May 13, 2013 11:56 pm

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);

Troak
Posts: 27
Joined: Thu Jan 31, 2013 12:57 am

Re: Item Mods, +Stats etc?!

Post by Troak » Tue May 14, 2013 8:50 am

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);

XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Re: Item Mods, +Stats etc?!

Post by XGP0001 » Tue May 14, 2013 1:08 pm

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-?? =???

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Item Mods, +Stats etc?!

Post by kjLotus » Tue May 14, 2013 1:21 pm

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

XGP0001
Posts: 16
Joined: Sat Apr 13, 2013 11:00 am

Re: Item Mods, +Stats etc?!

Post by XGP0001 » Tue May 14, 2013 3:13 pm

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.

Post Reply