Пример #1
0
from main import API
import sys

reload(sys)  
sys.setdefaultencoding('utf8')

a=API()
a.setUdid('5990139B-C394-4C37-92C8-4546603C7153')
a.setRegion('global')

a.login()
a.getMail()
a.getPermanent()

#a.finishQuest(0,11)
#a.finishQuest(0,12)
#a.finishQuest(0,13)
#a.finishQuest(0,14)
#a.finishQuest(0,15)
#a.finishQuest(0,16)
#a.finishQuest(0,17)
#a.finishQuest(0,20)
#exit(1)
#while(1):
a.selectCharInven('{"seq":"42"}',makedeck=True)
for i in range(24,40):
	a.finishQuest(0,i+1)
exit(1)
#a.finishQuest(0,1)
Пример #2
0
from main import API

a = API()
a.sess = 'AAAATlrvMaj5B1tR4VrD1Qhy3GV_zukDoYg5KF_i6PTtcED04lhQItRHCj0A9Gx_RoAIHBvWLPZloWZfGGGt_6zzGqa1dHIO9cqZdIhdSc5cineU'
a.uin = '396184879'
a.wait(5)  #this will wait 5 seconds between each action
a.setRegion(2)
a.setDevice(1)
a.dologin()

#use event codes
a.boltrend_exchange_code('73rss7mw9i')
a.boltrend_exchange_code('ckwwievtx9')
a.boltrend_exchange_code('dkskdyexfr')
a.boltrend_exchange_code('e7ef24evfc')
a.boltrend_exchange_code('gyka4jreqf')
a.boltrend_exchange_code('h3wq5ft9kw')
a.boltrend_exchange_code('k7uu7d6zkq')
a.boltrend_exchange_code('ksyyrtaufe')
a.boltrend_exchange_code('nuwjyu26xh')
a.boltrend_exchange_code('pe3q2hrden')
a.boltrend_exchange_code('rkxwj7qrwk')
a.boltrend_exchange_code('rr5nguvafi')

#do single quest
a.doQuest(1001101303)
#do multiple quests
a.completeStory(90101)
#farm dungeon
a.completeStory(50107, farmingAll=True)