@@ -110,8 +110,8 @@ def missions(server, missions_to_complete="ALL", action="ALL", session=""):
110110 payload = {'action' : "buy" , 'id' : productId , 'quantity' : 1 , "submit" : "Buy" }
111111 session .post (URL + "productMarket.html" , data = payload )
112112 elif num in (12 , 54 ):
113- Citizen = requests .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
114- apiRegions = requests .get (URL + "apiRegions.html" ).json ()
113+ Citizen = session .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
114+ apiRegions = session .get (URL + "apiRegions.html" ).json ()
115115 capital = [row ['id' ] if row ['homeCountry' ] == Citizen ['citizenshipId' ] and
116116 row ['capital' ] else 1 for row in apiRegions ][0 ]
117117 fly (server , capital , 3 , session = session )
@@ -134,7 +134,7 @@ def missions(server, missions_to_complete="ALL", action="ALL", session=""):
134134 "sendToMilitaryUnit" : "on" , "sendToParty" : "on" , "sendToFriends" : "on" }
135135 session .post (f"{ URL } shoutActions.html" , data = payload )
136136 elif num == 19 :
137- Citizen = requests .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
137+ Citizen = session .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
138138 monetaryMarket = session .get (
139139 URL + 'monetaryMarket.html?buyerCurrencyId=0&sellerCurrencyId=' + str (
140140 int (Citizen ['currentLocationRegionId' ] / 6 )))
@@ -148,7 +148,7 @@ def missions(server, missions_to_complete="ALL", action="ALL", session=""):
148148 ID = tree .xpath (f'//*[starts-with(@id, "cell")]/a/text()' )[0 ].replace ("#" , "" )
149149 sell_eqs (server , ID , 0.01 , 48 , session )
150150 elif num == 22 :
151- Citizen = requests .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
151+ Citizen = session .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
152152 payload = {'product' : "GRAIN" , 'countryId' : Citizen ['citizenshipId' ], 'storageType' : "PRODUCT" ,
153153 "action" : "POST_OFFER" , "price" : 0.1 , "quantity" : 100 }
154154 sell_grain = session .post (URL + "storage.html" , data = payload )
@@ -211,11 +211,11 @@ def missions(server, missions_to_complete="ALL", action="ALL", session=""):
211211 elif num == 52 :
212212 fly (server , 1 , 3 , session )
213213 elif num == 55 :
214- requests .get (URL + f"lan.{ my_id } /" )
214+ requests .get (URL + f"lan.{ my_id } /" , verify = False )
215215 elif num in (61 , 55 ):
216216 send_motivates (server , "ALL" , session )
217217 elif num == 57 :
218- Citizen = requests .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
218+ Citizen = session .get (f'{ URL } apiCitizenById.html?id={ my_id } ' ).json ()
219219 payload = {'receiverName' : f"{ Citizen ['citizenship' ]} Org" , "title" : "Hi" ,
220220 "body" : choice (["Hi" , "Can you send me some gold?" , "Hello there!" , "Discord?" ]), "action" : "REPLY" , "submit" : "Send" }
221221 session .post (URL + "composeMessage.html" , data = payload )
0 commit comments