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,795
    Likes Received:
    417
    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:
    153
    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 on this script error Saturday at 5:08 AM
Script Support need help making custom artifacts have rare mod. May 22, 2018
Script Support Need help with adding Hit Fireball and HLD to a Ring... Apr 28, 2018
Script Support need help to conver my atual playermobile to the svn one Apr 25, 2018
Script Support Need help with making a 2 handed weapon, one handed Apr 24, 2018
Script Support Need help with this one... Mar 25, 2018
Script Support Custom Tracking, need help Mar 20, 2018