Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sell_hercule_cards ():
- CardsList =p1 .get ('/cards')
- O00O000O000OOOOO0 =[]
- SellCountCheck =0
- SellCardsList =[]
- for SelectedCard in CardsList .json ()['cards']:
- SelectedCardID =d1 .Cards .get_by_id (SelectedCard ['card_id']).id
- if int (SelectedCardID )==1002630 or int (SelectedCardID )==1002640 or int (SelectedCardID )==1002650 or int (SelectedCardID )==1005480 or int (SelectedCardID )==1011480 or int (SelectedCardID )==1011481 :
- SellCountCheck +=1
- SellCardsList .append (SelectedCard ['id'])
- if SellCountCheck ==99 :
- break
- if SellCountCheck ==0 :
- print ("Aucunes carte a vendre.")
- return 0
- SellCardsFunc ='/cards/sell'
- ReturnCardsList ={'card_ids':SellCardsList }
- CardsList =p1 .post (SellCardsFunc ,data =json .dumps (ReturnCardsList ))
- print (str (len (SellCardsList ))+' statue(s) vendue')
- if 'error'in CardsList .json ():
- print (CardsList .json ()['error'])
- return 0
- get_user_info (only_zeni =True )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement