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
 
A modification to PlayerMobile to override or change the way the OnBeforeDeath method works; have it undo the polymorph before the method returns.
 
the bodyvalue that im using is 9999

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

i also added this to Corpse.cs
C#:
  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
 
The Corpse.cs mod is probably overkill.

You can invoke
Code:
PolymorphSpell.EndPolymorph(from);
from pretty much anywhere.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back