So I changed the code in playermobile.cs regarding what happens to your stuff when you die. Basically I made it so all your stuff goes into your back pack so you dont have to worry about item insurance anymore.
Everything was working fine! I thought I succeeded and moved on.
So today I decided to test it again to make sure but this time i was riding a swamp dragon that I had tamed. When I died everything went to my backpack perfectly but swamp dragon disappeared. I thought oh thats odd. When I checked my backpack there was a "Rudder" dyed the hue of the dragon barding deed I previously applied to the swamp dragon. I couldn't move the "rudder" and nothing happened when I double clicked it.
I tested this again with an ethereal lama. It disappeared like its supposed to but it didn't appear in my backpack. instead another boat part dyed black appeared. I couldn't move it but clicking it resulted in the ethereal mount casting animation but it just ended without riding the mount. the boat part in the case of ethereal mounts retains the name of the ethereal mount item.
So what could be causing this? Here is the code that I changed.
ORIGINAL
EDITED
well that was easy I fixed it...
Everything was working fine! I thought I succeeded and moved on.
So today I decided to test it again to make sure but this time i was riding a swamp dragon that I had tamed. When I died everything went to my backpack perfectly but swamp dragon disappeared. I thought oh thats odd. When I checked my backpack there was a "Rudder" dyed the hue of the dragon barding deed I previously applied to the swamp dragon. I couldn't move the "rudder" and nothing happened when I double clicked it.
I tested this again with an ethereal lama. It disappeared like its supposed to but it didn't appear in my backpack. instead another boat part dyed black appeared. I couldn't move it but clicking it resulted in the ethereal mount casting animation but it just ended without riding the mount. the boat part in the case of ethereal mounts retains the name of the ethereal mount item.
So what could be causing this? Here is the code that I changed.
ORIGINAL
C#:
public override DeathMoveResult GetParentMoveResultFor(Item item)
{
if (CheckInsuranceOnDeath(item) && !Young)
{
return DeathMoveResult.MoveToBackpack;
}
DeathMoveResult res = base.GetParentMoveResultFor(item);
if (res == DeathMoveResult.MoveToCorpse && item.Movable && Young)
{
res = DeathMoveResult.MoveToBackpack;
}
return res;
}
public override DeathMoveResult GetInventoryMoveResultFor(Item item)
{
if (CheckInsuranceOnDeath(item) && !Young)
{
return DeathMoveResult.MoveToBackpack;
}
DeathMoveResult res = base.GetInventoryMoveResultFor(item);
if (res == DeathMoveResult.MoveToCorpse && item.Movable && Young)
{
res = DeathMoveResult.MoveToBackpack;
}
EDITED
C#:
public override DeathMoveResult GetParentMoveResultFor(Item item)
{
return DeathMoveResult.MoveToBackpack;
}
public override DeathMoveResult GetInventoryMoveResultFor(Item item)
{
return DeathMoveResult.MoveToBackpack;
DeathMoveResult res = base.GetInventoryMoveResultFor(item);
if (res == DeathMoveResult.MoveToCorpse && item.Movable)
{
res = DeathMoveResult.MoveToBackpack;
}
Post automatically merged:
well that was easy I fixed it...
C#:
public override DeathMoveResult GetParentMoveResultFor(Item item)
{
if (CheckInsuranceOnDeath(item) && !Young)
{
return DeathMoveResult.MoveToBackpack;
}
DeathMoveResult res = base.GetParentMoveResultFor(item);
if (res == DeathMoveResult.MoveToBackpack && item.Movable && Young)
{
res = DeathMoveResult.MoveToBackpack;
}
return res;
}
public override DeathMoveResult GetInventoryMoveResultFor(Item item)
{
if (CheckInsuranceOnDeath(item) && !Young)
{
return DeathMoveResult.MoveToBackpack;
}
DeathMoveResult res = base.GetInventoryMoveResultFor(item);
if (res == DeathMoveResult.MoveToBackpack && item.Movable && Young)
{
res = DeathMoveResult.MoveToBackpack;
}
Last edited: