Jump to content

Is it possible to remove class restriction on items:)


Recommended Posts

:1940127437_2haxe12stormrider.thumb.jpg.a4419efd33b026aed9d8b182e1c10090.jpg

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

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

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 by staticX
Link to comment

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
Please Sign In or Sign Up