Jump to content

Turn off, Global storage. In \scripts\server


cortek

Recommended Posts

I realy dont know how to start this.

 

From what I understand, what you are asking for, is a way to clear or disable the player chest for PvP, because you want to make sure that all players start "naked" and have nothing stashed away in their chests, is that right?

 

If that is so, then you could mod the file ...\scripts\shared\itemtype.txt

and more specificaly the sections:

 

 

this next section is the basic type of the player chest :

 

newItemType = {
-- standard info
renderfamily = "RENDERFAM_STATIC",
renderprio = 0,
family = "FAMILY_STATIC",
subfamily = "SUBFAM_STATIC_CHEST",
classification = "CLF_STATIC_CHEST",
flags = "FLAG_HASIDLEANIM + FLAG_NOGO + FLAG_HASPREVIEWIMAGE + FLAG_HAS_WORLDOBJECT_RS",
weargroup = "WEARGROUP_INVALID",
-- 3d model + animation info
editorGroup = "Worldobjects/Spielerkiste",
model0Data = {
name = "models/objects/storage/openable/t_playerchest_op.GR2",
user = "WEARGROUP_INVALID",
},
-- logic bounding box
logicBox = {
minx=-23.673, miny=-11.936, minz=-0.008,
maxx=23.677, maxy=11.081, maxz=32.477,
},
dangerclass = 1,
worldobjectstate = 49,
-- Anchorpoints
anchorPoints = {
anchor0 = {
offx = -0.003, offy = -19.133, offz = 0,
dirx = 0, diry = 1, dirz = 0.001,
},
},
}
mgr.typeCreate(8957, newItemType);

 

this next section is the basic type of the chest bearer (the deamon) :

 

newItemType = {
-- standard info
renderfamily = "RENDERFAM_CREATURE",
renderprio = 0,
family = "FAMILY_CREATURE",
subfamily = "SUBFAM_LIFE_MECHANICAL",
classification = "CLF_DEFAULT",
flags = "FLAG_HASPREVIEWIMAGE",
weargroup = "WEARGROUP_INVALID",
-- 3d model + animation info
model0Data = {
name = "models/npc/monsters/chestcreature/h_chestcreature.GR2",
user = "WEARGROUP_INVALID",
},
-- logic bounding box
logicBox = {
minx=-13.952, miny=-13.623, minz=0.017,
maxx=12.852, maxy=14.729, maxz=36.809,
},
dangerclass = 0,
}
mgr.typeCreate(10995, newItemType);

 

You could try changing some flags or maybe the actual model references, to make those 2 itemtypes unable to be interracted with

 

But, even if you make this work the way you want, one thing I'm not sure how you will do:

How can you make sure all the players have your final mini-mod installed?

 

I hope this makes at least a little sense to you, and helps a bit clear up the clouds. :sunshine:

Keep us updated on your progress

 

 

best regards and best of luck

 

 

Press any key to continue or other key to quit...

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