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

[Easter 2014] Raised Easter Bunnies & Marshmallow Ducklings 1.01

2014 Easter Gifts found on Official UO Servers

  1. Tecmo
    Offline

    Tecmo New Member

    Joined:
    Feb 9, 2014
    Messages:
    7
    Likes Received:
    3
    Tecmo submitted a new resource:

    [Easter 2014] Raised Easter Bunnies & Marshmallow Ducklings - 2014 Easter Gifts found on Official UO Servers

    Read more about this resource...
     
    • Like Like x 2
    • Two Thumbs Up Two Thumbs Up x 1
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,552
    Likes Received:
    389
    Awesome idea for Easter! Thanks :)
     
  3. Crome969
    Offline

    Crome969 Member

    Joined:
    Jan 9, 2014
    Messages:
    196
    Likes Received:
    20
    • Two Thumbs Up Two Thumbs Up x 1
  4. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    Thank you so much Tecmo for taking time to release this. I may use this year around! :D
     
  5. Juzzver
    Offline

    Juzzver New Member

    Joined:
    Sep 17, 2013
    Messages:
    21
    Likes Received:
    0
    there is still no easter basket in archive
     
  6. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    @Tecmo Would you be so kind as to tell us about the GiftGiving.cs included in this archive? please and thank you
     
  7. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,552
    Likes Received:
    389
    Tecmo did you change the Version number on your update?
     
  8. Tecmo
    Offline

    Tecmo New Member

    Joined:
    Feb 9, 2014
    Messages:
    7
    Likes Received:
    3
  9. Tecmo
    Offline

    Tecmo New Member

    Joined:
    Feb 9, 2014
    Messages:
    7
    Likes Received:
    3
    @Milva
    I had not changed the version because everything remained the same with the exception of adding the Easter Basket. I have updated the version now. Thanks


    You must make sure the start date in the HappyEasterBasketGiver.cs file is set to a date after your next restart date.

    Example:
    If you add these updates go live on a Friday at 6:00 AM you will want the start date in the HappyEasterBasketGiver.cs file to be one day later (Saturday).

    The way it works and doesn't work and the reason why you want to go with the "next" day after install....
    GiftGiving.cs looks at the last login time and if it is >= to the start date in HappyEasterBasketGiver.cs then it will presume the player already has the gift.

    Will work: Set the date to a day after your install date
    Will not work: Set the start date to the same day you restart your server


    Every year you only need to adjust the start/finish dates in the HappyEasterBasketGiver. Anyone wanting to can easily modify the HolidayConfig.cs file to allow all Gift giving files (such as HappyEasterBasketGiver) to call on it for the start/ finish dates just as I have shown with the year.
    Code (C#):
    1.   public override DateTime Start{ get{ return new DateTime( HolidayConfig.m_CurrentYear, 4, 16 ); } }
    2.  public override DateTime Finish{ get{ return new DateTime( HolidayConfig.m_CurrentYear, 5, 1 ); } }
    You can easily set all holiday dates from the HolidayConfig.cs file and then reference them from any and all Holiday packages as I have shown above.
     
    • Informative Informative x 1
  10. Nuggzy
    Offline

    Nuggzy Member

    Joined:
    Aug 29, 2015
    Messages:
    114
    Likes Received:
    13
    anyone have the easter basket for this?
     
  11. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,552
    Likes Received:
    389
  12. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,552
    Likes Received:
    389
  13. Nuggzy
    Offline

    Nuggzy Member

    Joined:
    Aug 29, 2015
    Messages:
    114
    Likes Received:
    13
    Nope it's not in there. I searched all of the different sites, all of them have the same thing. I got it working though by going to the container.cs and copying the basket renaming it to EasterBasket. My server also had a GiftGiving.cs in the SpecialSystems folder, I removed it and used the one from this addon.

    Modify HappyEasterBasketGiver.cs to get rid of the errors it it.

    case GiftResult.Backpack:
    mob.SendLocalizedMessage( 1154717 );//Happy Easter! We have placed a gift for you in your backpack.
    break;
    case GiftResult.BankBox:
    mob.SendLocalizedMessage( 1154718 );//Happy Easter! We have placed a gift for you in your bank box.
    break;
     
    • Two Thumbs Up Two Thumbs Up x 1