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:
    160
    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,654
    Likes Received:
    400
    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:
    160
    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:
    160
    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:
    160
    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:
    971
    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 about an old script... Tuesday at 8:33 PM
Script Support Need help how to make reward drop in back pack randomly Nov 13, 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
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