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:
    920
    Likes Received:
    164
    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 help? trying make custom horse Nov 22, 2017
Custom Releases Tamers Little Helper Nov 16, 2017
Script Support Need help how to make reward drop in back pack randomly Nov 13, 2017
Archived Bug Reports Help Options (Physically Stuck) Nov 12, 2017
ServUO Discussion Start Up Help Nov 3, 2017
Shards Looking For Players Need help for docorate/build Oct 31, 2017
Script Support Created new server need help with scripts Oct 26, 2017