staticX 3 Posted March 20, 2020 Share Posted March 20, 2020 : For example I would like to make this 2H axe available for all characters.(This item comes from the excellent Diablo Fallen mod).I ' ve tried making some changes on the itemtype.txt and blueprint.txt but no luck so far. Things I 've already tried: I correctly identified the ID of this specific item and made the following changes on the files mentioned above: itemtype.txt newItemType = { -- standard info renderfamily = "RENDERFAM_WEAPON", family = "FAMILY_WEAPON", subfamily = "SUBFAM_PRI_2H_AXE", classification = "CLF_2H_AXE", flags = "FLAG_HASPREVIEWIMAGE", weargroup = "WEARGROUP_INVALID", -- 3d model + animation info model0Data = { name = "models/weapons/2h/BlackLegionAxe.GR2", user = "WEARGROUP_CENTURIO", ----------------------------->changed this to "WEARGROUP_DEFAULT" }, -- logic bounding box logicBox = { minx=-7.129, miny=-23.72, minz=-1.273, maxx=7.129, maxy=23.72, maxz=1.273, }, dangerclass = 0, } mgr.typeCreate(13693, newItemType); blueprint.txt newBlueprint = { id = 609, name = "axe_2h_rare", palettebits = "1111111111111111", dmgvariation = 170, minconstraints = {1,9,0}, lvljump = 1, usability = 0, allotment_pmfpi = {1000,0,0,0,0}, uniquename = "", specialuseonly = 0, bonusgroup0 = {283,1650,1,9,0}, bonusgroup1 = {282,1650,1,5,0}, bonusgroup2 = {281,1650,1,2,0}, bonusgroup3 = {280,1650,1,9,0}, itemtypes = {7431,11615,11850,13002,13729,13693,}, wearergroups = {'WEARGROUP_CENTURIO',}, ----------------------------->changed this to "WEARGROUP_DEFAULT" } mgr.createBlueprint(609, newBlueprint); As I mentioned,no luck so far,the item still remains restricted to the barbarian class...Any help would be greatly appreciated Link to comment
Flix 5,116 Posted March 20, 2020 Share Posted March 20, 2020 You'll have to change the family and subfamily classifications in the itemtype entry, to turn it into a 1h axe or 2h sword. Other characters cannot use 2h axes. These kind of weapon restrictions are hard-coded, this is why even changing the weargroup to DEFAULT doesn't work - the default is set to exclude 2h hafted weapons from all playable characters except the Barbarian. Link to comment
staticX 3 Posted March 20, 2020 Author Share Posted March 20, 2020 (edited) Oh god I missed that detail!!thnx for replying so fast!! EDIT:still no luck after making the changes you suggested... subfamily = "SUBFAM_PRI_AXE", classification = "CLF_AXE", I even tried changing the weargroup to seraphim to no avail Edited March 20, 2020 by staticX Link to comment
staticX 3 Posted March 20, 2020 Author Share Posted March 20, 2020 changing it to a 2h sword didn't work either Link to comment
Flix 5,116 Posted March 20, 2020 Share Posted March 20, 2020 And you still have the user and weargroups changed to DEFAULT? Some changes to blueprints only take effect after the next time it drops. Link to comment
staticX 3 Posted March 20, 2020 Author Share Posted March 20, 2020 Yeah....that makes sense...I am gonna test it tomorrow and see how it goes...maybe force it to drop via a quest,Thnx a lot for helping me out Link to comment
staticX 3 Posted March 21, 2020 Author Share Posted March 21, 2020 (edited) it works...no fresh drop needed...I just messed up something so simple it bothers me to even mention it:P:Pthnx for your help Edited March 28, 2020 by staticX Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now