Page 1 of 1
What do the Min and Max settings for X and Y do for gumps in an itemdesc file?
Posted: Sat Feb 16, 2019 11:38 pm
by Yukiko
I want to get an item to drop within a specific boundary of a particular open container's gump. I thought this was accomplished by manipulating the MinX, MaxX, MinY, and MaxY settings for the container's gump entry in an itemdesc.cfg file.
For example:
I have adjusted these values and the items still drop in the same bounds as before I adjusted the values. Did I misunderstand the function of these settings? If so, is there a way to change the boundaries that items will appear when dropped in an open container's gump and what
is the purpose of these settings? If indeed these settings
are supposed to affect the boundaries where items will appear in the gump then there is something amiss because they don't.
Re: What do the Min and Max settings for X and Y do for gumps in an itemdesc file?
Posted: Mon Feb 18, 2019 4:53 pm
by Yukiko
Apparently, no one has any idea concerning MinX, MaxX etc.
Re: What do the Min and Max settings for X and Y do for gumps in an itemdesc file?
Posted: Tue Feb 19, 2019 3:10 am
by Skinny
https://github.com/polserver/polserver/ ... r.cpp#L717
Try to set MinX and MaxX same values, set MinY and MaxY same values. Check if changes.
Re: What do the Min and Max settings for X and Y do for gumps in an itemdesc file?
Posted: Tue Feb 19, 2019 12:24 pm
by Turley
These values have only a meaning if the core is responsible of finding a spot in a container. For example if you drop the item onto the container item.
The client itself has per gump min/max coords (cannot remember if it is in some file defined or hard coded) which are used when the client drops an item onto a gump. The core takes the coords as is and will not move the item afterwards.
So the idea behind these settings is to mimic the client behaviour and not to modify it.
Re: What do the Min and Max settings for X and Y do for gumps in an itemdesc file?
Posted: Wed Feb 20, 2019 10:37 am
by Yukiko
Ah. So they are analogous to defaults when dropped on a "closed" container. Too bad the client doesn't allow modifying the actual drop area for the gump.