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:
    883
    Likes Received:
    163
    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 with creating and adding other crafting PS's Monday at 12:12 AM
Script Support Help with Tinkering Oct 14, 2017
ServUO Discussion seeking help with placement of items and npcs Oct 11, 2017
Script Support seeking setup help Oct 10, 2017
Script Support Need help with PlayerMobile Oct 8, 2017
Script Support Help with summoner script Oct 6, 2017
Script Support Need help modifying Ultimate Dye Tub script Oct 4, 2017