Jump to content

Giving More Than 1 Item

Closed 1.3.1

greenbean
greenbean

Posted

Hello, is it possible to add more than one item reward? i.e. if I wanted to give a supply drop and scrap. I don't use Kits so that is unfortunately not a viable option for me. 

If no, would a solution be to set another ID to the same # of referrals as the first with the same reward conditions?

ID 1: 0/2 Invites Reward: 1 Supply Signal
ID 2: 0/2 Invites Reward: 500 Scrap

Would doing this count any 2 referrals (let's say player A and player B) for both IDs?

greenbean

Posted

Oh I see, so configuring it to this would have the effect of giving 1 supply signal and 500 scrap?

{
      "Invites Amount": 2,
      "ID": 1,
      "Show Description": false,
      "Description": [],
      "Type": "Item",
      "Image": "",
      "Title": "",
      "Command (%steamid%)": "inventory.giveto ${playerID} "scrap" "500"",
      "Kit": "",
      "Plugin": {
        "Hook": "Deposit",
        "Plugin name": "Economics",
        "Amount": 1,
        "(GameStores) Store ID in the service": "UNDEFINED",
        "(GameStores) Server ID in the service": "UNDEFINED",
        "(GameStores) Secret Key": "UNDEFINED"
      },
      "Display Name (empty - default)": "1 Supply Signal",
      "ShortName": "supply.signal",
      "Skin": 0,
      "Amount": 1
    },
MeventSupport

Posted

Try this: 

"Type": "Item",

      …

      "Command (%steamid%)": "inventory.giveid %steamid% scrap 500|inventory.giveid %steamid% supply.signal 1",

greenbean

Posted

Amazing, thank you so much! I'll test this out and follow up if I encounter any issues have a great evening!

  • Curator
Mevent

Posted

@greenbean I will close this ticket if you have any questions/problems — feel free to open a new ticket! ❤️ 

  • Curator
Mevent

Posted

Changed Status from Pending to Closed

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
2.5m
Total downloads
Customers
10.9k
Customers served
Files Sold
157.3k
Marketplace sales
Payments
3.4m
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.