def gen_stop_data(ses, cur_session): stop_request = pokemon_pb2.stop_request() stop_request.time = 2 #1 #stop_request.rpc_id = 9077956684869009422 #3 static stop_request.rpc_id = 2212820743501119519 - randint(0, 999) #3 static stop_request.unk1 = cur_session[1] #-randint(0,9) #7 stop_request.unk2 = cur_session[2] #-randint(0,9) #8 stop_request.unk3 = 0x4049000000000000 #9 static stop_request.unknown12 = randint(0, 999999) #12 static stop_request.sess.ses1 = ses.session_hash #12 stop_request.sess.time = ses.session_live #12 stop_request.sess.ses2 = ses.session_id #12 req1 = stop_request.requests.add() req1.type = 101 req1.message.unknown4 = cur_session[0] req1.message.unknown5 = cur_session[1] #-randint(0,9) req1.message.unknown6 = cur_session[2] #-randint(0,9) req1.message.unknown7 = cur_session[1] #-randint(0,9) #last-1 req1.message.unknown8 = cur_session[2] #-randint(0,9) #last req2 = stop_request.requests.add() req2.type = 126 req5 = stop_request.requests.add() req5.type = 4 req3 = stop_request.requests.add() req3.type = 129 req4 = stop_request.requests.add() req4.type = 5 req4.message.unknown4 = '05daf51635c82611d1aac95c0b051d3ec088a930' #static location.set_location_coords(location.l2f(cur_session[1]), location.l2f(cur_session[2]), location.l2f(0x4049000000000000)) return stop_request.SerializeToString()
def gen_stop_data(ses,cur_session): stop_request = pokemon_pb2.stop_request() stop_request.time = 2 #1 #stop_request.rpc_id = 9077956684869009422 #3 static stop_request.rpc_id = 2212820743501119519-randint(0,999) #3 static stop_request.unk1 = cur_session[1]#-randint(0,9) #7 stop_request.unk2 = cur_session[2]#-randint(0,9) #8 stop_request.unk3 = 0x4049000000000000 #9 static stop_request.unknown12 = randint(0,999999) #12 static stop_request.sess.ses1 = ses.session_hash #12 stop_request.sess.time = ses.session_live #12 stop_request.sess.ses2 = ses.session_id #12 req1 = stop_request.requests.add() req1.type = 101 req1.message.unknown4 = cur_session[0] req1.message.unknown5 = cur_session[1]#-randint(0,9) req1.message.unknown6 = cur_session[2]#-randint(0,9) req1.message.unknown7 = cur_session[1]#-randint(0,9) #last-1 req1.message.unknown8 = cur_session[2]#-randint(0,9) #last req2 = stop_request.requests.add() req2.type = 126 req5 = stop_request.requests.add() req5.type = 4 req3 = stop_request.requests.add() req3.type = 129 req4 = stop_request.requests.add() req4.type = 5 req4.message.unknown4 = '05daf51635c82611d1aac95c0b051d3ec088a930' #static location.set_location_coords(location.l2f(cur_session[1]),location.l2f(cur_session[2]),location.l2f(0x4049000000000000)) return stop_request.SerializeToString()
def walk_random(): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE=location.get_location_coords() COORDS_LATITUDE=location.l2f(COORDS_LATITUDE) COORDS_LONGITUDE=location.l2f(COORDS_LONGITUDE) COORDS_ALTITUDE=location.l2f(COORDS_ALTITUDE) COORDS_LATITUDE=COORDS_LATITUDE+config.steps COORDS_LONGITUDE=COORDS_LONGITUDE+config.steps location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE)
def walk_random_l(pok): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE = location.get_location_coords( ) COORDS_LATITUDE = location.l2f(pok[1]) COORDS_LONGITUDE = location.l2f(pok[1]) COORDS_ALTITUDE = location.l2f(COORDS_ALTITUDE) location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE)
def walk_random(): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE = location.get_location_coords( ) COORDS_LATITUDE = location.l2f(COORDS_LATITUDE) COORDS_LONGITUDE = location.l2f(COORDS_LONGITUDE) COORDS_ALTITUDE = location.l2f(COORDS_ALTITUDE) COORDS_LATITUDE = COORDS_LATITUDE + config.steps COORDS_LONGITUDE = COORDS_LONGITUDE + config.steps location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE)
def walk_random(): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE=location.get_location_coords() COORDS_LATITUDE=location.l2f(COORDS_LATITUDE) COORDS_LONGITUDE=location.l2f(COORDS_LONGITUDE) COORDS_ALTITUDE=location.l2f(COORDS_ALTITUDE) random_Angle=random.random()*math.pi*2 COORDS_LATITUDE=COORDS_LATITUDE+(config.steps*math.sin(random_Angle)) COORDS_LONGITUDE=COORDS_LONGITUDE+(config.steps*math.cos(random_Angle)) print '[+] perform random walk %.7f %.7f'%(COORDS_LATITUDE,COORDS_LONGITUDE) location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE)
def walk_circle(edge): a=2*math.pi/edge i=1 print '[+] circular walk' while (edge > 0): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE=location.get_location_coords() COORDS_LATITUDE=location.l2f(COORDS_LATITUDE) COORDS_LONGITUDE=location.l2f(COORDS_LONGITUDE) COORDS_ALTITUDE=location.l2f(COORDS_ALTITUDE) COORDS_LATITUDE=COORDS_LATITUDE+(config.steps*math.sin(a*i)) COORDS_LONGITUDE=COORDS_LONGITUDE+(config.steps*math.cos(a*i)) #print '[+] perform circular walk %.7f %.7f'%(COORDS_LATITUDE,COORDS_LONGITUDE) location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE) edge=edge-1 i=i+1 time.sleep(2) print '[+] done circle'
def walk_random_l(pok): COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE=location.get_location_coords() COORDS_LATITUDE=location.l2f(pok[1]) COORDS_LONGITUDE=location.l2f(pok[1]) COORDS_ALTITUDE=location.l2f(COORDS_ALTITUDE) location.set_location_coords(COORDS_LATITUDE, COORDS_LONGITUDE, COORDS_ALTITUDE)