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

Collect bod every 10 second

Discussion in 'Script Support' started by Opywang, Nov 2, 2017.

  1. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    Hey there we're having trouble figuring out how to make player collect bod every 10 second.

    Bulkordersystem

    public static readonly int MaxCachedDeeds = 3;
    public static readonly int Delay = 1;

    I change the 6 into 1 it made it collect bod every 60 minute I think, but not sure.

    I can't seem to go lower than that if anybody can help me figure out how to fix it to make players collect bods every 10 second I will appreciated it so much thank you!
     
  2. Po0ka
    Offline

    Po0ka Active Member

    Joined:
    Aug 19, 2014
    Messages:
    612
    Likes Received:
    70
    Search where "Delay" is used.
    I'm pretty sure it's something like "TimeSpan.FromHours(Delay)" or something, just change the hour bit for "Seconds".
     
  3. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    It work thank you!
    --- Double Post Merged, Nov 2, 2017 ---
    O.K. it work, but we ran into a problem for some reason it became universal for all skilled level, and it doesn't work for certian skills it is for all skills.

    I wanted the low level to get bod every 10 second while the higher level smith has to wait 6 hours, but for some odd reason it's overriding the black smith timer.

    Here is Black Smith bod timer for skilled level, but it override these skilled level, and ignoring it for some reason.

    if (theirSkill >= 70.1)
    pm.NextSmithBulkOrder = TimeSpan.FromHours(6.0);
    else if (theirSkill >= 50.1)
    pm.NextSmithBulkOrder = TimeSpan.FromHours(2.0);
    else
    pm.NextSmithBulkOrder = TimeSpan.FromHours(0.02);
     
    #3 Opywang, Nov 2, 2017
    Last edited: Nov 2, 2017
  4. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,594
    Likes Received:
    187
    you have to put it in the CanGetBulkOrder method
     
  5. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    Hmm can you please clarify?
     
  6. Opywang
    Offline

    Opywang Member

    Joined:
    Jan 16, 2017
    Messages:
    65
    Likes Received:
    2
    I am still having trouble what did you mean by you have to put it in the CanGetBulkOrder method?
     
Similar Threads: Collect bod
Forum Title Date
Archived Bug Reports Community Collections update will not compile Jul 8, 2017
Archived Bug Reports Community Collections Library Jul 6, 2017
SA & High Seas 11th Anniversary Collection Mar 20, 2017
SA & High Seas Kings Collection Ship Paintings Mar 19, 2017
Support COLLECT command (XmlQuestNPC) Feb 17, 2017
SA & High Seas More Kings Collection Items Feb 8, 2017
General Discussion Collect Items Chest Jan 24, 2017