Chucl

Member
ServUO Version
Publish Unknown
Ultima Expansion
None
hellooo lets say a player is polymorphed into Bear, if he dies his corpse is also bear form, isthere a way to set the itemid of the corpse to Human??

using runuo 2.2
 
the bodyvalue that im using is 9999

onbeforedeath:
Expand Collapse Copy
if (from.Body == 9999)
                {
                     if (from != null && !from.Female)
                        from.BodyValue = 400;
                        else
                        from.BodyValue = 401;
}

i also added this to Corpse.cs
C#:
Expand Collapse Copy
  if (owner.Player && owner.BodyValue == 9999 && !owner.Female)
              owner.BodyValue = 400;
         else if (owner.Player && owner.BodyValue == 9999 && owner.Female)
           owner.BodyValue = 401;

not sure if overkill
 

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back