Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
This question was closed Jun 26, 2020 at 09:10 AM by Muhammad Roshaan Tariq for the following reason: The question is answered, right answer was accepted
avatar image
Question by Muhammad Roshaan Tariq · Nov 28, 2019 at 01:36 PM · apisunity3dsdks

How to call advance drop tables?

Hi,

I was following this document for understanding Catalogs, Items, Bundles and drop tables. Everything was fine in the document until I found this section where there is no help provided regarding API calling and Unity code.

So, my main concern is which function I will use to use this feature and to call this 11-Item drop bundle?

Thanks!

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Nov 29, 2019 at 05:53 AM

>> I was following this document for understanding Catalogs, Items, Bundles and drop tables. Everything was fine in the document until I found this section where there is no help provided regarding API calling and Unity code.

Game developers only can access drop tables programmatically using these two PlayFab Server API methods: GetRandomResultTables, EvaluateRandomResultTable. Only when you develop a game server on Unity, you need to call these two functions via PlayFab Unity SDK. Otherwise please call them on the Custom Game Server or CloudScript. This section Using drop tables shows how tocall these two API via PlayFab C# SDK on a C# server. If you want to build a Unity server, you can navigate to [Unity]->[Window]->[PlayFab]->[Editor Extensions], choose [Settings]->[API] tab, check [ENABLE SERVER API], then you can call server API on Unity. If you only use Unity to develop client applications, please don’t check [ENABLE SERVER API].

>> So, my main concern is which function I will use to use this feature and to call this 11-Item drop bundle?

If you want to use bundles in a drop table, please refer to the above content. If you want to grant or let players purchase a bundle directly, you can handle the bundle like an item. A bundle also has an item Id, it can be used in API about items. You can refer to the above content to use server or admin API GrantItemsToUser to grant items or bundles to users, or use client API PurchaseItem, let users purchase it.

Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Muhammad Roshaan Tariq · Nov 29, 2019 at 06:15 AM 0
Share

@Sarah Zhang


>> If you want to use bundles in a drop table, please refer to the above content. If you want to grant or let players purchase a bundle directly, you can handle the bundle like an item. A bundle also has an item Id, it can be used in API about items. You can refer to the above content to use server or admin API GrantItemsToUser to grant items or bundles to users, or use client API PurchaseItem, let users purchase it.

I want to achieve the randomness as told in the tutorial I followed. For that which API should I use GrantItemsToUser or PurchaseItem?

avatar image Sarah Zhang Muhammad Roshaan Tariq · Nov 29, 2019 at 08:16 AM 0
Share

Yes, GrantItemsToUser can be used to grant bundles, PurchaseItem can be used to purchase bundles. And the key point of implementing the randomness is adding drop tables in the bundle, please follow the tutorial normally, especially this part Adding a bundle. Then call the API to grant or sell the bundle which you set.

avatar image Muhammad Roshaan Tariq Sarah Zhang · Nov 29, 2019 at 04:24 PM 0
Share

@Sarah Zhang Alright, got it. I have already created the bundle containing multiple drop tables just like the tutorial and now I will try the mentioned APIs and see if it works for me. Thanks!

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Region Ping measured RTT inaccurate/high using Unity HTTP, recommendations or ICMP ping protocol support? 1 Answer

    What is the intended way to deserialize custom data from an api call.,Intended way to deserialize custom data from api call. 1 Answer

    executecloudscript unity Function Parameter 1 Answer

    What is "AuthenticationContext" in GetTime 1 Answer

    PlayFab Party Unity SDK 1.7.0 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges