Carlos_ar
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
I am trying to get gifts to drop like OSI. I played with WinterGiftGiver.cs, changing the DateTime but nothing seems to happen.
Then I noticed when my server boots up the first line is this:
ServUO - [ServUO - Ultima Online Emulation] Version 0.0, Build 0.0 - Build on 1/1/2000 12:00:00 AM UTC - Release
Did I miss something in the config that would have it read the version, build, and correct date? Or is that just a default and the date/time is somewhere else to get the gifts to drop?
Thanks!
**************
DOH! Nevermind, I figured it out. Even if you set your timer for 1999, 01, 01, the system looks to see if you logged on between then and the current date. If you logged on then it assumes you got a gift already. So I had to set the date for today and log on as a character that hadn't logged in before today. That worked.
Trying to do Valentines gifts so this will work nicely.
Thanks!!... again...
***************
Next Question, in this same thread...
So... how would I go about changing the GiftGiver script to give to each character and not just 1 per account?
---- Bonus Problem:
Ok so I ran into this same problem when attempting to add Monster Statuettes as loot. "does not contain a constructor that takes zero arguments" Now I get things like the MonsterStatuettes and this one I'm working with, the ValentinesCard are essentially a generated item based on properties given by a generator script (my limited knowledge that's what I'm gathering) So what would I put into "DropItem(new ValentinesCard ());" that would call the randomness of the item without asking for a specific instance of it? I can't seem to figure out what goes in place of "(int itemid ())"
So... Thank you @Juzzver for helping me figure this part out!
DropItem(new ValentinesCard ()); should be DropItem(new ValentinesCard (Utility.RandomList( ValentinesCardSouth, ValentinesCardEast ));
Then I noticed when my server boots up the first line is this:
ServUO - [ServUO - Ultima Online Emulation] Version 0.0, Build 0.0 - Build on 1/1/2000 12:00:00 AM UTC - Release
Did I miss something in the config that would have it read the version, build, and correct date? Or is that just a default and the date/time is somewhere else to get the gifts to drop?
Thanks!
**************
DOH! Nevermind, I figured it out. Even if you set your timer for 1999, 01, 01, the system looks to see if you logged on between then and the current date. If you logged on then it assumes you got a gift already. So I had to set the date for today and log on as a character that hadn't logged in before today. That worked.
Trying to do Valentines gifts so this will work nicely.
Thanks!!... again...
***************
Next Question, in this same thread...
So... how would I go about changing the GiftGiver script to give to each character and not just 1 per account?
---- Bonus Problem:
Ok so I ran into this same problem when attempting to add Monster Statuettes as loot. "does not contain a constructor that takes zero arguments" Now I get things like the MonsterStatuettes and this one I'm working with, the ValentinesCard are essentially a generated item based on properties given by a generator script (my limited knowledge that's what I'm gathering) So what would I put into "DropItem(new ValentinesCard ());" that would call the randomness of the item without asking for a specific instance of it? I can't seem to figure out what goes in place of "(int itemid ())"
So... Thank you @Juzzver for helping me figure this part out!
DropItem(new ValentinesCard ()); should be DropItem(new ValentinesCard (Utility.RandomList( ValentinesCardSouth, ValentinesCardEast ));
Last edited: