Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
  1. Home
  2. General
  3. Award currency on new registration

Award currency on new registration

Scheduled Pinned Locked Moved Solved General
currencyrewards
4 Posts 2 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Brooks
    wrote on last edited by
    #1

    Hello,
    May be a stupid question but we would like to award a 1000 currency(Essence) sign-up bonus on a new user registration. Usually, this would be set by a nontechnical admin via an interface but I do not see anywhere they can set this? Is this only able to get set through the API and/or post scripts? My admins don't know JSON 🙂

    Thanks,
    Chris

    1 Reply Last reply
    0
    • Paul WinterhalderP Offline
      Paul WinterhalderP Offline
      Paul Winterhalder
      brainCloudAdmin
      wrote on last edited by
      #2

      @Chris-Brooks said in Award currency on new registration:

      ward a 1000 currency(Essenc

      Hi Chris,

      There are two ways to do this.

      #1 - if you're using our XP system, you could reward the user 1000 Essence for achieving level 1 (which assumably has a requirement of 0 XP points)

      #2 - Otherwise, you can register a script against the Authentication Success API hook (service = Authenticate, Operation = Authenticate, Pre/Post = Post).

      In your script, check to see if the newUser flag is set to "true". <- warning, it's a string! (darn legacy)

      If it is, award the user the 1000 Essense.

      General info on writing API hooks here - https://getbraincloud.com/apidocs/apiref/#cc-ccscripts-apihooks

      Hope that helps!

      Paul.

      C 1 Reply Last reply
      0
      • Paul WinterhalderP Paul Winterhalder

        @Chris-Brooks said in Award currency on new registration:

        ward a 1000 currency(Essenc

        Hi Chris,

        There are two ways to do this.

        #1 - if you're using our XP system, you could reward the user 1000 Essence for achieving level 1 (which assumably has a requirement of 0 XP points)

        #2 - Otherwise, you can register a script against the Authentication Success API hook (service = Authenticate, Operation = Authenticate, Pre/Post = Post).

        In your script, check to see if the newUser flag is set to "true". <- warning, it's a string! (darn legacy)

        If it is, award the user the 1000 Essense.

        General info on writing API hooks here - https://getbraincloud.com/apidocs/apiref/#cc-ccscripts-apihooks

        Hope that helps!

        Paul.

        C Offline
        C Offline
        Chris Brooks
        wrote on last edited by
        #3

        @Paul-Winterhalder Option 1 works! The game doesn't have levels so everyone would be level one but the admins can simply set up the initial reward for level 1 and we are good to go. A bit hokey but effective.

        Thank you,
        Chris

        1 Reply Last reply
        0
        • Paul WinterhalderP Offline
          Paul WinterhalderP Offline
          Paul Winterhalder
          brainCloudAdmin
          wrote on last edited by
          #4

          Happy to help! 🙂

          Paul.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Solved
          • Unsolved
          • Users