Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;cooper KMK
- ;Iron, bronze; Lead ENK
- ;gold, brass QMK
- ;wood ZLK
- ;glass XMK
- ;silver KNK
- set %Truhla GIOPXSD ; truhla s drevem
- set %Ingoty ENK
- set %Nastroj TBG ;TBG = Tongs
- set %TypDreva ZLK
- ; Offsety výšky kategorii (pouze Yčka, X je stejné)
- ; tohle cislo doplnis jako workcat u itemu
- ; |
- set %CatOffset1 330 ;ring
- set %CatOffset2 307 ;plate
- set %CatOffset3 284 ;helmshields
- set %CatOffset4 261 ;blades
- set %CatOffset5 238 ;swords
- set %CatOffset6 215 ;axes
- set %CatOffset7 192 ;axes2
- set %CatOffset8 169 ;polearms
- set %CatOffset9 146 ;bashing
- set %CatOffset10 123 ;tools
- set %CatOffset11 100 ;common
- Menu Window Size 1200 500
- Menu Window Color Black
- Menu Window Title Pocet itemů
- Menu Show 0 500
- Menu Font BGColor Black
- Menu Font Color White
- Menu Font Style b
- Menu Font Size 10
- ;RING+CHAIN
- menu Font Color red
- Menu Text Text100 10 10 RING CHAIN
- menu Font Color white
- Menu Text Text1 10 35 Ringmail Gloves:
- Menu Edit Edit1 150 30 35 0
- ;hodnoty X a Y itemu (NE KATEGORIE!)
- set %workX1 375
- set %workY1 300
- ;Kategorie podle toho jak je definovano vyse
- set %workCat1 1
- Menu Text Text2 10 60 Ringmail Sleeves:
- Menu Edit Edit2 150 55 35 0
- set %workX2 235
- set %workY2 300
- set %workCat2 1
- Menu Text Text3 10 85 Ringmail Leggings:
- Menu Edit Edit3 150 80 35 0
- set %workX3 95
- set %workY3 300
- set %workCat3 1
- ;; Takhle to pripises ke vsemu, vzdycky zvysis cislo o 1 a doplnis hodnoty
- Menu Text Text4 10 110 Ringmail Tunic:
- Menu Edit Edit4 150 105 35 0
- Menu Text Text5 10 135 Chainmail Coif:
- Menu Edit Edit5 150 130 35 0
- Menu Text Text6 10 160 Chainmail Leggings:
- Menu Edit Edit6 150 155 35 0
- Menu Text Text7 10 185 Chainmail Tunic:
- Menu Edit Edit7 150 180 35 0
- ;PLATEMAIL
- menu Font Color red
- Menu Text Text101 10 210 PLATEMAIL
- menu Font Color white
- Menu Text Text8 10 235 Platemail Gorget:
- Menu Edit Edit8 150 230 35 0
- Menu Text Text9 10 260 Platemail Gloves:
- Menu Edit Edit9 150 255 35 0
- Menu Text Text10 10 285 Platemail arms:
- Menu Edit Edit10 150 280 35 0
- Menu Text Text11 10 310 Platemail Leggings:
- Menu Edit Edit11 150 305 35 0
- Menu Text Text12 10 335 Platemail Breastplate:
- Menu Edit Edit12 150 330 35 0
- Menu Text Text13 10 360 Female Plate Armor:
- Menu Edit Edit13 150 355 35 0
- ;HELMS+SHIELDS
- menu Font Color red
- Menu Text Text102 200 10 HELMS SHIELDS
- menu Font Color white
- Menu Text Text14 200 35 Helmet:
- Menu Edit Edit14 340 30 35 0
- Menu Text Text15 200 60 Bascinet:
- Menu Edit Edit15 340 55 35 0
- Menu Text Text16 200 85 Nose Helm:
- Menu Edit Edit16 340 80 35 0
- Menu Text Text17 200 110 Closed Helm:
- Menu Edit Edit17 340 105 35 0
- Menu Text Text18 200 135 Platemail Helm:
- Menu Edit Edit18 340 130 35 0
- Menu Text Text19 200 160 Heater Shield:
- Menu Edit Edit19 340 155 35 0
- Menu Text Text20 200 185 Buckler:
- Menu Edit Edit20 340 180 35 0
- Menu Text Text21 200 210 Metal Shield:
- Menu Edit Edit21 340 205 35 0
- Menu Text Text22 200 235 Metal Kite Shield:
- Menu Edit Edit22 340 230 35 0
- ;BLADES
- menu Font Color red
- Menu Text Text103 390 10 BLADES
- menu Font Color white
- Menu Text Text23 390 35 Dagger:
- Menu Edit Edit23 530 30 35 0
- Menu Text Text24 390 60 Broad Knife:
- Menu Edit Edit24 530 55 35 0
- Menu Text Text25 390 85 Stiletto:
- Menu Edit Edit25 530 80 35 0
- Menu Text Text26 390 110 Cutlass:
- Menu Edit Edit26 530 105 35 0
- Menu Text Text27 390 135 Sharp Blade:
- Menu Edit Edit27 530 130 35 0
- Menu Text Text28 390 160 Katana:
- Menu Edit Edit28 530 155 35 0
- Menu Text Text29 390 185 Rapier:
- Menu Edit Edit29 530 180 35 0
- Menu Text Text30 390 210 Falchion:
- Menu Edit Edit30 530 205 35 0
- Menu Text Text31 390 235 Kryss:
- Menu Edit Edit31 530 230 35 0
- Menu Text Text32 390 260 Twist Blade:
- Menu Edit Edit32 530 255 35 0
- Menu Text Text33 390 285 Scimitar:
- Menu Edit Edit33 530 280 35 0
- ;SWORDS
- menu Font Color red
- Menu Text Text104 580 10 SWORDS
- menu Font Color white
- Menu Text Text34 580 35 Short Sword:
- Menu Edit Edit34 740 30 35 0
- Menu Text Text35 580 60 Broadsword:
- Menu Edit Edit35 740 55 35 0
- Menu Text Text36 580 85 Sword:
- Menu Edit Edit36 740 80 35 0
- Menu Text Text37 580 110 Gladius:
- Menu Edit Edit37 740 105 35 0
- Menu Text Text38 580 135 Longsword:
- Menu Edit Edit38 740 130 35 0
- Menu Text Text39 580 160 Flamberge:
- Menu Edit Edit39 740 155 35 0
- Menu Text Text40 580 185 Viking Sword:
- Menu Edit Edit40 740 180 35 0
- Menu Text Text41 580 210 Bastard Sword:
- Menu Edit Edit41 740 205 35 0
- Menu Text Text42 580 235 Claymore:
- Menu Edit Edit42 740 230 35 0
- Menu Text Text43 580 260 Knight Sword:
- Menu Edit Edit43 740 255 35 0
- ;AXES I
- menu Font Color red
- Menu Text Text105 790 10 AXES I
- menu Font Color white
- Menu Text Text44 790 35 Hatchet:
- Menu Edit Edit44 950 30 35 0
- Menu Text Text45 790 60 Small Axe:
- Menu Edit Edit45 950 55 35 0
- Menu Text Text46 790 85 Axe:
- Menu Edit Edit46 950 80 35 0
- Menu Text Text47 790 110 Beast Axe:
- Menu Edit Edit47 950 105 35 0
- Menu Text Text48 790 135 Broad Axe:
- Menu Edit Edit48 950 130 35 0
- Menu Text Text49 790 160 Large Axe:
- Menu Edit Edit49 950 155 35 0
- Menu Text Text50 790 185 Fine Axe:
- Menu Edit Edit50 950 180 35 0
- Menu Text Text51 790 210 Combat Axe:
- Menu Edit Edit51 950 205 35 0
- Menu Text Text52 790 235 Double Axe:
- Menu Edit Edit52 950 230 35 0
- Menu Text Text53 790 260 Beaked Axe:
- Menu Edit Edit53 950 255 35 0
- ;AXES II
- menu Font Color red
- Menu Text Text106 790 285 AXES II
- menu Font Color white
- Menu Text Text54 790 310 Battle Axe:
- Menu Edit Edit54 950 305 35 0
- Menu Text Text55 790 335 War Axe:
- Menu Edit Edit55 950 330 35 0
- Menu Text Text56 790 360 Executioner`s Axe:
- Menu Edit Edit56 950 355 35 0
- Menu Text Text57 790 385 Great Axe:
- Menu Edit Edit57 950 380 35 0
- Menu Text Text58 790 410 Giant Axe:
- Menu Edit Edit58 950 405 35 0
- Menu Text Text59 790 435 Large Battle Axe:
- Menu Edit Edit59 950 430 35 0
- Menu Text Text60 790 460 Viking Axe:
- Menu Edit Edit60 950 455 35 0
- ;POLEARMS
- menu Font Color red
- Menu Text Text107 580 285 POLEARMS
- menu Font Color white
- Menu Text Text61 580 310 Short Spear:
- Menu Edit Edit61 740 305 35 0
- Menu Text Text62 580 335 Spear:
- Menu Edit Edit62 740 330 35 0
- Menu Text Text63 580 360 War Fork:
- Menu Edit Edit63 740 355 35 0
- Menu Text Text64 580 385 Bardiche:
- Menu Edit Edit64 740 380 35 0
- Menu Text Text65 580 410 Halberd:
- Menu Edit Edit65 740 405 35 0
- Menu Text Text66 580 435 Trident:
- Menu Edit Edit66 740 430 35 0
- Menu Text Text67 580 460 Pitchfork:
- Menu Edit Edit67 740 455 35 0
- ;BASHING
- menu Font Color red
- Menu Text Text108 1000 10 BASHING
- menu Font Color white
- Menu Text Text68 1000 35 Hammer Pick:
- Menu Edit Edit68 1160 30 35 0
- Menu Text Text69 1000 60 Mace:
- Menu Edit Edit69 1160 55 35 0
- Menu Text Text70 1000 85 Maul:
- Menu Edit Edit70 1160 80 35 0
- Menu Text Text71 1000 110 Morning Star:
- Menu Edit Edit71 1160 105 35 0
- Menu Text Text72 1000 135 Sledge Hammer:
- Menu Edit Edit72 1160 130 35 0
- Menu Text Text73 1000 160 Crusher:
- Menu Edit Edit73 1160 155 35 0
- Menu Text Text74 1000 185 War Mace:
- Menu Edit Edit74 1160 180 35 0
- Menu Text Text75 1000 210 War Hammer:
- Menu Edit Edit75 1160 205 35 0
- Menu Text Text76 1000 235 Battle Mace:
- Menu Edit Edit76 1160 230 35 0
- ;TOOLS
- menu Font Color red
- Menu Text Text109 1000 260 TOOLS
- menu Font Color white
- Menu Text Text77 1000 285 Skinning Knife:
- Menu Edit Edit77 1160 280 35 0
- Menu Text Text78 1000 310 Butcher`s Knife:
- Menu Edit Edit78 1160 305 35 0
- Menu Text Text79 1000 335 Cleaver:
- Menu Edit Edit79 1160 330 35 0
- Menu Text Text80 1000 360 Pickaxe:
- Menu Edit Edit80 1160 355 35 0
- Menu Text Text81 1000 385 Smithhammer:
- Menu Edit Edit81 1160 380 35 0
- ;COMMON
- menu Font Color red
- Menu Text Text110 390 310 COMMON
- menu Font Color white
- Menu Text Text82 390 335 Barrel Hoops:
- Menu Edit Edit82 530 330 35 0
- Menu Text Text83 390 360 Bola:
- Menu Edit Edit83 530 355 35 0
- Menu Text Text84 390 385 Anvil:
- Menu Edit Edit84 530 380 35 0
- Menu Button Button1 10 400 150 20 Olééééé
- Repeat
- wait 20
- If #MenuButton = Button1
- Break
- Until #False
- Menu Hide
- set %cpocGetEdit 84
- set %ValueGetEdit 1
- ; Tohle bude hlavní Loop odted!
- ; v nem si zjistim prvni item, ziskam data, udelam a pokracuju na druhy item...
- LoopGetData:
- ; Kolik jich chci udelat?
- ; ----------------------------------------------------------
- Menu Get Edit . %ValueGetEdit
- set %pocet #Menures
- if %pocet = 0 || %pocet = N/A
- { ;Nemusím nic dělat tak proste jen zvysim iterator a jdu na dalsi item (po zkusim jestli uz sem neprosel vsechno)
- if %ValueGetEdit >= %cpocGetEdit
- goto GetDataEnd
- set %ValueGetEdit %ValueGetEdit + 1
- goto LoopGetData
- }
- ; ----------------------------------------------------------
- ; Je to vic nez jedna takze to budeme delat!
- ; ----------------------------------------------------------
- GoSub checksave
- ;Ingy Tongy Drevo
- FindItem %Nastroj C_ , #BACKPACKID
- set %tongID #FindID
- FindItem %Ingoty G_1
- set %ingotID #findID
- FindItem %TypDreva C_ , %Truhla
- set %woodID #findID
- ; Tongy -> ingy -> gump -> práce
- set #lObjectID %tongID
- set #lTargetID %ingotID
- set #lTargetKind 1
- event macro 17 0 ;last object
- WAITFORTARGET1:
- if #targcurs = 0
- goto WAITFORTARGET1
- event macro 22 0 ;last target
- ; zjistime si jakou ma item kategorii
- set %inCategory %workCat . %ValueGetEdit ;; definovano nad menu
- set %categoryY %CatOffset . %inCategory ;a tohle je offset pro kategorii
- ; Klik na Kategorii
- gosub clickgump 565 %categoryY
- ; mozna nejaka cekaci pauza? myslim ze ani netreba
- set %wx %workX . %ValueGetEdit
- set %wy %workY . %ValueGetEdit
- ; Klik na item
- gosub clickgump 565 %wx %wy
- ;A ted to dela!
- set %ValueGetEdit %ValueGetEdit + 1
- goto LoopGetData
- GetDataEnd:
- halt
- sub clickgump
- loopGUMP:
- set %gump GJZ
- if #contkind = %gump
- {
- str Pos #CONTSIZE _
- set %Offset #strRes - 1
- str Left #CONTSIZE %Offset
- set %OffetX #strRes
- set %Offset %Offset + 2
- str Mid #CONTSIZE %Offset 100
- set %OffetY #strRes
- Set %X %OffetX - %1
- set %Y %OffetY - %2
- click %X %Y dmc
- }
- else
- goto loopGUMP
- return
- sub checksave
- For %i 1 to 25
- {
- ScanJournal %i
- If World_save_is_approaching in #journal
- {
- Event SysMessage čekám na sejvíř
- wait 20s
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement