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:
    845
    Likes Received:
    157
    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 Aug 10, 2017
Windows Support Please need help Error SerVUO Aug 3, 2017
ServUO Discussion help Aug 3, 2017
Script Support Error UO Please Need Help Jul 30, 2017
Script Support Gump Close Action Help... Jul 26, 2017
General Discussion Imbuable Tali help? Jul 25, 2017
Looking For Help Looking for help (bridge servuo<->xenforo) Jul 22, 2017