Kód: Vybrat vše
sub TamingA()
UO.exec('addobject zvire');
while UO.Targeting()
wait(100)
wend
UO.DeleteJournal()
repeat
UO.UseType(0x13F4)
UO.WaitTargetObject('zvire')
wait(9000)
until UO.injournal('byl tamnut a opet propusten')
end sub
sub Taming()
var x, pokus, cas
## target na tamovany objekt ##
UO.Print("Zacinam tamovat")
UO.Sound(81)
UO.AddObject('zvire')
while UO.Targeting()
wait(100)
wend
## vypnuti trackingu ##
UO.WarMode(1)
wait(250)
UO.WarMode(0)
## nastaveni promenych ##
pokus = 0
cas = 0
UO.DeleteJournal()
repeat
pokus = pokus + 1
## vypis promenych v prubehu ##
UO.Print("TAMUJEME: "+UO.GetName('zvire'))
UO.Print("Pokus cislo: "+ str(pokus))
UO.Print("Trva nam to: "+ str(cas) +" sekund")
UO.DeleteJournal()
## tamovani ##
UO.WaitTargetObject('zvire')
UO.UseType('0x13F4','0x096D')
repeat
## pocitani casu ##
if NOT UO.InJournal('Not tamable|nedokazes|tamnut|not able|Too far|Nemuzes|Animal already|nabita|Cannot learn|moc daleko|Nedokazes|shrinknuto') then
wait(500)
cas = cas + 1
endif
wait(500)
until UO.InJournal('nezdarilo|nedokazes|failed|Not tamable|tamnut|not able|Too far|Nemuzes|Animal already|Targeting Cancelled|nabita|Cannot learn|moc daleko|Nedokazes|shrinknuto')
## sebrani shrinknuteho zviratka do batohu ##
If UO.InJournal('byl tamnut') and NOT UO.InJournal('propusten') then
UO.Sound(253)
for x = 8382 to 8503
If UO.CountGround(UO.Int2Hex(x))>0 then
UO.Waittargetground(UO.Int2Hex(x))
UO.Grab()
endif
wait(5)
next
endif
## samonabiti hole ##
If UO.InJournal('byl tamnut|shrinknuto') and NOT UO.InJournal('propusten') then
If UO.Count('0x0F09','0x045E') > 0 then
UO.WaitTargetType('0x0F09','0x045E')
UO.UseType('0x13F4')
endif
If UO.Count('0x0F09','0x045E') == 0 and UO.Count('0x1843','0x0724') >= 1 then
UO.WaitTargetType('0x1843','0x0724')
UO.UseType('0x13F4')
endif
If UO.Count('0x0F09','0x045E') == 0 and UO.Count('0x1843','0x0724') == 0 then
UO.Print('### Hul nebyla nabita! ###')
endif
endif
until UO.InJournal('Not tamable|nedokazes|tamnut|not able|Too far|Nemuzes|Animal already|nabita|Cannot learn|moc daleko|Nedokazes|shrinknuto')
## hiddnuti po tamnuti ##
# volitelne - pro aktivaci odmazat ; pred radky
# nastaveno na hidd jen u full tamingu
;If UO.InJournal('byl tamnut') and UO.InJournal('nabita') then
; while NOT UO.Hidden()
; UO.Print("Schovavam se")
; UO.UseSkill('Hiding')
; repeat
; wait(100)
; until UO.InJournal("You have hidden|You can't seem to hide|preoccupied")
; If UO.InJournal("preoccupied") then
; uo.warMode(1)
; wait(250)
; uo.warMode(0)
; endIf
; wEnd
;endif
## konecny vypis promenych po skonceni tamovani ##
If UO.InJournal('byl tamnut') then
If UO.InJournal('propusten') then
UO.Sound(31)
endif
UO.Print("ZVIRATKO TAMNUTO")
UO.Print("Tamnuto na: "+ str(pokus) +" pokusu")
UO.Print("Tamnuti trvalo: "+ str(cas) +" sekund")
If UO.InJournal('advance') then
UO.Sound(40)
endif
endif
end sub
###########################
sub enemypoisn()
UO.Exec("warmode 0")
wait(500)
UO.Exec("warmode 1")
uo.usetype('0x1837');
;UO.WaitTargetLast()
UO.WaitTargetObject('enemy')
end sub
#################################
sub arms_lore_s_vyberom()
var zbran
uo.print("Zadej predmet, ktory chces skumat.")
uo.addObject('zbran')
while UO.Targeting()
wait(100)
wend
while NOT UO.Dead()
UO.UseSkill('Arms Lore','zbran')
wait(4500)
wend
end sub
#################################
sub klamak()
var pocetPokusu = 0
repeat
pocetPokusu = pocetPokusu+1
uo.deleteJournal()
UO.Exec("warmode 0")
wait(250)
UO.Exec("warmode 1")
wait(250)
UO.UseType("0x2103")
wait(500)
until (not uo.injournal("You can't unshrink")) or (pocetPokusu>=2)
end sub
#################################
sub TBGatePaladin()
var gumpSerial = "0x0016f9cb" # zde doplnte vasi hodnotu!
var TBID = "0x40066282" # zde doplnte vasi hodnotu!
UO.OnGump(gumpSerial, "0x00000198", "2", "nochecks", "noentryes")
; serial gumpID buttID checkboxy textfieldy
UO.Recall(TBID,"4")
end sub
########################
sub music()
var nastroj
uo.print("Na co chces hrat?")
uo.addObject('nastroj')
While UO.Targeting()
wait(100)
wend
while NOT UO.Dead()
uo.useobject('nastroj')
wait(5000)
wend
end sub
#########################
sub jumpToGate()
uo.usefromground("0x373A")
end sub
############################
sub megaloot()
uo.usefromground("0x2006,0x0000")
wait(100)
var n
var MaxID = 68
var ALastContainer
var WhereLoot
var Pojistka
var cas
ALastContainer = UO.GetSerial("lastcontainer")
DIM A[68]
A[1] = 0x2121 ;kun0x2121
A[2] = 0x2136 ;zost
A[3] = 0x20F6 ;lama
A[4] = 0x2137 ;Orn
A[5] = 0x2135 ;Oclock
A[6] = 0x1BC4 ;Order shield
A[7] = 0x143E ;Halbert
A[8] = 0x143B ;Maul
A[9] = 0x0F5C ;Mace
A[10] = 0x13B1 ;Bow
A[11] = 0x13B9 ;Viking Sword
A[12] = 0x1406 ;War Mace
A[13] = 0x1438 ;War Hammer
A[14] = 0x0F62 ;Spear
A[15] = 0x13B5 ;Scimitar
A[16] = 0x1404 ;War Fork
A[17] = 0x13FE ;Katana
A[18] = 0x13FA ;Large Battle Axe
A[19] = 0x0E87 ;Pitchfork
A[20] = 0x0F49 ;Axe
A[21] = 0x1402 ;Short Spear
A[22] = 0x1400 ;Kryss
A[23] = 0x0F45 ;Executioner´s Axe
A[24] = 0x1B76 ;Heater
A[25] = 0x0F4B ;Double Axe
A[26] = 0x108A ;Rexlex Ring
A[27] = 0x1F03 ;Roby
A[28] = 0x1413 ;Platemail Gorget
A[29] = 0x1410 ;Platemail Arms
A[30] = 0x1414 ;Platemail Gauntlets
A[31] = 0x1415 ;Platemail
A[32] = 0x1411 ;Platemail Legs
A[33] = 0x13C4 ;Chainmail Tunic
A[34] = 0x13C3 ;Chainmail Leggings
A[35] = 0x13BB ;Chainmail Coif
A[36] = 0x13EB ;Ringmail Gloves
A[37] = 0x13EF ;Ringmail Sleeves
A[38] = 0x144F ;Bone Tunic
A[39] = 0x1450 ;Bone Gloves
A[40] = 0x1451 ;Bone Helmet
A[41] = 0x1452 ;Bone Leggins
A[42] = 0x144E ;Bone Arms
A[43] = 0x13CA ;Leather Tunic
A[44] = 0x13C9 ;Leather Leggings
A[45] = 0x13D4 ;Studded Sleeves
A[46] = 0x13D5 ;Studded Gloves
A[47] = 0x1711 ;Thigh Boots
A[48] = 0x0E76 ;bag
A[49] = 0x14EB ; Treassure Map
A[50] = 0x0eed ;gold piece
A[51] = 0x0F86 ; MR
A[52] = 0x0F8D ; SS
A[53] = 0x0F8C ; SA
A[54] = 0x0F85 ; GI
A[55] = 0x0F7B ; BM
A[56] = 0x0F88 ; NS
A[57] = 0x0F84 ; GA
A[58] = 0x0F7A ; BP
A[59] = 0x0F87 ; Eyes of newt
A[60] = 0x14EB ; Treassure Map
A[61] = 0x1F5F ; KVF svitky
A[62] = 0x108A ; reflex
A[63] = 0x0E79 ;poklady
A[64] = 0x1F14 ;runy
A[65] = 0x0F09 ;Lahvicky
A[66] = 0x0F3F ;Sipy
A[67] = 0x1BFB ;Sipky
A[68] = 0x1BD1 ;Peri
UO.setCatchBag ('LootBag') ;(nepovinný definovaný objekt)
;wait(1000)
UO.findType(A[1],"-1",'ground')
WhereLoot = UO.getQuantity('finditem')
for n=1 TO MaxID
if WhereLoot == 0 then ;na zemi nejsou penize
uo.findType(A[n],"-1",ALastContainer)
while uo.findcount()
UO.grab(0,"finditem")
cas = 0
UO.deleteJournal()
wait(2000) ;sil break
repeat
cas = cas + 1
wait(100)
until (UO.inJournal('You put the')) or (cas==5)
uo.findType(A[n],"-1",ALastContainer)
wend
else
uo.findType(A[n],"-1",'ground')
Pojistka=uo.findCount()
while (uo.findCount()) and (Pojistka <> 0)
UO.grab(0,"finditem")
cas=0
UO.deleteJournal()
wait(400) ; sil break
repeat
cas=cas+1
wait(100)
until (UO.inJournal('You put the')) or (cas==10)
uo.findType(A[n],"-1",'ground')
if Pojistka == uo.findCount() then
UO.print("Item No."+STR(n)+" NOT grab !!!")
Pojistka=0
endif
wend
endif
Next
UO.unSetCatchBag ('LootBag')
end sub
#################################
sub loot()
var n
var MaxID = 5
var ALastContainer
var WhereLoot
var Pojistka
var cas
ALastContainer = UO.GetSerial("lastcontainer")
DIM A[5]
A[4] = 0x1BFB ;sipky
A[1] = 0x0E76 ;Bag
A[5] = 0x0E21 ;bandage
A[3] = 0x0F3F ;sipy
A[2] = 0x1F13 ;skillpoint
UO.setCatchBag ('LootBag') ;(nepovinný definovaný objekt)
;wait(1000)
UO.findType(A[1],"-1",'ground')
WhereLoot = UO.getQuantity('finditem')
for n=1 TO MaxID
if WhereLoot == 0 then ;na zemi nejsou penize
uo.findType(A[n],"-1",ALastContainer)
while uo.findcount()
UO.grab(0,"finditem")
cas = 0
UO.deleteJournal()
wait(500) ;sil break
repeat
cas = cas + 1
wait(100)
until (UO.inJournal('You put the')) or (cas==5)
uo.findType(A[n],"-1",ALastContainer)
wend
else
uo.findType(A[n],"-1",'ground')
Pojistka=uo.findCount()
while (uo.findCount()) and (Pojistka <> 0)
UO.grab(0,"finditem")
cas=0
UO.deleteJournal()
wait(400) ; sil break
repeat
cas=cas+1
wait(100)
until (UO.inJournal('You put the')) or (cas==10)
uo.findType(A[n],"-1",'ground')
if Pojistka == uo.findCount() then
UO.print("Item No."+STR(n)+" NOT grab !!!")
Pojistka=0
endif
wend
endif
Next
UO.unSetCatchBag ('LootBag')
end sub
##############################
sub hiding()
UO.WarMode(0)
UO.exec("useskill 'Hiding'")
end sub
##############################
sub detect()
UO.useskill('Detect Hidden')
end sub
####################
sub detect_hidden()
uo.warmode(0)
while 1
uo.deletejournal()
uo.useskill('Detect Hidden')
repeat
wait(200)
until uo.injournal('hidden|find')
wait(1000)
wend
end sub
####################
# Rvani hlasek
####################
Sub All_kill_enemy()
Uo.say('All Kill')
UO.WaitTargetObject('enemy')
end sub
Sub All_kill_self()
Uo.say('All Kill')
UO.WaitTargetObject('self')
end sub
Sub kill()
Uo.say('Kill')
UO.WaitTargetObject('enemy')
end sub
Sub come()
Uo.say('All Come')
end sub
Sub stay()
Uo.say('All Stay')
end sub
Sub go()
Uo.say('All Go')
end sub
Sub Rang_kill()
Uo.say('Grizzly Bear Kill')
UO.WaitTargetObject('enemy')
wait (500)
Uo.say('Brown Bear Kill')
UO.WaitTargetObject('enemy')
end sub
####################
# MR vypiti
####################
sub MR() ;zahajeni scriptu
UO.UseType('0x0F09','0x0005');pouzije lahvicku MR
wait (100)
UO.Print("Zbyva: "+str(UO.Count("0x0F09,0x0005"))+" MR.")
end sub ;ukonci script
###########################
sub TMR() ;zahajeni scriptu
UO.UseType('0x0F09','0x0003');pouzije lahvicku MR
wait (100)
UO.Print("Zbyva: "+str(UO.Count("0x0F09,0x0005"))+" MR.")
end sub ;ukonci script
########################
sub heal_self()
UO.UseType("0x1F31", "0x0000")
UO.WaitTargetSelf()
end sub
sub port()
UO.UseType("0x1F42", "0x0000")
end sub
##########################
# kouzla z hlavy
##########################
sub sipka_na_sebe() # sipka na sebe
UO.Cast('Arrow','self')
end sub
sub sipka() # sipka na sebe
UO.Cast('Arrow')
end sub
sub sipka_last() # hodi sipku na 'enemy'
; UO.DeleteJournal()
UO.Cast("Magic Arrow",'enemy')
; UO.WaitTargetLast()
; UO.WaitTargetObject('enemy')
end sub
sub port_hlava() # port + target
; UO.DeleteJournal()
UO.Cast("Teleport")
end sub
sub para_last() # hodi paru na 'enemy'
; UO.DeleteJournal()
UO.Cast("Paralyze",'enemy')
; UO.WaitTargetLast()
; UO.WaitTargetObject('enemy')
end sub
sub para() # para + target
; UO.DeleteJournal()
UO.Cast("Paralyze")
; UO.WaitTargetLast()
; UO.WaitTargetObject('enemy')
end sub
sub harm_last() # hodi Harm na 'enemy'
; UO.DeleteJournal()
UO.Cast("Harm",'enemy')
; UO.WaitTargetLast()
; UO.WaitTargetObject('enemy')
end sub
sub POG_last() # hodi POG na 'enemy'
; UO.DeleteJournal()
UO.Cast("Lightning",'enemy')
; UO.WaitTargetLast()
; UO.WaitTargetObject('enemy')
end sub
##############################
sub Chicken()
UO.cast("Summ. Creature")
UO.Exec("waitmenu 'What do you want to summon ?' 'Chicken' ")
end sub
sub Grizzly()
UO.cast("Summ. Creature")
UO.Exec("waitmenu 'What do you want to summon ?' 'Grizzly Bear' ")
end sub
sub BB()
UO.cast("Summ. Creature")
UO.Exec("waitmenu 'What do you want to summon ?' 'Brown Bear' ")
end sub
sub Rabid()
UO.cast("Summ. Creature")
UO.Exec("waitmenu 'What do you want to summon ?' 'Rabid Dog' ")
end sub
sub Horse()
UO.cast("Summ. Creature")
UO.Exec("waitmenu 'What do you want to summon ?' 'Horse' ")
end sub
##########################
# kouzla svitek
##########################
sub resurrection()
if UO.Waiting() then
UO.CancelTarget()
endif
if UO.Count('0x1F67') then
UO.UseType('0x1F67')
else
UO.Cast('Resurrection')
endif
end sub
sub port()
UO.UseType("0x1F42", "0x0000")
end sub
sub para_enemy()
UO.UseType("0x1F52", "0x0000")
Uo.waittargetobject('enemy')
end sub
sub pog()
UO.UseType("0x1F4A", "0x0000")
Uo.waittargetobject('enemy')
end sub
#############################
sub GH() ;zahajeni scriptu
UO.UseType(0x0F0C,0x0000)
Wait(500)
if UO.Count(0x0F0C,0x0000) then
UO.UseType(0x0F0C,0x0000) ;Potion Greater Heal
Wait(500)
UO.Print(STR(UO.Count(0x0F0C,0x0000))+' potion (Greater Heal)')
else
UO.Print('No potion (Greater Heal)!')
endif
end sub
##########################
sub GS() ;zahajeni scriptu
if UO.Count(0x0F09,0x0000) then
UO.UseType(0x0F09,0x0000) ;Potion Greater Strenght
Wait(500)
UO.Print(STR(UO.Count(0x0F09,0x0000))+' potion (Greater Strenght)')
else
UO.Print('No potion (Greater Strenght)!')
endif
end sub
##########################
sub TR() ;zahajeni scriptu
UO.UseType(0x0F0B)
if UO.Count(0x0F0B,0x0000) then
UO.UseType(0x0F0B,0x0000) ;Potion total_ref
Wait(500)
UO.Print(STR(UO.Count(0x0F0B,0x0000))+' potion (total_ref)')
else
UO.Print('No potion (Total ref)!')
endif
end sub
##########################
sub GC() ;zahajeni scriptu
UO.UseType('0x0F07','0x0000');pouzije lahvicku GC
wait (100)
UO.Print("Zbyva: "+str(UO.Count("0x0F0B,0x0000"))+" GC.")
end sub ;ukonci script
###########################
sub Invis() ;zahajeni scriptu
UO.UseType('0x0F09','0x0B77');pouzije lahvicku Invis
wait (100)
UO.Print("Zbyva: "+str(UO.Count("0x0F0B,0x0000"))+" Invis.")
end sub ;ukonci script
###########################
sub salat()
uo.usetype('0x09EC')
end sub
############################
sub Kuch()
UO.usetype("0x0F51","0x0B80")
while UO.Targeting()
wait(100)
wend
end sub
sub Kuchobyc()
UO.usetype("0x0F51","0x0000")
while UO.Targeting()
wait(100)
wend
end sub
sub Smik()
UO.usetype("0x0F9E")
while UO.Targeting()
wait(100)
wend
end sub
##########################
sub Prelivani()
UO.Print("Zamer kad z ktere budeme prelivat")
UO.AddObject("kad")
WHILE UO.Targeting()
wait(100)
WEND
var prazdna_flaska = "0x0F0E"
var plna_kad = "0x1843"
var barva = UO.GetColor("kad")
; prokliknuti war modu
uo.warmode(1)
uo.warmode(0)
while UO.Count(prazdna_flaska) AND UO.Count(plna_kad, barva)
UO.DeleteJournal()
UO.WaitTargetType(prazdna_flaska)
UO.UseType(plna_kad, barva)
repeat
wait(100)
until UO.InJournal("You put")
wait(500)
wend
end sub
###########################
sub tracking_animals()
uo.useskill ('Tracking')
UO.WaitMenu ('Tracking','Animals')
end sub
sub tracking_anything()
uo.useskill ('Tracking')
UO.WaitMenu ('Tracking','Anything that moves')
end sub
sub tracking_players()
uo.useskill ('Tracking')
UO.WaitMenu ('Tracking','Players')
end sub
sub tracking_monsters()
uo.useskill ('Tracking')
UO.WaitMenu ('Tracking','Monsters')
end sub
sub tracking_train()
while 1
uo.deletejournal()
uo.useskill ('Tracking')
UO.WaitMenu ('Tracking','Monsters')
repeat
wait(100)
until UO.InJournal("You see no")
wait(800)
wend
end sub
##########################
sub heal()
uo.usetype('0x0E21')
uo.waittargetself()
end sub
####################
sub DoleceniStargetem()
UO.exec('addobject pokus');
while UO.Targeting()
wait(100)
wend
UO.DeleteJournal()
repeat
UO.UseType(0x0e21)
UO.WaitTargetObject('pokus')
wait(3000)
until UO.injournal('Chces vytvorit mumii?')
end sub
#########################
sub Reflexring()
UO.UseObject('reflex')
wait (100)
UO.RemoveRing()
end sub
sub GReflexring()
UO.UseObject('greflex')
wait (100)
UO.RemoveRing()
end sub
sub Srdicko()
UO.UseType('0x136C,0x0B89')
end sub
sub Bracelet()
UO.UseType('0x1086,0x0000')
end sub
sub Gold()
Uo.UseObject("gold")
wait (100)
UO.RemoveRing()
end sub
sub Titan()
UO.UseObject("titan")
wait (100)
UO.UseObject('krk')
end sub
sub Alabastr()
UO.UseObject("alabastr")
wait (100)
UO.UseObject('krk')
end sub
sub ryba()
UO.UseType('0x09CD,0x0850')
end sub
#############################
sub ref_nula()
var i, ii, j, pauza = 500
uo.msg("bank")
wait(pauza+pauza)
var batohNaRegy = "0x4000540C"
uo.findtype('-1','-1',batohNaRegy)
if not uo.findcount() then
uo.useObject(batohNaRegy)
wait(pauza)
endif
var batohNaRegy2 = "0x4022BBC8"
uo.findtype('-1','-1',batohNaRegy2)
if not uo.findcount() then
uo.useObject(batohNaRegy2)
wait(pauza)
endif
var batohNaSvitky = "0x4020669C"
uo.findtype('-1','-1',batohNaSvitky)
if not uo.findcount() then
uo.useObject(batohNaSvitky)
wait(pauza)
endif
var batohNaPoitony = "0x40119821"
uo.findtype('-1','-1',batohNaPoitony)
if not uo.findcount() then
uo.useObject(batohNaPoitony)
wait(pauza)
endif
var batohNaSpotrebak = "0x400D7C39"
uo.findtype('-1','-1',batohNaSpotrebak)
if not uo.findcount() then
uo.useObject(batohNaSpotrebak)
wait(pauza)
endif
var batohnaLoot = "0x4006BFF6"
uo.findtype('-1','-1',batohNaLoot)
if not uo.findcount() then
uo.useObject(batohnaLoot)
wait(pauza)
endif
var POLOZEK = 58
dim typ [58]
dim barva [58]
dim pocet [58]
dim batoh [58]
dim nazev [58]
dim potion[58]
dim barva2[58]
for i = 1 to POLOZEK
barva [i] = "0x0000"
barva2[i] = "0x0000"
potion[i] = 0
next
nazev[1] = "Spider Silk"
typ [1] = "0x0F8D"
pocet[1] = 0
batoh[1] = batohNaRegy
nazev[2] = "Sulphur Ash"
typ [2] = "0x0F8C"
pocet[2] = 0
batoh[2] = batohNaRegy
nazev[3] = "Black Pearl"
typ [3] = "0x0F7A"
pocet[3] = 0
batoh[3] = batohNaRegy
nazev[4] = "Nightshade"
typ [4] = "0x0F88"
pocet[4] = 0
batoh[4] = batohNaRegy
nazev[5] = "Blood Moss"
typ [5] = "0x0F7B"
pocet[5] = 0
batoh[5] = batohNaRegy
nazev[6] = "Garlic"
typ [6] = "0x0F84"
pocet[6] = 0
batoh[6] = batohNaRegy
nazev[7] = "Ginseng"
typ [7] = "0x0F85"
pocet[7] = 0
batoh[7] = batohNaRegy
nazev[8] = "Mandrake Root"
typ [8] = "0x0F86"
pocet[8] = 0
batoh[8] = batohNaRegy
nazev[9] = "EoN"
typ [9] = "0x0F87"
pocet[9] = 0
batoh[9] = batohNaRegy
nazev[10] = "Blue Eye"
typ [10] = "0x0F87"
pocet[10] = 0
batoh[10] = batohNaRegy
barva[10] = "0x0005"
nazev[11] = "Pumice"
typ [11] = "0x0F8B"
pocet[11] = 0
batoh[11] = batohNaRegy2
nazev[12] = "Bat Wings"
typ [12] = "0x0F78"
pocet[12] = 0
batoh[12] = batohNaRegy2
nazev[13] = "Brimstone"
typ [13] = "0x0F7F"
pocet[13] = 0
batoh[13] = batohNaRegy2
nazev[14] = "Serpent Scales"
typ [14] = "0x0F8E"
pocet[14] = 0
batoh[14] = batohNaRegy2
nazev[15] = "Wyrms Hearth"
typ [15] = "0x0F91"
pocet[15] = 0
batoh[15] = batohNaRegy2
nazev[16] = "Blood Spawn"
typ [16] = "0x0F7C"
pocet[16] = 0
batoh[16] = batohNaRegy2
nazev[17] = "Blackmoor"
typ [17] = "0x0F79"
pocet[17] = 0
batoh[17] = batohNaRegy2
nazev[18] = "Executioners Cap"
typ [18] = "0x0F83"
pocet[18] = 0
batoh[18] = batohNaRegy2
nazev[19] = "Obsidian"
typ [19] = "0x0F89"
pocet[19] = 0
batoh[19] = batohNaRegy2
nazev[20] = "Vial Of Blood"
typ [20] = "0x0F7D"
pocet[20] = 0
batoh[20] = batohNaRegy2
nazev[21] = "Bones"
typ [21] = "0x0F7E"
pocet[21] = 0
batoh[21] = batohNaRegy2
nazev[22] = "Daemon Bones"
typ [22] = "0x0F80"
pocet[22] = 0
batoh[22] = batohNaRegy2
nazev[23] = "Fertile Dirt"
typ [23] = "0x0F81"
pocet[23] = 0
batoh[23] = batohNaRegy2
nazev[24] = "Volcanic Ash"
typ [24] = "0x0F8F"
pocet[24] = 0
batoh[24] = batohNaRegy2
nazev[25] = "Prachy"
typ [25] = "0x0EED"
pocet[25] = 0
batoh[25] = batohNaLoot
nazev[26] = "Krvave bandy 1"
typ [26] = "0x0E20"
pocet[26] = 0
batoh[26] = batohNaSpotrebak
nazev[27]= "Krvave bandy 2"
typ [27] = "0x0E22"
pocet[27] = 0
batoh[27] = batohNaSpotrebak
nazev[28] = "Ciste bandy"
typ [28] = "0x0E21"
pocet[28] = 0
batoh[28] = batohNaSpotrebak
nazev[29] = "Sipy"
typ [29] = "0x0F3F"
pocet[29] = 0
batoh[29] = batohNaSpotrebak
nazev[30] = "Sipky"
typ [30] = "0x1BFB"
pocet[30] = 0
batoh[30] = batohNaSpotrebak
nazev[31] = "Peri"
typ [31] = "0x1BD1"
pocet[31] = 0
batoh[31] = batohNaSpotrebak
nazev[32] = "Salaty"
typ [32] = "0x09EC"
pocet[32] = 0
batoh[32] = batohNaSpotrebak
nazev[33] = "Svitky Blesk"
typ [33] = "0x1F4A"
pocet[33] = 0
batoh[33] = batohNaSvitky
nazev[34] = "Svitky RESS"
typ [34] = "0x1F67"
pocet[34] = 0
batoh[34] = batohNaSvitky
nazev[35] = "Svitky Teleport"
typ [35] = "0x1F42"
pocet[35] = 0
batoh[35] = batohNaSvitky
nazev[36] = "Svitky IJS"
typ [36] = "0x1F50"
pocet[36] = 0
batoh[36] = batohNaSvitky
nazev[37] = "Svitky Energy Field"
typ [37] = "0x1F5E"
pocet[37] = 0
batoh[37] = batohNaSvitky
nazev[38] = "Svitky Night Sight"
typ [38] = "0x1F33"
pocet[38] = 0
batoh[38] = batohNaSvitky
nazev[39] = "Svitky Wall of Stone"
typ [39] = "0x1F44"
pocet[39] = 0
batoh[39] = batohNaSvitky
nazev[40] = "Svitky IVM"
typ [40] = "0x1F49"
pocet[40] = 0
batoh[40] = batohNaSvitky
nazev[41] = "Svitky KVF"
typ [41] = "0x1F5F"
pocet[41] = 0
batoh[41] = batohNaSvitky
nazev[42] = "Svitky Para"
typ [42] = "0x1F52"
pocet[42] = 0
batoh[42] = batohNaSvitky
nazev [43] = "Mana Reff"
typ [43] = "0x0F09"
pocet [43] = 0
batoh [43] = batohNaPoitony
barva [43] = "0x0005"
barva2[43] = "0x0005"
potion[43] = 1
nazev [44] = "TMR"
typ [44] = "0x0F09"
pocet [44] = 0
batoh [44] = batohNaPoitony
barva [44] = "0x0003"
barva2[44] = "0x0003"
potion[44] = 1
nazev [45] = "Greater Heal"
typ [45] = "0x0F0C"
pocet [45] = 0
batoh [45] = batohNaPoitony
barva2[45] = "0x08A7"
potion[45] = 1
nazev [46] = "Greater Strength"
typ [46] = "0x0F09"
pocet [46] = 0
batoh [46] = batohNaPoitony
barva2[46] = "0x0481"
potion[46] = 1
nazev [47] = "Greater Cure"
typ [47] = "0x0F07"
pocet [47] = 0
batoh [47] = batohNaPoitony
barva2[47] = "0x0842"
potion[47] = 1
nazev [48] = "Total Stamina Reff"
typ [48] = "0x0F0B"
pocet [48] = 0
batoh [48] = batohNaPoitony
barva2[48] = "0x014D"
potion[48] = 1
nazev [49] = "Invisibility"
typ [49] = "0x0F09"
pocet [49] = 0
batoh [49] = batohNaPoitony
barva [49] = "0x0B77"
barva2[49] = "0x0B77"
potion[49] = 1
nazev [50] = "Shrink"
typ [50] = "0x0F09"
pocet [50] = 0
batoh [50] = batohNaPoitony
barva [50] = "0x045E"
barva2[50] = "0x0724"
potion[50] = 1
nazev[51] = "Prazdne lahve"
typ [51] = "0x0F0E"
pocet[51] = 0
batoh[51] = batohNaPoitony
nazev[52] = "Svitky Sipka"
typ [52] = "0x1F32"
pocet[52] = 0
batoh[52] = batohNaSvitky
nazev[53] = "Svitky Energy Bolt"
typ [53] = "0x1F56"
pocet[53] = 0
batoh[53] = batohNaSvitky
nazev[54] = "Svitky harm"
typ [54] = "0x1F38"
pocet[54] = 0
batoh[54] = batohNaSvitky
nazev[55] = "Svitky Mind Blast"
typ [55] = "0x1F51"
pocet[55] = 0
batoh[55] = batohNaSvitky
nazev[56] = "Zelena ryba"
typ [56] = "0x09CD"
pocet[56] = 0
batoh[56] = batohNaSpotrebak
barva[56] = "0x0850"
nazev[57] = "Bila ryba"
typ [57] = "0x09CD"
pocet[57] = 0
batoh[57] = batohNaSpotrebak
barva[57] = "0x0482"
nazev[58] = "Modra ryba"
typ [58] = "0x09CD"
pocet[58] = 0
batoh[58] = batohNaSpotrebak
barva[58] = "0x084C"
for i = 1 to POLOZEK
uo.findtype(typ[i],barva[i],'backpack')
if (potion[i] == 1) then
j = uo.count(typ[i],barva[i])
else
j = uo.getquantity('finditem')
end if
if (j > pocet[i]) then # do banku
if (potion[i] == 1) then
for ii = (pocet[i]+1) to j
uo.waittargettype(typ[i],barva[i])
uo.findtype("0x1843",barva2[i],batoh[i])
if not uo.findcount() then
uo.canceltarget()
next
endif
uo.useobject('finditem')
wait(pauza)
next
else
uo.moveitem('finditem',str(j-pocet[i]),batoh[i])
endif
wait(pauza)
else
if (j < pocet[i]) then # z banku
if (potion[i] == 1) then
for ii = j to (pocet[i]-1)
uo.findtype("0x0F0E","0x0000",batoh[i])
if not uo.findcount() then
uo.print("Nedostatek Prazdne lahve")
uo.canceltarget()
next
endif
uo.waittargetobject('finditem')
uo.findtype("0x1843",barva2[i],batoh[i])
if not uo.findcount() then
uo.canceltarget()
next
endif
uo.useobject('finditem')
wait(pauza)
next
else
uo.findtype(typ[i],barva[i],batoh[i])
if (uo.getquantity('finditem') < (pocet[i]-j)) then
uo.print("Nedostatek "+ nazev[i])
else
uo.moveitem ('finditem',str(pocet[i]-j),'backpack')
wait(pauza)
end if
end if
end if
end if
next
uo.print("Nadrz mate PRAZDNOU, pane")
end sub
sub kop_NB_runa()
var runa = 0x1F14 ;sem nadefinujte type vasi NB runy
var barvaruny = 0x0B1D ;sem nadefinujte barvu vasi NB runy
UO.FindType(runa, barvaruny, "my")
UO.Set('norbcheck','1')
UO.Set('norbcalc','1')
UO.Recall("finditem", STR(1))
end sub
#############################
sub vendor()
UO.exec('addobject Vendor')
while UO.Targeting()
wait(100)
wend
UO.Say(""+Uo.GetName("Vendor")+" buy")
end sub
#############################
sub zesednuti_z_kone()
Uo.Useobject("self")
end sub
sub naskoceni_na_suma()
Uo.usefromground("0x00CC", "0x0000") ; doplnit type a color svého mazlíčka
end sub
sub naskoceni_na_kone_rang()
Uo.Useobject("jezditko") ; doplnit ID svého mazlíčka
end sub
sub urci_kun() # ulozi danou osobu do objektu
UO.exec('addobject jezditko')
while UO.Targeting()
wait(100)
wend
end sub
#############################
sub artefakt()
Uo.Useobject("0x403048C8")
end sub
#############################
sub toulec()
Uo.Useobject("toulec")
end sub
sub zbranRang()
Uo.Useobject("zbran")
end sub
sub skladacka()
Uo.Useobject("skladacka")
end sub
sub zbran_stitRang()
Uo.Useobject("stit") # stit
wait(100)
Uo.Useobject("zbranstit") # zbran
end sub
#############################
sub attack_enemy () # provede utok zbrani na cil - 'enemy'
uo.attack('enemy')
end sub
#############################
sub select_enemy()
UO.exec('addobject enemy');
while UO.Targeting()
wait(100)
wend
uo.print(Uo.GetName('enemy'))
end sub
###############################
#Najde nepritele a ulozi do objektu 'enemy'
#uplne na konci se da prepnout, jestli na PK rovnou zautoci, nebo
#jestli jen vypise jeho udaje
#!!!!!!!!!!!!!!!!!!!!! Zapnete na hlavni strance Yoka Track World Items
sub TargetNext()
#v. 1.3
#od v1.2 opraven uo.set('lasttarget'...)
#od v1.1 pridany hlasky nad sebe, getstatus
var man='0x0190'
var woman='0x0191'
var notoriety1=5 #sem dejte 4, jestli chcete targetovat criminaly
var notoriety2=5
var notoriety3=6
var nalezeno
var resetovano = 0
UO.Ignore('self')
UO.Set('finddistance', "20")
repeat
uo.findtype(man, '-1', 'ground') #hledame muze
if not uo.findcount() then
uo.findtype(woman, '-1', 'ground') #pokud nejsou muzi, hledame zeny
if not uo.findcount() then
#nikoho jsme nenasli. Pokud nebyl reset ignoru, resetujem a hledame znova
if not resetovano then
UO.IgnoreReset()
UO.Ignore('self')
resetovano = 1
uo.findtype(man, '-1', 'ground') #hledame muze
if not uo.findcount() then
uo.findtype(woman, '-1', 'ground') #pokud nejsou muzi, hledame zeny
endif
endif
endif
endif
if uo.findcount() then #nekoho jsme nalezli
If (UO.GetNotoriety('finditem')==Notoriety1) or (UO.GetNotoriety('finditem')==Notoriety2) or (UO.GetNotoriety('finditem')==Notoriety3) then
#nepritel je PK, sedivak nebo O/CH nepritel
UO.AddObject('enemy', 'finditem')
nalezeno = 1
endif
UO.Ignore('finditem')
endif
until not uo.findcount() or uo.dead() or nalezeno
If not nalezeno then
UO.Print('Nepritel nebyl zameren')
else
# tady muzete prepinat, jestli na nepritele zautocit, nebo jen vypsat udaje o nem
; uo.attack('enemy') #muzete zakomentovat a nedozvi se ze po nem jdete
uo.set('lasttarget',uo.getserial('enemy'))
; uo.print(Uo.GetName('enemy')+" "+str(Uo.GetHP('enemy')) + "/"+str(Uo.GetMaxHP('enemy'))) #vypsani hodnoty
#lze vykopirovat do jinych skriptu
uo.getstatus('enemy')
uo.charprint("0x0030",Uo.GetName('enemy')+" "+str(Uo.GetHP('enemy')) + "/"+str(Uo.GetMaxHP('enemy'))) #vypsani hodnoty
endif
end sub
#########################
sub odlogCove()
Uo.Useobject("0x401B11B3")
end sub
#############################
sub rangerref()
var i, ii, j, pauza = 500
uo.msg("bank")
wait(pauza+pauza)
var batohNaRegy = "0x4014EE89"
uo.findtype('-1','-1',batohNaRegy)
if not uo.findcount() then
uo.useObject(batohNaRegy)
wait(pauza)
endif
var batohNaRegy2 = "0x4014EE89"
uo.findtype('-1','-1',batohNaRegy2)
if not uo.findcount() then
uo.useObject(batohNaRegy2)
wait(pauza)
endif
var batohNaSvitky = "0x402341B8"
uo.findtype('-1','-1',batohNaSvitky)
if not uo.findcount() then
uo.useObject(batohNaSvitky)
wait(pauza)
endif
var batohNaPoitony = "0x401262EF"
uo.findtype('-1','-1',batohNaPoitony)
if not uo.findcount() then
uo.useObject(batohNaPoitony)
wait(pauza)
endif
var batohNaSpotrebak = "0x402341B8"
uo.findtype('-1','-1',batohNaSpotrebak)
if not uo.findcount() then
uo.useObject(batohNaSpotrebak)
wait(pauza)
endif
var batohnaLoot = "0x40370C96"
uo.findtype('-1','-1',batohNaLoot)
if not uo.findcount() then
uo.useObject(batohnaLoot)
wait(pauza)
endif
var POLOZEK = 58
dim typ [58]
dim barva [58]
dim pocet [58]
dim batoh [58]
dim nazev [58]
dim potion[58]
dim barva2[58]
for i = 1 to POLOZEK
barva [i] = "0x0000"
barva2[i] = "0x0000"
potion[i] = 0
next
nazev[1] = "Spider Silk"
typ [1] = "0x0F8D"
pocet[1] = 210
batoh[1] = batohNaRegy
nazev[2] = "Sulphur Ash"
typ [2] = "0x0F8C"
pocet[2] = 100
batoh[2] = batohNaRegy
nazev[3] = "Black Pearl"
typ [3] = "0x0F7A"
pocet[3] = 180
batoh[3] = batohNaRegy
nazev[4] = "Nightshade"
typ [4] = "0x0F88"
pocet[4] = 180
batoh[4] = batohNaRegy
nazev[5] = "Blood Moss"
typ [5] = "0x0F7B"
pocet[5] = 70
batoh[5] = batohNaRegy
nazev[6] = "Garlic"
typ [6] = "0x0F84"
pocet[6] = 60
batoh[6] = batohNaRegy
nazev[7] = "Ginseng"
typ [7] = "0x0F85"
pocet[7] = 20
batoh[7] = batohNaRegy
nazev[8] = "Mandrake Root"
typ [8] = "0x0F86"
pocet[8] = 210
batoh[8] = batohNaRegy
nazev[9] = "EoN"
typ [9] = "0x0F87"
pocet[9] = 0
batoh[9] = batohNaRegy
nazev[10] = "Blue Eye"
typ [10] = "0x0F87"
pocet[10] = 0
batoh[10] = batohNaRegy
barva[10] = "0x0005"
nazev[11] = "Pumice"
typ [11] = "0x0F8B"
pocet[11] = 0
batoh[11] = batohNaRegy2
nazev[12] = "Bat Wings"
typ [12] = "0x0F78"
pocet[12] = 0
batoh[12] = batohNaRegy2
nazev[13] = "Brimstone"
typ [13] = "0x0F7F"
pocet[13] = 0
batoh[13] = batohNaRegy2
nazev[14] = "Serpent Scales"
typ [14] = "0x0F8E"
pocet[14] = 0
batoh[14] = batohNaRegy2
nazev[15] = "Wyrms Hearth"
typ [15] = "0x0F91"
pocet[15] = 0
batoh[15] = batohNaRegy2
nazev[16] = "Blood Spawn"
typ [16] = "0x0F7C"
pocet[16] = 0
batoh[16] = batohNaRegy2
nazev[17] = "Blackmoor"
typ [17] = "0x0F79"
pocet[17] = 0
batoh[17] = batohNaRegy2
nazev[18] = "Executioners Cap"
typ [18] = "0x0F83"
pocet[18] = 0
batoh[18] = batohNaRegy2
nazev[19] = "Obsidian"
typ [19] = "0x0F89"
pocet[19] = 0
batoh[19] = batohNaRegy2
nazev[20] = "Vial Of Blood"
typ [20] = "0x0F7D"
pocet[20] = 0
batoh[20] = batohNaRegy2
nazev[21] = "Bones"
typ [21] = "0x0F7E"
pocet[21] = 0
batoh[21] = batohNaRegy2
nazev[22] = "Daemon Bones"
typ [22] = "0x0F80"
pocet[22] = 0
batoh[22] = batohNaRegy2
nazev[23] = "Fertile Dirt"
typ [23] = "0x0F81"
pocet[23] = 0
batoh[23] = batohNaRegy2
nazev[24] = "Volcanic Ash"
typ [24] = "0x0F8F"
pocet[24] = 0
batoh[24] = batohNaRegy2
nazev[25] = "Prachy"
typ [25] = "0x0EED"
pocet[25] = 0
batoh[25] = batohNaLoot
nazev[26] = "Krvave bandy 1"
typ [26] = "0x0E20"
pocet[26] = 0
batoh[26] = batohNaSpotrebak
nazev[27]= "Krvave bandy 2"
typ [27] = "0x0E22"
pocet[27] = 0
batoh[27] = batohNaSpotrebak
nazev[28] = "Ciste bandy"
typ [28] = "0x0E21"
pocet[28] = 70
batoh[28] = batohNaSpotrebak
nazev[29] = "Sipy"
typ [29] = "0x0F3F"
pocet[29] = 100
batoh[29] = batohNaSpotrebak
nazev[30] = "Sipky"
typ [30] = "0x1BFB"
pocet[30] = 100
batoh[30] = batohNaSpotrebak
nazev[31] = "Peri"
typ [31] = "0x1BD1"
pocet[31] = 0
batoh[31] = batohNaSpotrebak
nazev[32] = "Salaty"
typ [32] = "0x09EC"
pocet[32] = 0
batoh[32] = batohNaSpotrebak
nazev[33] = "Svitky Blesk"
typ [33] = "0x1F4A"
pocet[33] = 4
batoh[33] = batohNaSvitky
nazev[34] = "Svitky RESS"
typ [34] = "0x1F67"
pocet[34] = 1
batoh[34] = batohNaSvitky
nazev[35] = "Svitky Teleport"
typ [35] = "0x1F42"
pocet[35] = 2
batoh[35] = batohNaSvitky
nazev[36] = "Svitky IJS"
typ [36] = "0x1F50"
pocet[36] = 0
batoh[36] = batohNaSvitky
nazev[37] = "Svitky Energy Field"
typ [37] = "0x1F5E"
pocet[37] = 0
batoh[37] = batohNaSvitky
nazev[38] = "Svitky Night Sight"
typ [38] = "0x1F33"
pocet[38] = 0
batoh[38] = batohNaSvitky
nazev[39] = "Svitky Wall of Stone"
typ [39] = "0x1F44"
pocet[39] = 0
batoh[39] = batohNaSvitky
nazev[40] = "Svitky IVM"
typ [40] = "0x1F49"
pocet[40] = 0
batoh[40] = batohNaSvitky
nazev[41] = "Svitky KVF"
typ [41] = "0x1F5F"
pocet[41] = 0
batoh[41] = batohNaSvitky
nazev[42] = "Svitky Para"
typ [42] = "0x1F52"
pocet[42] = 0
batoh[42] = batohNaSvitky
nazev [43] = "Mana Reff"
typ [43] = "0x0F09"
pocet [43] = 0
batoh [43] = batohNaPoitony
barva [43] = "0x0005"
barva2[43] = "0x0005"
potion[43] = 1
nazev [44] = "TMR"
typ [44] = "0x0F09"
pocet [44] = 15
batoh [44] = batohNaPoitony
barva [44] = "0x0003"
barva2[44] = "0x0003"
potion[44] = 1
nazev [45] = "Greater Heal"
typ [45] = "0x0F0C"
pocet [45] = 6
batoh [45] = batohNaPoitony
barva2[45] = "0x08A7"
potion[45] = 1
nazev [46] = "Greater Strength"
typ [46] = "0x0F09"
pocet [46] = 5
batoh [46] = batohNaPoitony
barva2[46] = "0x0481"
potion[46] = 1
nazev [47] = "Greater Cure"
typ [47] = "0x0F07"
pocet [47] = 2
batoh [47] = batohNaPoitony
barva2[47] = "0x0842"
potion[47] = 1
nazev [48] = "Total Stamina Reff"
typ [48] = "0x0F0B"
pocet [48] = 6
batoh [48] = batohNaPoitony
barva2[48] = "0x014D"
potion[48] = 1
nazev [49] = "Invisibility"
typ [49] = "0x0F09"
pocet [49] = 0
batoh [49] = batohNaPoitony
barva [49] = "0x0B77"
barva2[49] = "0x0B77"
potion[49] = 1
nazev [50] = "Shrink"
typ [50] = "0x0F09"
pocet [50] = 0
batoh [50] = batohNaPoitony
barva [50] = "0x045E"
barva2[50] = "0x0724"
potion[50] = 1
nazev[51] = "Prazdne lahve"
typ [51] = "0x0F0E"
pocet[51] = 0
batoh[51] = batohNaPoitony
nazev[52] = "Svitky Sipka"
typ [52] = "0x1F32"
pocet[52] = 0
batoh[52] = batohNaSvitky
nazev[53] = "Svitky Energy Bolt"
typ [53] = "0x1F56"
pocet[53] = 0
batoh[53] = batohNaSvitky
nazev[54] = "Svitky harm"
typ [54] = "0x1F38"
pocet[54] = 0
batoh[54] = batohNaSvitky
nazev[55] = "Svitky Mind Blast"
typ [55] = "0x1F51"
pocet[55] = 0
batoh[55] = batohNaSvitky
nazev[56] = "Zelena ryba"
typ [56] = "0x09CD"
pocet[56] = 1
batoh[56] = batohNaSpotrebak
barva[56] = "0x0850"
nazev[57] = "Bila ryba"
typ [57] = "0x09CD"
pocet[57] = 0
batoh[57] = batohNaSpotrebak
barva[57] = "0x0482"
nazev[58] = "Modra ryba"
typ [58] = "0x09CD"
pocet[58] = 0
batoh[58] = batohNaSpotrebak
barva[58] = "0x084C"
for i = 1 to POLOZEK
uo.findtype(typ[i],barva[i],'backpack')
if (potion[i] == 1) then
j = uo.count(typ[i],barva[i])
else
j = uo.getquantity('finditem')
end if
if (j > pocet[i]) then # do banku
if (potion[i] == 1) then
for ii = (pocet[i]+1) to j
uo.waittargettype(typ[i],barva[i])
uo.findtype("0x1843",barva2[i],batoh[i])
if not uo.findcount() then
uo.canceltarget()
next
endif
uo.useobject('finditem')
wait(pauza)
next
else
uo.moveitem('finditem',str(j-pocet[i]),batoh[i])
endif
wait(pauza)
else
if (j < pocet[i]) then # z banku
if (potion[i] == 1) then
for ii = j to (pocet[i]-1)
uo.findtype("0x0F0E","0x0000",batoh[i])
if not uo.findcount() then
uo.print("Nedostatek Prazdne lahve")
uo.canceltarget()
next
endif
uo.waittargetobject('finditem')
uo.findtype("0x1843",barva2[i],batoh[i])
if not uo.findcount() then
uo.canceltarget()
next
endif
uo.useobject('finditem')
wait(pauza)
next
else
uo.findtype(typ[i],barva[i],batoh[i])
if (uo.getquantity('finditem') < (pocet[i]-j)) then
uo.print("Nedostatek "+ nazev[i])
else
uo.moveitem ('finditem',str(pocet[i]-j),'backpack')
wait(pauza)
end if
end if
end if
end if
next
uo.print("Nadrz mate plnou, pane")
end sub
##################################
sub debordelizace()
var gp_type = "0x0EED"
var gp_color = "0x0000"
var x
var gh = uo.count("0x0F0C", "0x0000")
var gs = uo.count ("0x0F09", "0x0000")
var gc = uo.count("0x0F07", "0x0000")
var tr = uo.count("0x0F0B", "0x0000")
var tmr = uo.count("0x0F09", "0x0003")
var mr = uo.count("0x0F09", "0x0005")
DIM regy[27]
regy[0] = "0x0F7B" #BM
regy[1] = "0x0F8C" #SA
regy[2] = "0x0F7A" #BP
regy[3] = "0x0F85" #GS
regy[4] = "0x0F86" #MR
regy[5] = "0x0F8D" #SS
regy[6] = "0x0F84" #GL
regy[7] = "0x0F88" #NS
regy[8] = "0x0F87" #EON
regy[9] = "0x0F89" #obsidian
regy[10] = "0x0F7E" #bone
regy[11] = "0x0F79" #blackmor
regy[12] = "0x0F81" #feritle
regy[13] = "0x0F78" #batwing
regy[14] = "0x0F8F" #volcanic
regy[15] = "0x0F8B" #pumice
regy[16] = "0x0F80" #deamon bone
regy[17] = "0x0F82" #dragon blood
regy[18] = "0x0F7D" #dark blood
regy[19] = "0x0F7C" #blodspawn
regy[20] = "0x0F91" #wyrmheart
regy[21] = "0x0F7D" #blood
regy[22] = "0x0F8E" #serpent
regy[23] = "0x0F83" #executioners
regy[24] = "0x0F7F" #brimstone
regy[25] = "0x0F87" #blue ocka
regy[26] = "0x0F8A" #pig iron
#regy[27] = "" #dead wood
UO.Print("*Uklizim*")
For var i = 0 to 26
UO.FindType(regy[i], -1, "backpack")
If UO.FindCount() then
UO.MoveItem("finditem", -1, "backpack", 110, 40, 0)
Wait(750)
EndIf
Next
UO.FindType(gp_type, gp_color, "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", -1, "backpack", 70, 40, 0)
Wait(500)
EndIf
uo.print(str(gh))
x = 0
while x < gh
UO.FindType("0x0F0C", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 90, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
x = 0
while x < gs
UO.FindType("0x0F09", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 30, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
x = 0
while x < gc
UO.FindType("0x0F07", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 60, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
x = 0
while x < tr
UO.FindType("0x0F0B", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 120, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
x = 0
while x < tmr
UO.FindType("0x0F09", "0x0003", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 150, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
x = 0
while x < mr
UO.FindType("0x0F09", "0x0005", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 150, 140, 0)
Wait(500)
EndIf
x = x + 1
wEnd
UO.print("*Uklizeno*")
endsub
####################################
sub Narovnani()
var x
var NbRuna = uo.count("0x1F14", "0x0B1D")
var SpellBook = uo.count ("0x0EFA")
var CestovniKniha = uo.count("0x22C5", "0x0000")
var RuneBook = uo.count("0x0FF0", "0x08A5")
var TravelBook = uo.count("0x0FEF", "0x0482")
var Voditko = uo.count("0x1374", "0x0B4C")
var DrawKnife = uo.count("0x10E4", "0x0B80")
var QuestBook = uo.count("0x227A", "0x0498")
var NbMortar = uo.count("0x0E9B", "0x0B87")
var MagicScissors = uo.count("0x0F9E", "0x0B87")
var MagicKey = uo.count("0x1012", "0x0000")
var Retezy = uo.count("0x1A07", "0x0000")
var Keyring = uo.count("0x176B", "0x0000")
If 0 < NbRuna THEN
UO.FindType("0x1F14", "0x0B1D", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 10, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < SpellBook THEN
UO.FindType("0x0EFA", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 25, 20, 0)
Wait(500)
Uo.Print('SpellBook')
EndIf
EndIf
If 0 < CestovniKniha THEN
UO.FindType("0x22C5", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 40, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < RuneBook THEN
UO.FindType("0x0FF0", "0x08A5", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 55, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < TravelBook THEN
UO.FindType("0x0FEF", "0x0482", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 70, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < Retezy THEN
UO.FindType("0x1A07", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 90, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < Voditko THEN
UO.FindType("0x1374", "0x0B4C", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 105, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < DrawKnife THEN
UO.FindType("0x10E4", "0x0B80", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 120, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < QuestBook THEN
UO.FindType("0x227A", "0x0498", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 135, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < NbMortar THEN
UO.FindType("0x0E9B", "0x0B87", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 150, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < MagicScissors THEN
UO.FindType("0x0F9E", "0x0B87", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 150, 20, 0)
Wait(500)
EndIf
EndIf
If 0 < Keyring THEN
UO.FindType("0x176B", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 165, 20, 0)
Wait(500)
EndIf
EndIf
x = 0
while x < MagicKey
UO.FindType("0x1012", "0x0000", "backpack")
If UO.FindCount() Then
UO.MoveItem("finditem", 1, "backpack", 165, 10, 0)
Wait(500)
EndIf
x = x + 1
wEnd
UO.print("*Narovnano*")
endsub