Jump to content

Integration with collectionlog

Fixed 1.0.34 1.0.38

hid333
hid333

Posted

Could you add integration with collectionlog?
I checked with imthenewguy, and apparently, it is necessary to use the following calls.

 

The case plugin would need to add a call to my plugin if it's not coming from a loot container. 

void CollectFromPlugin(BasePlayer player, Item item, string sourceType)

 

MeventSupport

Posted

5 hours ago, hid333 said:

Could you add integration with collectionlog?
I checked with imthenewguy, and apparently, it is necessary to use the following calls.

 

The case plugin would need to add a call to my plugin if it's not coming from a loot container. 

void CollectFromPlugin(BasePlayer player, Item item, string sourceType)

 

Hi! Yes, of course. We’ll add this

  • Like 1
MeventSupport

Posted

15 hours ago, hid333 said:

Please, I beg of you...

Hey! Yeah my bad, this one slipped past the last couple updates. CollectionLog support isnt in UltimateCases yet but its going in the next update. Items from cases will go through CollectFromPlugin so theyll show up in the log properly.

  • Love 1
Mevent

Posted

Quick update: CollectionLog support is done and goes out in UltimateCases 1.0.37, it should be up on Codefling shortly. Every item a player gets from a case (blueprints too) is sent to CollectionLog with the Plugin source, so in your CollectionLog config just add Plugin as a source to the logs that should count case drops. Let me know if something doesnt get counted!

  • Like 1
Mevent

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.0.38

hid333

Posted

Please let me confirm the specifications.

Regarding the "case" settings:
Is it correct that "Type" must be either "Item" or "Command"?
Is it not possible to configure both?

I found that if I add an item while keeping the "Type" set to "Item"
and also include the "Command (%steamid%)" setting,
I do receive the item, but the achievement does not unlock in the collection log.

We added original weapon and resource cards to the product, intending for the actual weapons to be obtainable alongside the cards; however, upon including both, we noticed this issue.

hid333

Posted

example

          "ID": 439901046,
          "Chance (0-100%)": 60.0,
          "Type": "Item",
          "Title": "card_Cloth",
          "Command (%steamid%)": "giveto %steamid% Cloth 333",
          "DisplayName (empty - default)": "card_Cloth",

 

MeventSupport

Posted

13 hours ago, hid333 said:

example

          "ID": 439901046,
          "Chance (0-100%)": 60.0,
          "Type": "Item",
          "Title": "card_Cloth",
          "Command (%steamid%)": "giveto %steamid% Cloth 333",
          "DisplayName (empty - default)": "card_Cloth",

 

Hey! Yep you got it right. "Type" works as one or the other. With "Item" the plugin gives the item and sends it to Collection Log, but "Command (%steamid%)" is just ignored. So in your example the giveto command never even runs. With "Command" it only runs the commands and no item is created.

  • Like 1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.2m
Total downloads
Customers
12.2k
Customers served
Files Sold
173.7k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.