Page 1 of 1

Обкапываем скалу в брите, плавим, крафтим локи, банкуем DRW

Posted: 31.03.2013 15:10
by tovarisch
Наговнокодил

Code: Select all

def digXY(x, y):
	lolrange= [-1,0,1]
	while not MoveXY(x,y,True,0,True):
		Wait(1000)
		CheckLag(60000)
	for ix in lolrange:
		for iy in lolrange:
			tryes = 0
			while not Dead():
				if not Hidden():
					UseSkill('Hiding')
					Wait(5000)
				ClearJournal()
				WaitTargetTile(0 ,x+ix ,y+iy , 0)
				UseType(0x0E85, 0x0000)
				while InJournal('You put the|You loose|Try mining|no ore|reach this.|too far away.') < 1:
					Wait(500)
					CheckLag(60000)
				tryes+=1
				if InJournal('no ore|no line|Try mining|reach this.|too far away.')>0 or tryes > 18:
					break
				Wait(400)
			# if Weight() > Str()*4:
			if Weight() > 70:
				goToBank()
				return True
	return True
	
def goToBank():

	while not MoveXY(1425,1557,True,0,False):
		CheckLag(60000)
		print('going to bank')
		
	tryes = 0
	while not Dead():
		ClearJournal()
		UseType(0x19B9, 0xFFFF)
		Wait(1000)
		CheckLag(60000)
		tryes += 1
		if InJournal('You put the')>0 or tryes>30:
			break

	craft();
		
	while not MoveXY(1420,1684,True,0,False):
		CheckLag(60000)
		print('going to bank')
		
	Wait(400)
	UOSay('bank')
	Wait(1000)
	CheckLag(60000)		
	MoveItems(Backpack(), 0x1BEF, 0xFFFF, 0x400F19E7, 0, 0, 0, 1000)


def craft():
	AutoMenu('Tinkering','Parts')
	AutoMenu('Parts','springs')
	Wait(1000)

	while Count(0x1BEF) > 0:
		UseType(0x1EBC, 0x0000)
		Wait(4500)
		CheckLag(60000)	

	
def dig():
	print('dig')
	
	points = [{'x':1459,'y':1510},{'x':1458,'y':1507},{'x':1457,'y':1506},{'x':1455,'y':1505},{'x':1452,'y':1506},{'x':1450,'y':1509},{'x':1450,'y':1512},{'x':1450,'y':1513},{'x':1448,'y':1515},{'x':1451,'y':1517},{'x':1452,'y':1519},{'x':1451,'y':1521},{'x':1448,'y':1522},{'x':1445,'y':1523},{'x':1445,'y':1525},{'x':1447,'y':1527},{'x':1448,'y':1528},{'x':1450,'y':1530},{'x':1452,'y':1529},{'x':1454,'y':1529}]
	
	for point in points:
		digXY(point['x'], point['y'])
		
	return True

	
while not Dead():
	dig()



Re: Обкапываем скалу в брите, плавим, крафтим локи, банкуем

Posted: 20.04.2013 22:03
by nah nah
pep8 не?)

Re: Обкапываем скалу в брите, плавим, крафтим локи, банкуем

Posted: 18.06.2020 12:50
by tovarisch
nah nah wrote:pep8 не?)
Да я когда это писал мне 16 было =) Я ни про какие пепы еще не слышал =)