Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player_data["delivery_items"] = {
- 'Boxes': []
- }
- box = {
- 'Type': 0, # dont touch this as it will be changed later
- 'Items': [] # put in here what will be in the box by default like coins
- }
- box['Type'] = 20 # type 1 will do a custom box animation, if u want a normal one then 10 is brawl box, 11 is mega, 12 is big and 13 is omegabox. Do 20 if you just want to see every reward togheter or do 100 to skip animation and final screen
- rewards = [2, 24, 7, 12] # this are the possible rewards, those being token doublers: 2, power points: 24, coins: 7 and star points: 12, add 10 if u want gems too
- for x in range(random.randint(1,3)): # the 1, 3 means how many times this action can be repeted, this adds a random amount of items
- item = {'Amount': random.randint(3, 10), 'DataRef': [0, 0], 'RewardID': random.choice(rewards)} # this chooses a random reward of random amount
- box['Items'].append(item) # finally it adds the reward to the box, from now dont touch anything cuz its all about saving
- player_data["delivery_items"]['Boxes'].append(box)
- db_instance.updatePlayerData(player_data, calling_instance)
- fields["Socket"] = calling_instance.client
- fields["Command"] = {"ID": 203}
- fields["PlayerID"] = calling_instance.player.ID
- Messaging.sendMessage(24111, fields, cryptoInit)
Advertisement
Add Comment
Please, Sign In to add comment