Loot chest, mid air
Moderator: Team Members
Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Loot chest, mid air
The chest appears at the exact x,y,z the mob dies at and even if the y (vertical) is off the client should drag it to the ground on its own, if it floats it seems like it would most likely be a bad grid so I would do /spawn details and /grid and compare the 2, if the grid is wrong then the grid on the dead npc will probably also be wrong. If it is not a grid issue then I have no clue, as I said the client usually drags objects to the ground unless they have an offset.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
Verified the chest, body and my character are all in the same grid. I am thinking there is just something off with the entire zone. Originally I had to fix everything in Antonica, it all appeared above the ground, much like this chest is doing.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
Here is a screenshot of it. You will notice the grid is the exact same, so is the z-axis. But still the chest appear in mid-air. This does not happen in Frostfang.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Loot chest, mid air
Does the Y match the players Y? I honestly have no clue why this is happening, the client always drags objects to the ground. The only solution I can think of would be to determine the actual location when the chest is created and not use the dead npc's location but that would require the server to know the level geometry and that is still a ways off before we get around to that.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
There is something funky with Antonica. I had to do a grid fix on every single npc when I first started populating it.
Another strange thing, mobs that die in cities with loot do not leave chest, loot remains on body. I could seriously do without chest if there is a way to just disable them in all the zones.
Another strange thing, mobs that die in cities with loot do not leave chest, loot remains on body. I could seriously do without chest if there is a way to just disable them in all the zones.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
It seems that the chest are about 1.5 off, here is a screenshot and code that I changed. Now to check other zones.
Code: Select all
chest->SetX(GetX());
chest->SetY(GetY()-1.5);
chest->SetZ(GetZ());You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
I gave the Ry'Gorr some loot and the Y axis appears to be correct for there too.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: Loot chest, mid air
Well that did not work in every instance, the chest seem to vary in Y axis. I hate the chest anyway and they would get pulled on my server so I made a new rule TreasureChestDisabled and set it to true, added a check before the chest are ever created and the loot pulled off the body, works perfect. On to the next thing 
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: Loot chest, mid air
Never even crossed my mind to add a rule for chests, that is something I can add to the SVN code though.
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Who is online
Users browsing this forum: No registered users and 0 guests