Implementing: Collections
Moderator: Team Members
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Implementing Collections
After Z's find of my stupid bug, I was able to implement the rest of collections except for rewards. All the structs involved with collections are now sending perfectly (woot!). Just some things left that I can't implement until we talk about them.
Rewards Table
We need to support coin, item, and selectable item rewards. What do you think about a table called `collection_rewards` with `collection_id`,`reward_type`,`reward_value`. Reward types could be 'Item','Selectable Item','Coin'. If coin, then reward value would be the total coin in copper.
Experience
We'll need an additional field in the `collections` table to denote how much exp should be awarded upon hand-in of the quest.
Anything else I'm missing?
Rewards Table
We need to support coin, item, and selectable item rewards. What do you think about a table called `collection_rewards` with `collection_id`,`reward_type`,`reward_value`. Reward types could be 'Item','Selectable Item','Coin'. If coin, then reward value would be the total coin in copper.
Experience
We'll need an additional field in the `collections` table to denote how much exp should be awarded upon hand-in of the quest.
Anything else I'm missing?
- Sylva1n
- Posts: 271
- Joined: Tue Mar 24, 2009 3:03 pm
- Location: Quebec, Canada
Re: Implementing Collections
some quest rewards are collectibles
- Zcoretri
- Team Member
- Posts: 1642
- Joined: Fri Jul 27, 2007 12:55 pm
- Location: SoCal
Re: Implementing Collections
True, but they are still just items with a collectible tag.Sylva1n wrote:some quest rewards are collectibles
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Implementing Collections
Scat, couldn't we just add an enum for "XP", and make the collection_rewards multi-entry, like we do with quest rewards? You can then set it up to get an item, AND coin, AND xp...Scatman wrote:Experience
We'll need an additional field in the `collections` table to denote how much exp should be awarded upon hand-in of the quest.
- Sylva1n
- Posts: 271
- Joined: Tue Mar 24, 2009 3:03 pm
- Location: Quebec, Canada
Re: Implementing Collections
what about when a collection offers a choice of rewards (choosing between 2 or more items)?
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Implementing Collections
That's what the selectable items are.Sylva1n wrote:what about when a collection offers a choice of rewards (choosing between 2 or more items)?
Sure that's perfectly fine to me. So reward_type could be 'xp','item','selectable_item','coin'?John Adams wrote:Scat, couldn't we just add an enum for "XP", and make the collection_rewards multi-entry, like we do with quest rewards? You can then set it up to get an item, AND coin, AND xp...
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Implementing Collections
Sure! Give em some coin and xp, and a standard item "Alpha Token" and oh, because we're nice guys, pick one of the following super cool items... etc. Sounds dreamy.
Table committed.
Table committed.
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Implementing Collections
Can we get the following unique keys so I can perform insert into/duplicate key updates on the following tables and columns?
character_collections.char_id + character_collections.collection_id
character_collection_items.char_id + character_collection_items.collection_id + character_collection_items.collection_item_id
character_collections.char_id + character_collections.collection_id
character_collection_items.char_id + character_collection_items.collection_id + character_collection_items.collection_item_id
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Implementing Collections
You should have the ability to commit table changes, Scatman. If you know what you're asking for, just commit (from the portal module). If it's a question of complying with the strict JA Articles of Database Perfection, Paragraph B, sub clause 1.5f, then I will see what I can do.
But seriously, feel free to make your own DB changes as needed. I'm a bit buried at the moment.
But seriously, feel free to make your own DB changes as needed. I'm a bit buried at the moment.
- Scatman
- Retired
- Posts: 1688
- Joined: Wed Apr 16, 2008 5:44 am
- EQ2Emu Server: Scatman's Word
- Characters: Scatman
- Location: New Jersey
Re: Implementing Collections
Did not know
Sweet!
Who is online
Users browsing this forum: No registered users and 0 guests