Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var colorm = 44
- var spellbook = '0x0EFA'
- var Robe = '0x1F03'
- var skullcap = '0x1543'
- var TEMPO = '90000'
- var bank = '0x400CE65F' # ID DA PLACA DO BANCO DA CASA
- var backpack = '0x400F2560'
- var Delay = 0
- var corpo = UO.GetSerial('lastcontainer')
- // types
- sub AbrirPorta()
- var i, n
- uo.set('finddistance','4')
- Dim A[2]
- A[1] = 0x06D5;
- A[2] = 0x06A5;
- i = 70
- FOR n=1 TO 2
- uo.findtype(A[n],"-1","ground")
- if uo.findcount() > 0 then
- uo.useobject('finditem')
- wait (i)
- end if
- NEXT
- end sub
- sub FecharPorta()
- var i, n
- uo.set('finddistance','10')
- Dim A[2]
- A[1] = 0x06D6;
- A[2] = 0x06A6;
- i = 70
- FOR n=1 TO 2
- uo.findtype(A[n],"-1","ground")
- if uo.findcount() > 0 then
- uo.useobject('finditem')
- wait (i)
- end if
- NEXT
- end sub
- sub entrar()
- UO.Press(33)
- wait(25)
- UO.Press(33)
- wait(25)
- UO.Press(33)
- wait(25)
- AbrirPorta()
- wait(1000)
- UO.Press(33)
- wait(25)
- UO.Press(33)
- wait(25)
- UO.Press(33)
- wait(1000)
- FecharPorta()
- end sub
- sub guardar()
- UO.FindType('0x0EED','0x0000','my'); GOLD
- uo.moveitem('finditem', '0', '0x4002EBC5')
- wait(2000)
- UO.FindType('0x0EED','0x0000','my'); GOLD
- uo.moveitem('finditem', '0', '0x4002EBC5')
- wait(2000)
- UO.FindType('0x1869','0x0000','my'); orb
- uo.moveitem('finditem', '0', '0x4002EBC5')
- wait(2000)
- UO.FindType('0x0E20','0x0000','my'); BANDS SUJA
- uo.moveitem('finditem', '0', '0x4002EBC4')
- wait(4000)
- if uo.count('0x0E21','0x0000') <= 100 then
- wait(1000)
- uo.useobject('0x4002EBC4')
- wait(1000)
- UO.FindType('0x0E21','0x0000','0x4002EBC4'); BANDS
- uo.moveitem('finditem', '100', 'my')
- wait(200)
- end if
- end sub
- sub Loot6()
- var corpo=UO.GetSerial('lastcontainer');
- While TRUE
- repeat
- sleep(120)
- until corpo <> UO.GetSerial('lastcontainer')
- sleep(200)
- UO.DeleteJournal()
- sleep(100)
- LimpaCorpo2()
- sleep(100)
- wend
- end sub
- sub rcasa()
- uo.warmode(0)
- UO.DeleteJournal()
- uo.recall('0x401F815F','4') # RECALL PARA CASA
- wait(8000)
- if uo.injournal('A magia|falhou|A magia falhou') then
- UO.DeleteJournal()
- uo.warmode(0)
- uo.recall('0x401F815F','4') # RECALL PARA CASA
- wait(8000)
- end if
- if uo.injournal('A magia|falhou|A magia falhou') then
- UO.DeleteJournal()
- uo.warmode(0)
- uo.recall('0x401F815F','4') # RECALL PARA CASA
- wait(8000)
- end if
- endsub
- sub rpoison()
- uo.warmode(0)
- UO.DeleteJournal()
- uo.recall('0x401DB6BF','4') # RECALL PARA CASA
- wait(8000)
- if uo.injournal('A magia|falhou|A magia falhou') then
- UO.DeleteJournal()
- uo.warmode(0)
- uo.recall('0x401DB6BF','4') # RECALL PARA CASA
- wait(8000)
- end if
- if uo.injournal('A magia|falhou|A magia falhou') then
- UO.DeleteJournal()
- uo.warmode(0)
- uo.recall('0x401DB6BF','4') # RECALL PARA CASA
- wait(8000)
- end if
- endsub
- sub Catar()
- wait(30)
- repeat
- UO.FindType('0x1869','0x0000','lastcontainer'); orb
- if uo.findcount() then
- wait(950)
- UO.FindType('0x1869','0x0000','lastcontainer'); orb
- uo.moveitem('finditem', '0', 'my')
- wait(1500)
- end if
- Wait(120)
- Delay = Delay + 1000
- until uo.findcount() == 0 OR Delay > 10000
- Delay = 0
- repeat
- UO.FindType('0x0EED','0x0000','lastcontainer'); orb
- if uo.findcount() then
- wait(950)
- UO.FindType('0x0EED','0x0000','lastcontainer'); orb
- uo.moveitem('finditem', '0', 'my')
- wait(1500)
- end if
- Wait(120)
- Delay = Delay + 1000
- until uo.findcount() == 0 OR Delay > 10000
- Delay = 0
- Wait(20)
- if uo.count('0x0F62','0x0000') == 0 and uo.count('0x0F5C','0x0000') == 0 then
- wait(3000)
- UO.FindType('0x0F62','0x0000','lastcontainer'); spear
- uo.moveitem('finditem', '0', 'my')
- wait(200)
- UO.FindType('0x0F5C','0x0000','lastcontainer'); mace
- uo.moveitem('finditem', '0', 'my')
- wait(200)
- end if
- uo.warmode(0)
- uo.deletejournal()
- end sub
- sub armar()
- uo.usetype('0x0F62'); spear
- uo.usetype('0x0F5C'); mace
- uo.usetype('0x1BC3'); mace
- end sub
- sub start()
- While TRUE
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- checksave()
- uo.warmode(0)
- rpoison()
- armar()
- UO.Exec('exec Autopote')
- wait(100)
- UO.Exec('exec AutoBands')
- wait(100)
- UO.Exec('exec beba')
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- UO.Exec('terminate beba')
- wait(100)
- UO.Exec('terminate Autopote')
- wait(100)
- UO.Exec('terminate AutoBands')
- wait(1000)
- checksave()
- uo.warmode(0)
- rcasa()
- guardar()
- entrar()
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wait(100000)
- if uo.count(spellbook) == 0 then
- wait(500)
- Reconectar()
- wait(500)
- end if
- wend
- end sub
- sub pegar2()
- checksave()
- wait(20)
- UO.FindType('0x0EED','0x0000','lastcontainer'); GOLD
- if uo.findcount() then
- wait(950)
- UO.FindType('0x0EED','0x0000','lastcontainer'); GOLD
- uo.moveitem('finditem', '0', 'my')
- wait(1500)
- end if
- wait(20)
- uo.warmode(0)
- UO.FindType('0x1869','0x0000','lastcontainer'); orb
- if uo.findcount() then
- wait(950)
- UO.FindType('0x1869','0x0000','lastcontainer'); orb
- uo.moveitem('finditem', '0', 'my')
- wait(1500)
- end if
- uo.warmode(0)
- wait(200)
- if uo.count('0x0F62','0x0000') == 0 and uo.count('0x0F5C','0x0000') == 0 then
- wait(3000)
- UO.FindType('0x0F62','0x0000','lastcontainer'); spear
- uo.moveitem('finditem', '0', 'my')
- wait(200)
- UO.FindType('0x0F5C','0x0000','lastcontainer'); mace
- uo.moveitem('finditem', '0', 'my')
- wait(200)
- end if
- uo.warmode(0)
- end sub
- sub MATARBIXO()
- var i, MONSTRO, Target
- Var Delay = 0
- checksave()
- uo.deletejournal()
- uo.warmode(0)
- Dim a[3]
- a[1] = '0x0023'
- a[2] = '0x0021'
- a[3] = '0x0024'
- wait(6)
- UO.Set('finddistance','4')
- wait(6)
- For i=1 to 3
- uo.findtype(a[i], -1, 'ground')
- if uo.findcount() then
- Wait(100)
- uo.warmode(0)
- MONSTRO = uo.getserial('finditem')
- Uo.AddObject('Target',MONSTRO)
- Wait(150)
- uo.attack('Target')
- armar()
- if UO.GetDistance('Target') < 5 then
- uo.exec('exec ir')
- end if
- Wait(20)
- Repeat
- Wait(1000)
- Delay = Delay + 1000
- Until uo.injournal('corpo|Tou see:|items') OR Delay > 15000
- Delay = 0
- uo.deletejournal()
- uo.exec('terminate ir')
- Catar()
- end if
- next
- wait(20)
- If UO.Life < UO.Str Then
- wait(6)
- UO.Set('finddistance','4')
- wait(6)
- For i=1 to 3
- uo.findtype(a[i], -1, 'ground')
- if uo.findcount() then
- Wait(100)
- uo.warmode(0)
- MONSTRO = uo.getserial('finditem')
- Uo.AddObject('Target',MONSTRO)
- Wait(150)
- uo.attack('Target')
- armar()
- if UO.GetDistance('Target') < 15 then
- uo.exec('exec ir')
- end if
- Wait(20)
- Repeat
- Wait(1000)
- Delay = Delay + 1000
- Until uo.injournal('corpo|Tou see:|items') OR Delay > 15000
- Delay = 0
- uo.deletejournal()
- uo.exec('terminate ir')
- Catar()
- end if
- next
- end if
- wait(20)
- If UO.Life < UO.Str Then
- wait(6)
- UO.Set('finddistance','4')
- wait(6)
- For i=1 to 3
- uo.findtype(a[i], -1, 'ground')
- if uo.findcount() then
- Wait (100)
- uo.warmode(0)
- MONSTRO = uo.getserial('finditem')
- Uo.AddObject('Target',MONSTRO)
- Wait (150)
- uo.attack('Target')
- armar()
- if UO.GetDistance('Target') < 15 then
- uo.exec('exec ir')
- end if
- Wait(20)
- Repeat
- Wait(1000)
- Delay = Delay + 1000
- Until uo.injournal('corpo|Tou see:|items') OR Delay > 15000
- Delay = 0
- uo.deletejournal()
- uo.exec('terminate ir')
- Catar()
- end if
- next
- end if
- wait(20)
- If UO.Life < UO.Str Then
- wait(6)
- UO.Set('finddistance','4')
- wait(6)
- For i=1 to 3
- uo.findtype(a[i], -1, 'ground')
- if uo.findcount() then
- Wait(100)
- uo.warmode(0)
- MONSTRO = uo.getserial('finditem')
- Uo.AddObject('Target',MONSTRO)
- Wait(150)
- uo.attack('Target')
- armar()
- if UO.GetDistance('Target') < 15 then
- uo.exec('exec ir')
- end if
- Wait(20)
- Repeat
- Wait(1000)
- Delay = Delay + 1000
- Until uo.injournal('corpo|Tou see:|items') OR Delay > 15000
- Delay = 0
- uo.deletejournal()
- uo.exec('terminate ir')
- Catar()
- end if
- next
- end if
- wait(20)
- If UO.Life < UO.Str Then
- wait(6)
- UO.Set('finddistance','4')
- wait(6)
- For i=1 to 3
- uo.findtype(a[i], -1, 'ground')
- if uo.findcount() then
- Wait(100)
- uo.warmode(0)
- MONSTRO = uo.getserial('finditem')
- Uo.AddObject('Target',MONSTRO)
- Wait(150)
- uo.attack('Target')
- armar()
- if UO.GetDistance('Target') < 15 then
- uo.exec('exec ir')
- end if
- Wait(20)
- Repeat
- Wait(1000)
- Delay = Delay + 1000
- Until uo.injournal('corpo|Tou see:|items') OR Delay > 15000
- Delay = 0
- uo.deletejournal()
- uo.exec('terminate ir')
- Catar()
- end if
- next
- end if
- wait(20)
- end sub
- sub beba()
- Trageto(5500,567,'')
- wait(40)
- MATARBIXO()
- Trageto(5498,565,'')
- wait(40)
- MATARBIXO()
- Trageto(5499,567,'')
- wait(40)
- MATARBIXO()
- Trageto(5494,568,'')
- wait(40)
- MATARBIXO()
- Trageto(5488,568,'')
- wait(40)
- MATARBIXO()
- Trageto(5489,572,'')
- wait(40)
- MATARBIXO()
- Trageto(5487,574,'')
- wait(40)
- MATARBIXO()
- Trageto(5489,576,'')
- wait(40)
- MATARBIXO()
- Trageto(5486,576,'')
- wait(40)
- MATARBIXO()
- Trageto(5484,577,'')
- wait(4000)
- MATARBIXO()
- Trageto(5483,580,'')
- wait(40)
- Trageto(5487,584,'')
- wait(40)
- Trageto(5487,588,'')
- wait(40)
- Trageto(5485,592,'')
- wait(40)
- MATARBIXO()
- Trageto(5489,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5485,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5483,592,'')
- wait(40)
- MATARBIXO()
- Trageto(5481,590,'')
- wait(40)
- MATARBIXO()
- Trageto(5479,592,'')
- wait(40)
- MATARBIXO()
- Trageto(5477,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5475,592,'')
- wait(40)
- MATARBIXO()
- Trageto(5473,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5471,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5469,596,'')
- wait(40)
- MATARBIXO()
- Trageto(5467,598,'')
- wait(40)
- MATARBIXO()
- Trageto(5465,600,'')
- wait(40)
- MATARBIXO()
- Trageto(5467,602,'')
- wait(40)
- MATARBIXO()
- Trageto(5465,604,'')
- wait(40)
- MATARBIXO()
- Trageto(5465,606,'')
- wait(40)
- MATARBIXO()
- Trageto(5465,608,'')
- wait(40)
- MATARBIXO()
- Trageto(5465,610,'')
- wait(40)
- MATARBIXO()
- Trageto(5461,612,'')
- wait(40)
- MATARBIXO()
- Trageto(5458,614,'')
- wait(40)
- MATARBIXO()
- Trageto(5456,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5454,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5452,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5450,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5447,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5445,614,'')
- wait(40)
- MATARBIXO()
- Trageto(5443,617,'')
- wait(40)
- MATARBIXO()
- Trageto(5445,619,'')
- wait(40)
- MATARBIXO()
- Trageto(5445,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5446,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5447,622,'')
- wait(40)
- MATARBIXO()
- Trageto(5445,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5443,626,'')
- wait(40)
- MATARBIXO()
- Trageto(5441,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5439,626,'')
- wait(40)
- MATARBIXO()
- Trageto(5437,626,'')
- wait(40)
- MATARBIXO()
- Trageto(5435,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5433,626,'')
- wait(40)
- MATARBIXO()
- Trageto(5431,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5429,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5426,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5424,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5422,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5420,622,'')
- wait(40)
- MATARBIXO()
- Trageto(5418,622,'')
- wait(40)
- MATARBIXO()
- Trageto(5416,622,'')
- wait(40)
- MATARBIXO()
- Trageto(5414,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,624,'')
- wait(40)
- MATARBIXO()
- Trageto(5408,626,'')
- wait(40)
- MATARBIXO()
- Trageto(5405,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5402,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5400,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5398,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5396,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5404,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5407,628,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,625,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,621,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,619,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,617,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,615,'')
- wait(40)
- MATARBIXO()
- Trageto(5407,611,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,606,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,604,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,602,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,600,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,598,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,596,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,594,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,592,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,590,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,588,'')
- wait(40)
- MATARBIXO()
- Trageto(5408,586,'')
- wait(40)
- MATARBIXO()
- Trageto(5405,586,'')
- wait(40)
- MATARBIXO()
- Trageto(5403,585,'')
- wait(40)
- MATARBIXO()
- Trageto(5401,585,'')
- wait(40)
- MATARBIXO()
- Trageto(5399,585,'')
- wait(40)
- MATARBIXO()
- Trageto(5402,582,'')
- wait(40)
- MATARBIXO()
- Trageto(5403,579,'')
- wait(40)
- MATARBIXO()
- Trageto(5404,577,'')
- wait(40)
- MATARBIXO()
- Trageto(5404,575,'')
- wait(40)
- MATARBIXO()
- Trageto(5404,573,'')
- wait(40)
- MATARBIXO()
- Trageto(5404,570,'')
- wait(40)
- MATARBIXO()
- Trageto(5406,570,'')
- wait(40)
- MATARBIXO()
- Trageto(5408,571,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,570,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,568,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,566,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,564,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,562,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,560,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,558,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,556,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,554,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,552,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,550,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,548,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,546,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,544,'')
- wait(40)
- MATARBIXO()
- Trageto(5413,542,'')
- wait(40)
- MATARBIXO()
- Trageto(5413,540,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,538,'')
- wait(40)
- MATARBIXO()
- Trageto(5411,536,'')
- wait(40)
- MATARBIXO()
- Trageto(5409,533,'')
- wait(40)
- MATARBIXO()
- Trageto(5408,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5410,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5412,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5414,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5416,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5418,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5420,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5422,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5424,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5426,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5428,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5430,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5432,531,'')
- wait(40)
- MATARBIXO()
- Trageto(5434,531,'')
- wait(200)
- MATARBIXO()
- Trageto(5436,533,'')
- wait(40)
- MATARBIXO()
- Trageto(5436,535,'')
- wait(40)
- MATARBIXO()
- Trageto(5436,537,'')
- wait(40)
- MATARBIXO()
- Trageto(5436,539,'')
- wait(40)
- MATARBIXO()
- Trageto(5436,541,'')
- wait(40)
- MATARBIXO()
- Trageto(5436,543,'')
- wait(40)
- MATARBIXO()
- Trageto(5438,545,'')
- wait(40)
- MATARBIXO()
- Trageto(5440,547,'')
- wait(40)
- MATARBIXO()
- Trageto(5444,548,'')
- wait(40)
- MATARBIXO()
- Trageto(5446,548,'')
- wait(40)
- MATARBIXO()
- Trageto(5449,551,'')
- wait(40)
- MATARBIXO()
- Trageto(5452,554,'')
- wait(40)
- MATARBIXO()
- Trageto(5452,557,'')
- wait(40)
- MATARBIXO()
- Trageto(5452,560,'')
- wait(40)
- MATARBIXO()
- Trageto(5455,563,'')
- wait(40)
- MATARBIXO()
- Trageto(5458,566,'')
- wait(40)
- MATARBIXO()
- Trageto(5461,566,'')
- wait(40)
- MATARBIXO()
- Trageto(5463,566,'')
- wait(40)
- MATARBIXO()
- Trageto(5463,569,'')
- wait(40)
- MATARBIXO()
- Trageto(5463,572,'')
- wait(40)
- MATARBIXO()
- Trageto(5466,575,'')
- wait(40)
- MATARBIXO()
- Trageto(5463,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5460,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5457,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5454,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5451,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5447,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5444,578,'')
- wait(40)
- MATARBIXO()
- Trageto(5441,582,'')
- wait(40)
- MATARBIXO()
- Trageto(5438,588,'')
- wait(40)
- MATARBIXO()
- Trageto(5435,588,'')
- wait(40)
- MATARBIXO()
- Trageto(5433,588,'')
- wait(40)
- MATARBIXO()
- Trageto(5430,591,'')
- wait(40)
- MATARBIXO()
- Trageto(5431,593,'')
- wait(40)
- MATARBIXO()
- Trageto(5431,596,'')
- wait(40)
- MATARBIXO()
- end sub
- sub awewe()
- Trageto(555,555)
- end sub
- sub Trageto(x,y,Target)
- var i, StepSucess
- var dx, dy, Exit=0
- While Exit<>1
- If Target<>"" Then
- dx=UO.GetX(Target)-UO.GetX()
- dy=UO.GetY(Target)-UO.GetY()
- If UO.GetDistance(Target)<2 Then
- Exit=1
- Endif
- Else
- dx=x-UO.GetX()
- dy=y-UO.GetY()
- If dx==0 AND dy==0 Then
- Exit=1
- Endif
- Endif
- If dx<>0 AND dy<>0 Then
- If dx>0 AND dy>0 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- Endif
- Endif
- If dx>0 AND dy<0 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40) ;WN - UpArrow
- Endif
- Endif
- Endif
- If dx<0 AND dy>0 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- Endif
- Endif
- Endif
- If dx<0 AND dy<0 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- StepSucess=Go(5,37,40); SW - LeftArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- Endif
- Endif
- Endif
- Endif
- If dx<>0 AND dy==0 Then
- If dx>0 Then
- StepSucess=Go(2,34,40); E - PgDown
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- Endif
- StepSucess=Go(2,34,40); E - PgDown
- Endif
- Endif
- If dx<0 Then
- StepSucess=Go(6,36,40); W - Home
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- StepSucess=Go(6,36,40); W - Home
- Endif
- Endif
- Endif
- If dx==0 AND dy<>0 Then
- If dy>0 Then
- StepSucess=Go(4,35,40); S - End
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- StepSucess=Go(4,35,40); S - End
- Endif
- Endif
- If dy<0 Then
- StepSucess=Go(0,33,40); N - PgUp
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- Endif
- StepSucess=Go(0,33,40); N - PgUp
- Endif
- Endif
- Endif
- Wend
- end sub
- sub Go(dir,key,walkwait)
- var x, y, OldDir
- x=UO.GetX()
- y=UO.GetY()
- OldDir=UO.GetDir()
- If UO.GetDir()<>dir Then
- UO.Press(key)
- wait(walkwait)
- If UO.GetDir()<>dir Then
- CheckLag()
- Endif
- Endif
- UO.Press(key)
- wait(walkwait)
- If x==UO.GetX() AND y==UO.GetY() Then
- CheckLag()
- Endif
- If x==UO.GetX() AND y==UO.GetY() AND OldDir<>UO.GetDir() Then
- UO.Press(key)
- wait(walkwait)
- Endif
- If x==UO.GetX() AND y==UO.GetY() Then
- CheckLag()
- Endif
- If x==UO.GetX() AND y==UO.GetY() Then
- UO.Print("Travou!")
- return -1
- Else
- return 1
- Endif
- end sub
- sub CheckLag()
- UO.DeleteJournal()
- UO.Click('backpack')
- Repeat
- wait(200)
- Until UO.InJournal('backpack')
- end sub
- sub Reconectar()
- Wait (500)
- while uo.count(spellbook) == 0
- Wait (120000)
- UO.LClick (399,331); click na janela do conection lost
- Wait (2000)
- UO.LClick (350,400)
- Wait (2000)
- UO.Say(SENHA)
- Wait (2000)
- UO.LClick (618,457)
- Wait (2000)
- UO.LClick (618,457)
- Wait (2000)
- UO.LClick (321,351); click na janela se senha errada
- Wait (15000)
- uo.useobject(backpack)
- wait(500)
- If UO.InJournal('voce nao|alcanca isto.') Then
- wait(2000)
- uo.LClick(335,316)
- wait(2000)
- UO.Say(CONTRA)
- wait(2000)
- uo.LClick(460,314)
- wait(2000)
- UO.DeleteJournal()
- UO.DeleteJournal()
- wait(500)
- end if
- uo.useobject(backpack)
- wait(6000)
- If UO.InJournal('voce nao|alcanca isto.') Then
- wait(2000)
- uo.LClick(335,316)
- wait(2000)
- UO.Say(CONTRA)
- wait(2000)
- uo.LClick(460,314)
- wait(2000)
- UO.DeleteJournal()
- UO.DeleteJournal()
- wait(500)
- end if
- uo.useobject(backpack)
- wait(6000)
- If UO.InJournal('voce nao|alcanca isto.') Then
- wait(2000)
- uo.LClick(335,316)
- wait(2000)
- UO.Say(CONTRA)
- wait(2000)
- uo.LClick(460,314)
- wait(2000)
- UO.DeleteJournal()
- UO.DeleteJournal()
- wait(500)
- end if
- wait(6000)
- uo.useobject(backpack)
- wait(500)
- If UO.InJournal('Bem vindo|Login anterior') Then
- wait(500)
- UO.DeleteJournal()
- UO.DeleteJournal()
- end if
- wend
- end sub
- sub AutoBands()
- Var Delay = 0
- While TRUE
- UO.Press(200)
- If UO.Count('0x0E21') > 0 Then
- Wait(20)
- if NOT uo.Poisoned('self') then
- If UO.Life < UO.Str Then
- Wait(15)
- uo.deletejournal()
- UO.BandageSelf()
- Repeat
- Wait(100)
- Delay = Delay + 100
- Until UO.InJournal('hits.') == 1 OR UO.InJournal('aplicar a bandage.') == 1 OR UO.InJournal('Auto target cancelled')==1 OR UO.InJournal('target info')==1 OR Delay > 4999
- Delay = 0
- End If
- end if
- Else
- UO.CharPrint('0x0790','VOCE NAO TEM BANDAGENS.')
- Wait(10000)
- End If
- Wend
- EndSub
- sub AutoPote()
- While TRUE
- UO.Press(200)
- wait(300)
- If UO.Count('0x0F0E','0x00FF') > 0 Then
- If UO.Life < 38 then
- uo.deletejournal()
- UO.UseType("0x0F0E","0x00FF")
- wait(1100)
- end if
- Else
- UO.CharPrint('0x0790','VOCE NAO TEM HEAL.')
- Wait(15000)
- End If
- Wend
- EndSub
- sub ddd(x,y)
- dim key[8]
- key[0] = '383933'
- key[1] = '383739'
- key[2] = '394034'
- key[3] = '373840'
- key[4] = '403735'
- key[5] = '403937'
- key[6] = '373836'
- key[7] = '394038'
- var myX, myY, t=0, d, d2, z, m=0, mydir
- repeat
- wait(15)
- myX=uo.getX();
- myY=uo.getY();
- if x==myX then
- if y>myY then
- uo.Press(35)
- wait(15)
- endif
- if y<myY then
- uo.Press(33)
- wait(15)
- endif
- else
- if x<myX then
- if y==myY then
- uo.Press(36)
- wait(15)
- else
- if y<myY then
- uo.Press(38)
- wait(15)
- endif
- if y>myY then
- uo.Press(37)
- wait(15)
- endif
- endif
- endif
- if x>myX then
- if y==myY then
- uo.Press(34)
- wait(15)
- else
- if y<myY then
- uo.Press(39)
- wait(15)
- endif
- if y>myY then
- uo.Press(40)
- wait(15)
- endif
- endif
- endif
- endif
- if uo.getx()==myX and uo.gety()==myY then
- if t==4 then
- t=0
- wait(15)
- mydir=uo.getdir()
- d=val(MID(key[mydir],0,2))
- d2=val(MID(key[mydir],2,2))
- for z=1 to 4
- uo.press(d)
- next
- if uo.getx()==myX and uo.gety()==myY then
- for z=1 to 3
- uo.press(d2)
- next
- endif
- else
- t=t+1
- endif
- endif
- wait(70)
- until (Num(x-uo.getx())<=1 and Num(y-uo.gety())<=2) or (Num(x-uo.getx())<=2 and Num(y-uo.gety())<=1)
- end sub
- sub Num(num)
- if num>=0 then
- return num
- else
- return num*(-1)
- end if
- end sub
- sub status()
- var x, l, uid, n=uo.getname('self')
- if uo.injournal(n) then
- uo.deletejournal(n)
- uo.findtype('0x1BDD','0x0000','backpack')
- x=uo.getquantity('finditem')+val(uo.getglobal('logs'))
- uo.charprint('0x0047','..foi ao banco '+str(val(uo.getglobal('bank')))+' vezes.')
- uo.charprint('0x0047','..cortou '+str(val(uo.getglobal('arvores')))+' arvores.')
- uo.charprint('0x0047','..tem '+str(x)+' logs normais.')
- if uo.skillval('Lumberjacking',1) < 1000 then
- uo.print('Voce esta com '+ str(uo.skillval('Lumberjacking',1)) + ' de LumberJacking.')
- endif
- endif
- if uo.injournal('backpack') then
- uid=uo.getserial('backpack')
- showlogs(uid)
- uo.deletejournal('backpack')
- endif
- endsub
- sub msg.log()
- var l, c, n
- uo.ignorereset()
- uo.deletejournal('logs')
- uo.findtype('0x0EED','-1','backpack')
- l=uo.findcount('finditem')-1
- while l>0
- uo.ignore('finditem')
- uo.findtype('0x0EED','-1','backpack')
- l=l-1
- wend
- uo.findtype('0x0EED','-1','backpack')
- uo.click('finditem')
- repeat
- wait(1)
- until uo.injournal('log')
- c=uo.getcolor('finditem')
- if colorm<>1 then
- c=colorm
- endif
- n=uo.getname('finditem')
- uo.charprint( c,'Voce tem: '+n )
- uo.ignorereset()
- endsub
- sub showlogs(uid)
- var l, n
- if not uid==uo.getserial('backpack') then
- uo.exec('textclear')
- endif
- uo.ignorereset()
- uo.deletejournal('logs')
- uo.findtype('0x0EED','-1',uid)
- l=uo.findcount('finditem')
- while l>0
- uo.deletejournal('logs')
- uo.click('finditem')
- repeat
- wait(1)
- until uo.injournal('log')
- n=uo.getname('finditem')
- uo.print('Voce tem: '+n)
- if uid==uo.getserial('backpack') then
- uo.exec('showjournal 1')
- endif
- uo.ignore('finditem')
- uo.findtype('0x0EED','-1',uid)
- l=l-1
- wend
- uo.ignorereset()
- endsub
- sub checksave()
- if uo.injournal('World Save em 10 segundos...') then
- repeat
- wait(500)
- until uo.injournal('Processo completo em')
- uo.deletejournal()
- endif
- endsub
- sub bibibi()
- UO.Press(200)
- Repeat
- Wait(120)
- Delay = Delay + 100
- Until corpo <> UO.GetSerial('lastcontainer') OR Delay > 12000
- Delay = 0
- end sub
- sub ir()
- WalkN(0,0,'Target')
- end sub
- sub WalkN(x, y, Target)
- var i, StepSucess
- var dx, dy, Exit=0
- While Exit<>1 and UO.GetDistance(Target)>1
- If Target<>"" Then
- dx=UO.GetX(Target)-UO.GetX()
- dy=UO.GetY(Target)-UO.GetY()
- ;UO.Print("Target locked!")
- If UO.GetDistance(Target)<2 Then
- Exit=1
- Endif
- Else
- dx=x-UO.GetX()
- dy=y-UO.GetY()
- If dx==0 AND dy==0 Then
- Exit=1
- Endif
- Endif
- If dx<>0 AND dy<>0 Then
- If dx>0 AND dy>0 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- Endif
- Endif
- If dx>0 AND dy<0 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- Endif
- Endif
- Endif
- If dx<0 AND dy>0 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- Endif
- Endif
- Endif
- If dx<0 AND dy<0 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- StepSucess=Go(5,37,40); SW - LeftArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- Endif
- Endif
- Endif
- Endif
- If dx<>0 AND dy==0 Then
- If dx>0 Then
- StepSucess=Go(2,34,40); E - PgDown
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- Endif
- StepSucess=Go(2,34,40); E - PgDown
- Endif
- Endif
- If dx<0 Then
- StepSucess=Go(6,36,40); W - Home
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- StepSucess=Go(6,36,40); W - Home
- Endif
- Endif
- Endif
- If dx==0 AND dy<>0 Then
- If dy>0 Then
- StepSucess=Go(4,35,40); S - End
- If StepSucess==-1 Then
- StepSucess=Go(3,40,40); SE - DownArrow
- If StepSucess==-1 Then
- StepSucess=Go(5,37,40); SW - LeftArrow
- Endif
- StepSucess=Go(4,35,40); S - End
- Endif
- Endif
- If dy<0 Then
- StepSucess=Go(0,33,40); N - PgUp
- If StepSucess==-1 Then
- StepSucess=Go(1,39,40); NE - RightArrow
- If StepSucess==-1 Then
- StepSucess=Go(7,38,40); WN - UpArrow
- Endif
- StepSucess=Go(0,33,40); N - PgUp
- Endif
- Endif
- Endif
- Wend
- end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement