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

I need help about world saving

Discussion in 'Script Support' started by arphile, Apr 27, 2014.

  1. arphile
    Offline

    arphile Active Member

    Joined:
    Apr 24, 2014
    Messages:
    159
    Likes Received:
    29
    first, I`m sorry about my bad english skills.
    I need help about world saving.
    when server saves, items on the floor disappeared.
    so, I tried to fix it, but it doesn`t effective.
    this is the question "where I edit to fix it."
    is anyone know about this problem?
     
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,552
    Likes Received:
    389
    So any items left on the ground you don't want them removed, if player's drop items you want them left there?
     
  3. arphile
    Offline

    arphile Active Member

    Joined:
    Apr 24, 2014
    Messages:
    159
    Likes Received:
    29
    nope,
    I want to remove items after 30 minutes or 1 hour if it left on the ground, like original RunUO Settings.
    how can I solve this problem?

    #(thx for your attention.)
     
  4. arphile
    Offline

    arphile Active Member

    Joined:
    Apr 24, 2014
    Messages:
    159
    Likes Received:
    29
    I Solve this problem!!
    Script file : ServUO\Server\World.cs

    if delete
    Line 1152 : strategy.ProcessDecay();

    Items not decay on save.
     
    • Like Like x 1
  5. arphile
    Offline

    arphile Active Member

    Joined:
    Apr 24, 2014
    Messages:
    159
    Likes Received:
    29
    when I fix my script Line 1152, saving doesn't decay any item.
    so, I tried to fix it, and find another solution.

    just fix Server\Item.cs

    public void SetLastMoved()
    {
    m_LastMovedTime = DateTime.UtcNow;
    }

    to

    public void SetLastMoved()
    {
    m_LastMovedTime = DateTime.Now;
    }

    I SOLVE THIS PROBLEM!! Yeah!!
     
  6. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    Can you please try to avoid double posting. There is an Edit button at the bottom of your posts. If no one has posted after you please edit your last post and add the additional information.
    Also please use [-code] tags [-/code] (Without the - in them)
     
Similar Threads: need help
Forum Title Date
Script Support Need help with PlayerMobile Oct 8, 2017
Script Support Need help modifying Ultimate Dye Tub script Oct 4, 2017
Script Support Need help with tile decay please. Sep 13, 2017
New Join Forum I am new and need a lot of help Aug 27, 2017
Script Support need help Aug 10, 2017
Windows Support Please need help Error SerVUO Aug 3, 2017
Script Support Error UO Please Need Help Jul 30, 2017