1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help PlayerMobile.cs, Death, auto-requip

Discussion in 'Script Support' started by Ziru, Oct 31, 2013.

  1. Ziru
    Offline

    Ziru New Member

    Joined:
    Oct 26, 2013
    Messages:
    17
    Likes Received:
    1
    Hello..

    i need help, i want to make insured item, and blessed items to be auto
    re-equipped upon resurrection.. and i can't find how to apply that.

    Note: I found that the Script Runuo's PlayerMobile.cs is different from Servuo's PlayerMobile.cs
     
    #1 Ziru, Oct 31, 2013
    Last edited: Oct 31, 2013
  2. Vorspire
    Offline

    Vorspire Vita-Nex: Core
    Admin ServUO Developer

    Joined:
    Jul 29, 2013
    Messages:
    1,035
    Likes Received:
    183
    I think in PlayerMobile.OnDeath, it sets up a list of all equipment but doesn't actually retain it, so you need to mess with that.

    Code (C#):
    1.  
    2. _EquipSnapshot = null;
    3.  
    Try this instead;
    Code (C#):
    1.  
    2. _EquipSnapshot = new List<Item>( Items );
    3.  
     
  3. Ziru
    Offline

    Ziru New Member

    Joined:
    Oct 26, 2013
    Messages:
    17
    Likes Received:
    1
    if i put m_EquipSnapshot = new List<Item>( Items );
    i get no errors but equipped items (insured or blessed) go to backpack.
    and for insurred if you're a young, you loss money.
     
Similar Threads: Help PlayerMobilecs
Forum Title Date
Script Support Need help on this script error Saturday at 5:08 AM
Script Support Crash help Jul 2, 2018
Script Support Imbuing Help Jun 21, 2018
Looking For Help looking for people to help with my server Jun 20, 2018
ServUO Discussion pls help with appveyor autobuild repack Jun 17, 2018
Script Support Please State If Server Is ServUO or Runuo For Help! May 30, 2018
Script Support Old bounty hunters system - help request May 25, 2018