LoadGridVars() Gui, Add, Tab2, x6 y7 w670 h260 +, Buff Potions|Cleaning Dirties|Disassembler|Quick Say|Misc ;Buff Potions Gui, Tab, Buff Potions Gui, Add, GroupBox, x16 y57 w100 h60 , Max HP Potion Gui, Add, GroupBox, x126 y57 w100 h60 , Max MP Potion Gui, Add, GroupBox, x236 y57 w100 h60 , Purify Potion Gui, Add, GroupBox, x346 y57 w100 h60 , Movement Potion Gui, Add, GroupBox, x456 y57 w100 h60 , Defense Potion Gui, Add, GroupBox, x566 y57 w100 h60 , Attack Potion Gui, Add, GroupBox, x46 y137 w100 h60 , Magic Resistance Gui, Add, GroupBox, x166 y137 w100 h60 , Accuracy Potion Gui, Add, GroupBox, x286 y137 w110 h60 , Dodge Potion Gui, Add, GroupBox, x416 y137 w100 h60 , Attack Speed Potion Gui, Add, GroupBox, x536 y137 w100 h60 , Critical Potion Gui, Add, Edit, x26 y77 w80 h30 +Number +Limit3 -Wrap -Multi vhp, Taurus Gui, Add, Edit, x136 y77 w80 h30 +Number +Limit3 -Wrap -Multi vmp, Virgo Gui, Add, Edit, x246 y77 w80 h30 +Number +Limit3 -Wrap -Multi vpurify, Scorpius Gui, Add, Edit, x356 y77 w80 h30 +Number +Limit3 -Wrap -Multi vmspd, Libra Gui, Add, Edit, x466 y77 w80 h30 +Number +Limit3 -Wrap -Multi vdef, Saggitarius Gui, Add, Edit, x576 y77 w80 h30 +Number +Limit3 -Wrap -Multi vatk, Leo Gui, Add, Edit, x56 y157 w80 h30 +Number +Limit3 -Wrap -Multi vmdef, Capricornus Gui, Add, Edit, x176 y157 w80 h30 +Number +Limit3 -Wrap -Multi vacc, Cancer Gui, Add, Edit, x296 y157 w90 h30 +Number +Limit3 -Wrap -Multi vdodge, Aries Gui, Add, Edit, x426 y157 w80 h30 +Number +Limit3 -Wrap -Multi vatkspd, Leo Gui, Add, Edit, x546 y157 w80 h30 +Number +Limit3 -Wrap -Multi vcrit, Gemini Gui, Add, Button, x560 y225 w100 h30 , Craft ;Gui, Add, Progress, x186 y235 w310 h20 +Number vCraftProgress, 0 ; Cleaning Gui, Tab, Cleaning Dirties Gui, Add, GroupBox, x16 y57 w100 h60 , F1 Gui, Add, GroupBox, x126 y57 w100 h60 , F2 Gui, Add, GroupBox, x236 y57 w100 h60 , F3 Gui, Add, GroupBox, x16 y127 w100 h60 , F4 Gui, Add, GroupBox, x126 y127 w100 h60 , F5 Gui, Add, GroupBox, x236 y127 w100 h60 , F6 Gui, Add, GroupBox, x16 y197 w100 h60 , F7 Gui, Add, GroupBox, x126 y197 w100 h60 , F8 Gui, Add, GroupBox, x346 y57 w100 h60 , Ctrl + F1 Gui, Add, GroupBox, x456 y57 w100 h60 , Ctrl + F2 Gui, Add, GroupBox, x566 y57 w100 h60 , Ctrl + F3 Gui, Add, GroupBox, x346 y127 w100 h60 , Ctrl + F4 Gui, Add, GroupBox, x456 y127 w100 h60 , Ctrl + F5 Gui, Add, GroupBox, x566 y127 w100 h60 , Ctrl + F6 Gui, Add, GroupBox, x456 y197 w100 h60 , Ctrl + F7 Gui, Add, GroupBox, x566 y197 w100 h60 , Ctrl + F8 Gui, Add, Edit, x26 y77 w80 h30 +Number +Limit3 -Wrap -Multi vf1, 0 Gui, Add, Edit, x136 y77 w80 h30 +Number +Limit3 -Wrap -Multi vf2, 0 Gui, Add, Edit, x246 y77 w80 h30 +Number +Limit3 -Wrap -Multi vf3, 0 Gui, Add, Edit, x26 y147 w80 h30 +Number +Limit3 -Wrap -Multi vf4, 0 Gui, Add, Edit, x136 y147 w80 h30 +Number +Limit3 -Wrap -Multi vf5, 0 Gui, Add, Edit, x246 y147 w80 h30 +Number +Limit3 -Wrap -Multi vf6, 0 Gui, Add, Edit, x26 y217 w80 h30 +Number +Limit3 -Wrap -Multi vf7, 0 Gui, Add, Edit, x136 y217 w80 h30 +Number +Limit3 -Wrap -Multi vf8, 0 Gui, Add, Edit, x356 y77 w80 h30 +Number +Limit3 -Wrap -Multi vaf1, 0 Gui, Add, Edit, x466 y77 w80 h30 +Number +Limit3 -Wrap -Multi vaf2, 0 Gui, Add, Edit, x576 y77 w80 h30 +Number +Limit3 -Wrap -Multi vaf3, 0 Gui, Add, Edit, x356 y147 w80 h30 +Number +Limit3 -Wrap -Multi vaf4, 0 Gui, Add, Edit, x466 y147 w80 h30 +Number +Limit3 -Wrap -Multi vaf5, 0 Gui, Add, Edit, x576 y147 w80 h30 +Number +Limit3 -Wrap -Multi vaf6, 0 Gui, Add, Edit, x466 y217 w80 h30 +Number +Limit3 -Wrap -Multi vaf7, 0 Gui, Add, Edit, x576 y217 w80 h30 +Number +Limit3 -Wrap -Multi vaf8, 0 Gui, Add, CheckBox, x296 y190 w100 h30 Checked -Border vRRE, Running RRE? Gui, Add, Button, x296 y225 w100 h30 , Clean ; Disassembler Gui, Tab, Disassembler Gui, Add, CheckBox, x22 y50 w80 h30 Checked Border vEquip_A1, Equip - A1 Gui, Add, CheckBox, x112 y50 w80 h30 Checked Border vEquip_A2, Equip - A2 Gui, Add, CheckBox, x202 y50 w80 h30 Checked Border vEquip_A3, Equip - A3 Gui, Add, CheckBox, x292 y50 w80 h30 Checked Border vEquip_A4, Equip - A4 Gui, Add, CheckBox, x382 y50 w80 h30 Checked Border vEquip_A5, Equip - A5 Gui, Add, CheckBox, x472 y50 w80 h30 Checked Border vEquip_A6, Equip - A6 Gui, Add, CheckBox, x22 y90 w80 h30 Checked Border vEquip_B1, Equip - B1 Gui, Add, CheckBox, x112 y90 w80 h30 Checked Border vEquip_B2, Equip - B2 Gui, Add, CheckBox, x202 y90 w80 h30 Checked Border vEquip_B3, Equip - B3 Gui, Add, CheckBox, x292 y90 w80 h30 Checked Border vEquip_B4, Equip - B4 Gui, Add, CheckBox, x382 y90 w80 h30 Checked Border vEquip_B5, Equip - B5 Gui, Add, CheckBox, x472 y90 w80 h30 Checked Border vEquip_B6, Equip - B6 Gui, Add, CheckBox, x22 y130 w80 h30 Checked Border vEquip_C1, Equip - C1 Gui, Add, CheckBox, x112 y130 w80 h30 Checked Border vEquip_C2, Equip - C2 Gui, Add, CheckBox, x202 y130 w80 h30 Checked Border vEquip_C3, Equip - C3 Gui, Add, CheckBox, x292 y130 w80 h30 Checked Border vEquip_C4, Equip - C4 Gui, Add, CheckBox, x382 y130 w80 h30 Checked Border vEquip_C5, Equip - C5 Gui, Add, CheckBox, x472 y130 w80 h30 Checked Border vEquip_C6, Equip - C6 Gui, Add, CheckBox, x22 y170 w80 h30 Checked Border vEquip_D1, Equip - D1 Gui, Add, CheckBox, x112 y170 w80 h30 Checked Border vEquip_D2, Equip - D2 Gui, Add, CheckBox, x202 y170 w80 h30 Checked Border vEquip_D3, Equip - D3 Gui, Add, CheckBox, x292 y170 w80 h30 Checked Border vEquip_D4, Equip - D4 Gui, Add, CheckBox, x382 y170 w80 h30 Checked Border vEquip_D5, Equip - D5 Gui, Add, CheckBox, x472 y170 w80 h30 Checked Border vEquip_D6, Equip - D6 Gui, Add, CheckBox, x22 y210 w80 h30 Checked Border vEquip_E1, Equip - E1 Gui, Add, CheckBox, x112 y210 w80 h30 Checked Border vEquip_E2, Equip - E2 Gui, Add, CheckBox, x202 y210 w80 h30 Checked Border vEquip_E3, Equip - E3 Gui, Add, CheckBox, x292 y210 w80 h30 Checked Border vEquip_E4, Equip - E4 Gui, Add, CheckBox, x382 y210 w80 h30 Checked Border vEquip_E5, Equip - E5 Gui, Add, CheckBox, x472 y210 w80 h30 Checked Border vEquip_E6, Equip - E6 Gui, Add, Button, gUncheck x572 y140 w90 h30 , Uncheck All Gui, Add, Button, gCheck x572 y180 w90 h30 , Check All Gui, Add, Button, x572 y220 w90 h30 , Disassemble ; Quick Say Gui, Tab, Quick Say Gui, Add, GroupBox, x22 y40 w310 h50 , Shift + F1 Gui, Add, GroupBox, x22 y100 w310 h50 , Shift + F2 Gui, Add, GroupBox, x22 y160 w310 h50 , Shift + F3 Gui, Add, GroupBox, x352 y40 w310 h50 , Shift + F4 Gui, Add, GroupBox, x352 y100 w310 h50 , Shift + F5 Gui, Add, GroupBox, x352 y160 w310 h50 , Shift + F6 Gui, Add, Edit, x32 y60 w280 h20 -Multi vtext_shift_f1, Gui, Add, Edit, x32 y120 w280 h20 -Multi vtext_shift_f2, Gui, Add, Edit, x32 y180 w280 h20 -Multi vtext_shift_f3, Gui, Add, Edit, x362 y60 w280 h20 -Multi vtext_shift_f4, Gui, Add, Edit, x362 y120 w280 h20 -Multi vtext_shift_f5, Gui, Add, Edit, x362 y180 w280 h20 -Multi vtext_shift_f6, Gui, Add, DropDownList, x22 y220 w90 h20 vdrop_shift_f1 r10, Shift + F1||Normal|X Minutes|Times X Minutes Gui, Add, DropDownList, x122 y220 w90 h20 vdrop_shift_f2 r10, Shift + F2||Normal|X Minutes|Times X Minutes Gui, Add, DropDownList, x222 y220 w90 h20 vdrop_shift_f3 r10, Shift + F3||Normal|X Minutes|Times X Minutes Gui, Add, DropDownList, x372 y220 w90 h20 vdrop_shift_f4 r10, Shift + F4||Normal|X Minutes|Times X Minutes Gui, Add, DropDownList, x472 y220 w90 h20 vdrop_shift_f5 r10, Shift + F5||Normal|X Minutes|Times X Minutes Gui, Add, DropDownList, x572 y220 w90 h20 vdrop_shift_f6 r10, Shift + F6||Normal|X Minutes|Times X Minutes Gui, Add, Button, x315 y220 w55 h30 , Update ; About Gui, Tab, Misc Gui, Add, GroupBox, x22 y45 w350 h200 , Shortcut Keys Gui, Add, ListView, x32 y65 w330 h170 Grid, Function|Shortcut Key LV_Add(0, "Clan Quest Get", "Ctrl + Shift + q") LV_Add(0, "Clan Quest Return", "Ctrl + Shift + Winkey + q") LV_Add(0, "Clean Dirty", "Ctrl + Shift + d") LV_Add(0, "Full Buffs", "Ctrl + Shift + z") LV_Add(0, "Single Target Buffs", "Ctrl + Shift + x") LV_Add(0, "Non-party Buffs", "Ctrl + Shift + a") LV_Add(0, "Vender - Buying", "Ctrl + Shift + v") LV_Add(0, "Vender - Selling", "Ctrl + Shift + Winkey + v") LV_Add(0, "Buy Potion Mats", "Ctrl + Shift + l") LV_Add(0, "Store Potion Mats", "Ctrl + Shift + Winkey + l") LV_Add(0, "Craft with 2 mats", "Ctrl + Shift + 2") LV_Add(0, "Craft with 3 mats", "Ctrl + Shift + 3") LV_Add(0, "Craft with 4 mats", "Ctrl + Shift + 4") LV_Add(0, "Crafting Bonfire/Manaflame switch", "Ctrl + Shift + m") LV_Add(0, "Crafting use Food switch", "Ctrl + Shift + n") LV_Add(0, "BonFire", "Ctrl + Shift + b") LV_Add(0, "Windows Postion Screen 1", "Ctrl + Shift + w") LV_Add(0, "Windows Postion Screen 2", "Ctrl + Shift + Winkey + w") LV_Add(0, "/set lockskillbar on", "Ctrl + Shift + s") LV_Add(0, "/set lockskillbar off", "Ctrl + Shift + Winkey + s") LV_Add(0, "No EXP reminder", "Ctrl + Shift + r") LV_Add(0, "Automatic Refueling", "Ctrl + Shift + f") LV_Add(0, "Snowbot", "Ctrl + Shift + /") LV_Add(0, "Quick Say (F1 - F5)", "Ctrl + Shift + (F1 - F5)") LV_Add(0, "Break/Stop Thread", "Ctrl + Shift + c") LV_Add(0, "Pause", "Ctrl + Shift + p") LV_Add(0, "Reload", "F11") LV_ModifyCol() ;Gui, Add, Progress, x236 y200 w208 h20 +Number vCleanProgress, 0 ; Generated using SmartGUI Creator 4.0 Gui, Show, x644 y207 h279 w686, Cr4ftr0n - EkopOrez (ver 1.9) Return Check: CheckBoxNumber = 30 loop, 30 { Control, Check,, Button%CheckBoxNumber% CheckBoxNumber ++ } return UnCheck: UnCheckBoxNumber = 30 loop, 30 { Control, UnCheck,, Button%UnCheckBoxNumber% UnCheckBoxNumber ++ } return ButtonUpdate: Gui, submit, NoHide ;Quick Say Return ButtonDisassemble: Gui, submit, NoHide Disassemble() Return ButtonClean: Gui, submit, NoHide cleaning_loop() Return ButtonCraft: Gui, submit, NoHide craftloop := 1 precraft_loop() Return ; ; Vending ; Vend_Buying() { global ResetVendDefaults() Gui, 2:Add, GroupBox, x16 y10 w100 h63 , Slot A1 Gui, 2:Add, Edit, x26 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_a1, Price Gui, 2:Add, Edit, x26 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_a1, Amount Gui, 2:Add, GroupBox, x126 y10 w100 h63 , Slot A2 Gui, 2:Add, Edit, x136 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_a2, Price Gui, 2:Add, Edit, x136 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_a2, Amount Gui, 2:Add, GroupBox, x236 y10 w100 h63 , Slot A3 Gui, 2:Add, Edit, x246 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_a3, Price Gui, 2:Add, Edit, x246 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_a3, Amount Gui, 2:Add, GroupBox, x346 y10 w100 h63 , Slot A4 Gui, 2:Add, Edit, x356 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_a4, Price Gui, 2:Add, Edit, x356 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_a4, Amount Gui, 2:Add, GroupBox, x456 y10 w100 h63 , Slot A5 Gui, 2:Add, Edit, x466 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_a5, Price Gui, 2:Add, Edit, x466 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_a5, Amount Gui, 2:Add, GroupBox, x16 y81 w100 h63 , Slot B1 Gui, 2:Add, Edit, x26 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_b1, Price Gui, 2:Add, Edit, x26 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_b1, Amount Gui, 2:Add, GroupBox, x126 y81 w100 h63 , Slot B2 Gui, 2:Add, Edit, x136 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_b2, Price Gui, 2:Add, Edit, x136 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_b2, Amount Gui, 2:Add, GroupBox, x236 y81 w100 h63 , Slot B3 Gui, 2:Add, Edit, x246 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_b3, Price Gui, 2:Add, Edit, x246 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_b3, Amount Gui, 2:Add, GroupBox, x346 y81 w100 h63 , Slot B4 Gui, 2:Add, Edit, x356 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_b4, Price Gui, 2:Add, Edit, x356 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_b4, Amount Gui, 2:Add, GroupBox, x456 y81 w100 h63 , Slot B5 Gui, 2:Add, Edit, x466 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_b5, Price Gui, 2:Add, Edit, x466 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_b5, Amount Gui, 2:Add, GroupBox, x16 y152 w100 h63 , Slot C1 Gui, 2:Add, Edit, x26 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_c1, Price Gui, 2:Add, Edit, x26 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_c1, Amount Gui, 2:Add, GroupBox, x126 y152 w100 h63 , Slot C2 Gui, 2:Add, Edit, x136 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_c2, Price Gui, 2:Add, Edit, x136 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_c2, Amount Gui, 2:Add, GroupBox, x236 y152 w100 h63 , Slot C3 Gui, 2:Add, Edit, x246 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_c3, Price Gui, 2:Add, Edit, x246 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_c3, Amount Gui, 2:Add, GroupBox, x346 y152 w100 h63 , Slot C4 Gui, 2:Add, Edit, x356 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_c4, Price Gui, 2:Add, Edit, x356 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_c4, Amount Gui, 2:Add, GroupBox, x456 y152 w100 h63 , Slot C5 Gui, 2:Add, Edit, x466 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_c5, Price Gui, 2:Add, Edit, x466 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_c5, Amount Gui, 2:Add, GroupBox, x16 y223 w100 h63 , Slot D1 Gui, 2:Add, Edit, x26 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_d1, Price Gui, 2:Add, Edit, x26 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_d1, Amount Gui, 2:Add, GroupBox, x126 y223 w100 h63 , Slot D2 Gui, 2:Add, Edit, x136 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_d2, Price Gui, 2:Add, Edit, x136 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_d2, Amount Gui, 2:Add, GroupBox, x236 y223 w100 h63 , Slot D3 Gui, 2:Add, Edit, x246 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_d3, Price Gui, 2:Add, Edit, x246 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_d3, Amount Gui, 2:Add, GroupBox, x346 y223 w100 h63 , Slot D4 Gui, 2:Add, Edit, x356 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_d4, Price Gui, 2:Add, Edit, x356 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_d4, Amount Gui, 2:Add, GroupBox, x456 y223 w100 h63 , Slot D5 Gui, 2:Add, Edit, x466 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_d5, Price Gui, 2:Add, Edit, x466 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_d5, Amount Gui, 2:Add, GroupBox, x16 y294 w100 h63 , Slot E1 Gui, 2:Add, Edit, x26 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_e1, Price Gui, 2:Add, Edit, x26 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_e1, Amount Gui, 2:Add, GroupBox, x126 y294 w100 h63 , Slot E2 Gui, 2:Add, Edit, x136 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_e2, Price Gui, 2:Add, Edit, x136 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_e2, Amount Gui, 2:Add, GroupBox, x236 y294 w100 h63 , Slot E3 Gui, 2:Add, Edit, x246 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_e3, Price Gui, 2:Add, Edit, x246 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_e3, Amount Gui, 2:Add, GroupBox, x346 y294 w100 h63 , Slot E4 Gui, 2:Add, Edit, x356 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_e4, Price Gui, 2:Add, Edit, x356 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_e4, Amount Gui, 2:Add, GroupBox, x456 y294 w100 h63 , Slot E5 Gui, 2:Add, Edit, x466 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_e5, Price Gui, 2:Add, Edit, x466 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_e5, Amount Gui, 2:Add, GroupBox, x16 y365 w100 h63 , Slot F1 Gui, 2:Add, Edit, x26 y379 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_f1, Price Gui, 2:Add, Edit, x26 y402 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_f1, Amount Gui, 2:Add, GroupBox, x126 y365 w100 h63 , Slot F2 Gui, 2:Add, Edit, x136 y379 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_f2, Price Gui, 2:Add, Edit, x136 y402 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_f2, Amount Gui, 2:Add, GroupBox, x236 y365 w100 h63 , Slot F3 Gui, 2:Add, Edit, x246 y379 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_f3, Price Gui, 2:Add, Edit, x246 y402 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_f3, Amount Gui, 2:Add, GroupBox, x346 y365 w100 h63 , Slot F4 Gui, 2:Add, Edit, x356 y379 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_f4, Price Gui, 2:Add, Edit, x356 y402 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_f4, Amount Gui, 2:Add, GroupBox, x456 y365 w100 h63 , Slot F5 Gui, 2:Add, Edit, x466 y379 w80 h20 +Number +Limit12 -Wrap -Multi vslot_buy_price_f5, Price Gui, 2:Add, Edit, x466 y402 w80 h20 +Number +Limit3 -Wrap -Multi vslot_buy_amount_f5, Amount Gui, 2:Add, Text, x175 y435, Shop Name: Gui, 2:Add, Edit, x250 y435 w150 h20 +Limit30 -Wrap -Multi vshop_name_buying, Gui, 2:Add, CheckBox, x206 y465 w80 h30 unChecked vusename_buying, Use This Shop Name Gui, 2:Add, CheckBox, x296 y465 w80 h30 Checked vstart, Click Start Gui, 2:Add, Button, gUpdate_total x20 y450 w100 h30 , Total Cost Gui, 2:Add, Button, gitem_cost x450 y450 w100 h30 , Total Item Cost Gui, 2:Add, Button, gBuy x116 y505 w100 h30 , Set Buying Gui, 2:Add, Button, gClose_Buying x236 y505 w100 h30 , Close Gui, 2:Add, Button, gBoth x356 y505 w100 h30 , Set Both Gui, 2:Show, x704 y150 h550 w570, Cr4ftr0n - Vending Buying - EkopOrez (ver 0.6) } Vend_Selling() { global Gui, 3:Add, GroupBox, x16 y10 w100 h63 , Slot A1 Gui, 3:Add, Edit, x26 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a1, Price Gui, 3:Add, Edit, x26 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a1, Amount Gui, 3:Add, GroupBox, x126 y10 w100 h63 , Slot A2 Gui, 3:Add, Edit, x136 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a2, Price Gui, 3:Add, Edit, x136 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a2, Amount Gui, 3:Add, GroupBox, x236 y10 w100 h63 , Slot A3 Gui, 3:Add, Edit, x246 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a3, Price Gui, 3:Add, Edit, x246 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a3, Amount Gui, 3:Add, GroupBox, x346 y10 w100 h63 , Slot A4 Gui, 3:Add, Edit, x356 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a4, Price Gui, 3:Add, Edit, x356 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a4, Amount Gui, 3:Add, GroupBox, x456 y10 w100 h63 , Slot A5 Gui, 3:Add, Edit, x466 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a5, Price Gui, 3:Add, Edit, x466 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a5, Amount Gui, 3:Add, GroupBox, x566 y10 w100 h63 , Slot A6 Gui, 3:Add, Edit, x576 y24 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_a6, Price Gui, 3:Add, Edit, x576 y47 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_a6, Amount Gui, 3:Add, GroupBox, x16 y81 w100 h63 , Slot B1 Gui, 3:Add, Edit, x26 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b1, Price Gui, 3:Add, Edit, x26 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b1, Amount Gui, 3:Add, GroupBox, x126 y81 w100 h63 , Slot B2 Gui, 3:Add, Edit, x136 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b2, Price Gui, 3:Add, Edit, x136 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b2, Amount Gui, 3:Add, GroupBox, x236 y81 w100 h63 , Slot B3 Gui, 3:Add, Edit, x246 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b3, Price Gui, 3:Add, Edit, x246 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b3, Amount Gui, 3:Add, GroupBox, x346 y81 w100 h63 , Slot B4 Gui, 3:Add, Edit, x356 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b4, Price Gui, 3:Add, Edit, x356 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b4, Amount Gui, 3:Add, GroupBox, x456 y81 w100 h63 , Slot B5 Gui, 3:Add, Edit, x466 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b5, Price Gui, 3:Add, Edit, x466 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b5, Amount Gui, 3:Add, GroupBox, x566 y81 w100 h63 , Slot B6 Gui, 3:Add, Edit, x576 y95 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_b6, Price Gui, 3:Add, Edit, x576 y118 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_b6, Amount Gui, 3:Add, GroupBox, x16 y152 w100 h63 , Slot C1 Gui, 3:Add, Edit, x26 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c1, Price Gui, 3:Add, Edit, x26 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c1, Amount Gui, 3:Add, GroupBox, x126 y152 w100 h63 , Slot C2 Gui, 3:Add, Edit, x136 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c2, Price Gui, 3:Add, Edit, x136 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c2, Amount Gui, 3:Add, GroupBox, x236 y152 w100 h63 , Slot C3 Gui, 3:Add, Edit, x246 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c3, Price Gui, 3:Add, Edit, x246 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c3, Amount Gui, 3:Add, GroupBox, x346 y152 w100 h63 , Slot C4 Gui, 3:Add, Edit, x356 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c4, Price Gui, 3:Add, Edit, x356 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c4, Amount Gui, 3:Add, GroupBox, x456 y152 w100 h63 , Slot C5 Gui, 3:Add, Edit, x466 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c5, Price Gui, 3:Add, Edit, x466 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c5, Amount Gui, 3:Add, GroupBox, x566 y152 w100 h63 , Slot C6 Gui, 3:Add, Edit, x576 y166 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_c6, Price Gui, 3:Add, Edit, x576 y189 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_c6, Amount Gui, 3:Add, GroupBox, x16 y223 w100 h63 , Slot D1 Gui, 3:Add, Edit, x26 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d1, Price Gui, 3:Add, Edit, x26 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d1, Amount Gui, 3:Add, GroupBox, x126 y223 w100 h63 , Slot D2 Gui, 3:Add, Edit, x136 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d2, Price Gui, 3:Add, Edit, x136 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d2, Amount Gui, 3:Add, GroupBox, x236 y223 w100 h63 , Slot D3 Gui, 3:Add, Edit, x246 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d3, Price Gui, 3:Add, Edit, x246 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d3, Amount Gui, 3:Add, GroupBox, x346 y223 w100 h63 , Slot D4 Gui, 3:Add, Edit, x356 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d4, Price Gui, 3:Add, Edit, x356 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d4, Amount Gui, 3:Add, GroupBox, x456 y223 w100 h63 , Slot D5 Gui, 3:Add, Edit, x466 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d5, Price Gui, 3:Add, Edit, x466 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d5, Amount Gui, 3:Add, GroupBox, x566 y223 w100 h63 , Slot D6 Gui, 3:Add, Edit, x576 y237 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_d6, Price Gui, 3:Add, Edit, x576 y260 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_d6, Amount Gui, 3:Add, GroupBox, x16 y294 w100 h63 , Slot E1 Gui, 3:Add, Edit, x26 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e1, Price Gui, 3:Add, Edit, x26 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e1, Amount Gui, 3:Add, GroupBox, x126 y294 w100 h63 , Slot E2 Gui, 3:Add, Edit, x136 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e2, Price Gui, 3:Add, Edit, x136 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e2, Amount Gui, 3:Add, GroupBox, x236 y294 w100 h63 , Slot E3 Gui, 3:Add, Edit, x246 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e3, Price Gui, 3:Add, Edit, x246 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e3, Amount Gui, 3:Add, GroupBox, x346 y294 w100 h63 , Slot E4 Gui, 3:Add, Edit, x356 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e4, Price Gui, 3:Add, Edit, x356 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e4, Amount Gui, 3:Add, GroupBox, x456 y294 w100 h63 , Slot E5 Gui, 3:Add, Edit, x466 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e5, Price Gui, 3:Add, Edit, x466 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e5, Amount Gui, 3:Add, GroupBox, x566 y294 w100 h63 , Slot E6 Gui, 3:Add, Edit, x576 y308 w80 h20 +Number +Limit12 -Wrap -Multi vslot_sell_price_e6, Price Gui, 3:Add, Edit, x576 y331 w80 h20 +Number +Limit3 -Wrap -Multi vslot_sell_amount_e6, Amount Gui, 3:Add, Text, x196 y365, Shop Name: Gui, 3:Add, Edit, x300 y365 w150 h20 +Limit30 -Wrap -Multi vshop_name_selling, Gui, 3:Add, CheckBox, x196 y385 w130 h30 unChecked vusename_selling, Use This Shop Name Gui, 3:Add, CheckBox, x356 y385 w80 h30 Checked vstart2, Click Start Gui, 3:Add, Button,gSell x177 y415 w100 h30 , Set Selling Gui, 3:Add, Button,gClose_Selling x287 y415 w100 h30 , Close Gui, 3:Add, Button,gBoth x397 y415 w100 h30 , Set Both Gui, 3:Show, x647 y150 h460 w680, Cr4ftr0n - Vending Selling - EkopOrez (ver 0.5) } item_cost: Gui, 2:submit, NoHide item_total = 0 WinWaitActive, Cr4ftr0n - Vending Buying KeyWait, LButton, D GuiControlGet, Item_control, FocusV if Item_control contains price { Item_price_control = %Item_control% Item_amount_control := RegExReplace(Item_control, "price", "amount") } if Item_control contains amount { Item_amount_control = %Item_control% Item_price_control := RegExReplace(Item_control, "amount", "price") } Item_amount_control_content := %Item_amount_control% Item_price_control_content := %Item_price_control% if Item_price_control_content != Price if Item_price_control_content > 0 if (Item_amount_control_content = Amount || Item_amount_control_content > 0) { if Item_amount_control_content = Amount { Item_amount_control_content = 999 } item_total := (Item_amount_control_content * Item_price_control_content) } if item_total > 0 { MsgBox The current item buying cost is: %item_total% zulie. } else if item_total < 1 { MsgBox Sorry you need to enter atleast a price. } Return Update_total: Gui, 2:submit, NoHide total_cost = 0 cal_row = a loop, 6 { cal_col = 1 loop, 5 { if slot_buy_price_%cal_row%%cal_col% != Price if slot_buy_price_%cal_row%%cal_col% > 0 if (slot_buy_amount_%cal_row%%cal_col% = Amount || slot_buy_amount_%cal_row%%cal_col% > 0) { if slot_buy_amount_%cal_row%%cal_col% = Amount { slot_buy_amount_%cal_row%%cal_col% = 999 } total_cost += (slot_buy_price_%cal_row%%cal_col% * slot_buy_amount_%cal_row%%cal_col%) } cal_col ++ } if cal_row = e { cal_row = f } if cal_row = d { cal_row = e } if cal_row = c { cal_row = d } if cal_row = b { cal_row = c } if cal_row = a { cal_row = b } } if total_cost > 0 { MsgBox, You current total of buying cost would be: %total_cost% zulie. } else { MsgBox, No cost to calculate. } Return Close_Buying: Gui, 2:Destroy Return Buy: Gui, 2:submit, NoHide DetectROSEActive() sleep, 2500 MouseClick, Left, 560, 130 Buy() SetName() Return Sell: Gui, 3:submit, NoHide DetectROSEActive() sleep, 2500 MouseClick, Left, 495, 130 Sell() SetName() Return Close_Selling: Gui, 3:Destroy Return Both: Gui, 2:submit, NoHide Gui, 3:submit, NoHide if usename_buying = 1 if usename_selling = 1 { MsgBox Both Use this shop name boxes are checked. Please Use only one. Exit } DetectROSEActive() sleep, 1000 MouseClick, Left, 560, 130 Buy() MouseClick, Left, 495, 130 Sell() SetName() return SetName() { global if usename_buying = 1 { MouseClick, Left, 645, 105 sleep, 100 sleep, 100 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} SendInput, {Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete} SendInput, {RAW}%shop_name_buying% } if usename_selling = 1 { MouseClick, Left, 645, 105 sleep, 100 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} sleep, 100 SendInput, {Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete}{Delete} SendInput, {RAW}%shop_name_selling% } if (start = 1 || start2 = 1) { sleep, 100 MouseClick, Left, 638, 398 sleep, 100 } } Buy() { global if slot_buy_price_a1 != Price if slot_buy_price_a1 > 0 if (slot_buy_amount_a1 = Amount || slot_buy_amount_a1 > 0) { BuyX = 480 BuyY = 160 Buy_Price = %slot_buy_price_a1% Buy_Amount = %slot_buy_amount_a1% SetBuy() } if slot_buy_price_a2 != Price if slot_buy_price_a2 > 0 if (slot_buy_amount_a2 != Amount || slot_buy_amount_a2 > 0) { BuyX = 520 BuyY = 160 Buy_Price = %slot_buy_price_a2% Buy_Amount = %slot_buy_amount_a2% SetBuy() } if slot_buy_price_a3 != Price if slot_buy_price_a3 > 0 if (slot_buy_amount_a3 != Amount || slot_buy_amount_a3 > 0) { BuyX = 560 BuyY = 160 Buy_Price = %slot_buy_price_a3% Buy_Amount = %slot_buy_amount_a3% SetBuy() } if slot_buy_price_a4 != Price if slot_buy_price_a4 > 0 if (slot_buy_amount_a4 != Amount || slot_buy_amount_a4 > 0) { BuyX = 600 BuyY = 160 Buy_Price = %slot_buy_price_a4% Buy_Amount = %slot_buy_amount_a4% SetBuy() } if slot_buy_price_a5 != Price if slot_buy_price_a5 > 0 if (slot_buy_amount_a5 != Amount || slot_buy_amount_a5 > 0) { BuyX = 640 BuyY = 160 Buy_Price = %slot_buy_price_a5% Buy_Amount = %slot_buy_amount_a5% SetBuy() } if slot_buy_price_b1 != Price if slot_buy_price_b1 > 0 if (slot_buy_amount_b1 != Amount || slot_buy_amount_b1 > 0) { BuyX = 480 BuyY = 200 Buy_Price = %slot_buy_price_b1% Buy_Amount = %slot_buy_amount_b1% SetBuy() } if slot_buy_price_b2 != Price if slot_buy_price_b2 > 0 if (slot_buy_amount_b2 != Amount || slot_buy_amount_b2 > 0) { BuyX = 520 BuyY = 200 Buy_Price = %slot_buy_price_b2% Buy_Amount = %slot_buy_amount_b2% SetBuy() } if slot_buy_price_b3 != Price if slot_buy_price_b3 > 0 if (slot_buy_amount_b3 != Amount || slot_buy_amount_b3 > 0) { BuyX = 560 BuyY = 200 Buy_Price = %slot_buy_price_b3% Buy_Amount = %slot_buy_amount_b3% SetBuy() } if slot_buy_price_b4 != Price if slot_buy_price_b4 > 0 if (slot_buy_amount_b4 != Amount || slot_buy_amount_b4 > 0) { BuyX = 600 BuyY = 200 Buy_Price = %slot_buy_price_b4% Buy_Amount = %slot_buy_amount_b4% SetBuy() } if slot_buy_price_b5 != Price if slot_buy_price_b5 > 0 if (slot_buy_amount_b5 != Amount || slot_buy_amount_b5 > 0) { BuyX = 640 BuyY = 200 Buy_Price = %slot_buy_price_b5% Buy_Amount = %slot_buy_amount_b5% SetBuy() } if slot_buy_price_c1 != Price if slot_buy_price_c1 > 0 if (slot_buy_amount_c1 != Amount || slot_buy_amount_c1 > 0) { BuyX = 480 BuyY = 240 Buy_Price = %slot_buy_price_c1% Buy_Amount = %slot_buy_amount_c1% SetBuy() } if slot_buy_price_c2 != Price if slot_buy_price_c2 > 0 if (slot_buy_amount_c2 != Amount || slot_buy_amount_c2 > 0) { BuyX = 520 BuyY = 240 Buy_Price = %slot_buy_price_c2% Buy_Amount = %slot_buy_amount_c2% SetBuy() } if slot_buy_price_c3 != Price if slot_buy_price_c3 > 0 if (slot_buy_amount_c3 != Amount || slot_buy_amount_c3 > 0) { BuyX = 560 BuyY = 240 Buy_Price = %slot_buy_price_c3% Buy_Amount = %slot_buy_amount_c3% SetBuy() } if slot_buy_price_c4 != Price if slot_buy_price_c4 > 0 if (slot_buy_amount_c4 != Amount || slot_buy_amount_c4 > 0) { BuyX = 600 BuyY = 240 Buy_Price = %slot_buy_price_c4% Buy_Amount = %slot_buy_amount_c4% SetBuy() } if slot_buy_price_c5 != Price if slot_buy_price_c5 > 0 if (slot_buy_amount_c5 != Amount || slot_buy_amount_c5 > 0) { BuyX = 640 BuyY = 240 Buy_Price = %slot_buy_price_c5% Buy_Amount = %slot_buy_amount_c5% SetBuy() } if slot_buy_price_d1 != Price if slot_buy_price_d1 > 0 if (slot_buy_amount_d1 != Amount || slot_buy_amount_d1 > 0) { BuyX = 480 BuyY = 280 Buy_Price = %slot_buy_price_d1% Buy_Amount = %slot_buy_amount_d1% SetBuy() } if slot_buy_price_d2 != Price if slot_buy_price_d2 > 0 if (slot_buy_amount_d2 != Amount || slot_buy_amount_d2 > 0) { BuyX = 520 BuyY = 280 Buy_Price = %slot_buy_price_d2% Buy_Amount = %slot_buy_amount_d2% SetBuy() } if slot_buy_price_d3 != Price if slot_buy_price_d3 > 0 if (slot_buy_amount_d3 != Amount || slot_buy_amount_d3 > 0) { BuyX = 560 BuyY = 280 Buy_Price = %slot_buy_price_d3% Buy_Amount = %slot_buy_amount_d3% SetBuy() } if slot_buy_price_d4 != Price if slot_buy_price_d4 > 0 if (slot_buy_amount_d4 != Amount || slot_buy_amount_d4 > 0) { BuyX = 600 BuyY = 280 Buy_Price = %slot_buy_price_d4% Buy_Amount = %slot_buy_amount_d4% SetBuy() } if slot_buy_price_d5 != Price if slot_buy_price_d5 > 0 if (slot_buy_amount_d5 != Amount || slot_buy_amount_d5 > 0) { BuyX = 640 BuyY = 280 Buy_Price = %slot_buy_price_d5% Buy_Amount = %slot_buy_amount_d5% SetBuy() } if slot_buy_price_e1 != Price if slot_buy_price_e1 > 0 if (slot_buy_amount_e1 != Amount || slot_buy_amount_e1 > 0) { BuyX = 480 BuyY = 320 Buy_Price = %slot_buy_price_e1% Buy_Amount = %slot_buy_amount_e1% SetBuy() } if slot_buy_price_e2 != Price if slot_buy_price_e2 > 0 if (slot_buy_amount_e2 != Amount || slot_buy_amount_e2 > 0) { BuyX = 520 BuyY = 320 Buy_Price = %slot_buy_price_e2% Buy_Amount = %slot_buy_amount_e2% SetBuy() } if slot_buy_price_e3 != Price if slot_buy_price_e3 > 0 if (slot_buy_amount_e3 != Amount || slot_buy_amount_e3 > 0) { BuyX = 560 BuyY = 320 Buy_Price = %slot_buy_price_e3% Buy_Amount = %slot_buy_amount_e3% SetBuy() } if slot_buy_price_e4 != Price if slot_buy_price_e4 > 0 if (slot_buy_amount_e4 != Amount || slot_buy_amount_e4 > 0) { BuyX = 600 BuyY = 320 Buy_Price = %slot_buy_price_e4% Buy_Amount = %slot_buy_amount_e4% SetBuy() } if slot_buy_price_e5 != Price if slot_buy_price_e5 > 0 if (slot_buy_amount_e5 != Amount || slot_buy_amount_e5 > 0) { BuyX = 640 BuyY = 320 Buy_Price = %slot_buy_price_e5% Buy_Amount = %slot_buy_amount_e5% SetBuy() } if slot_buy_price_f1 != Price if slot_buy_price_f1 > 0 if (slot_buy_amount_f1 != Amount || slot_buy_amount_f1 > 0) { BuyX = 480 BuyY = 365 Buy_Price = %slot_buy_price_f1% Buy_Amount = %slot_buy_amount_f1% SetBuy() } if slot_buy_price_f2 != Price if slot_buy_price_f2 > 0 if (slot_buy_amount_f2 != Amount || slot_buy_amount_f2 > 0) { BuyX = 520 BuyY = 365 Buy_Price = %slot_buy_price_f2% Buy_Amount = %slot_buy_amount_f2% SetBuy() } if slot_buy_price_f3 != Price if slot_buy_price_f3 > 0 if (slot_buy_amount_f3 != Amount || slot_buy_amount_f3 > 0) { BuyX = 560 BuyY = 365 Buy_Price = %slot_buy_price_f3% Buy_Amount = %slot_buy_amount_f3% SetBuy() } if slot_buy_price_f4 != Price if slot_buy_price_f4 > 0 if (slot_buy_amount_f4 != Amount || slot_buy_amount_f4 > 0) { BuyX = 600 BuyY = 365 Buy_Price = %slot_buy_price_f4% Buy_Amount = %slot_buy_amount_f4% SetBuy() } if slot_buy_price_f5 != Price if slot_buy_price_f5 > 0 if (slot_buy_amount_f5 != Amount || slot_buy_amount_f5 > 0) { BuyX = 640 BuyY = 365 Buy_Price = %slot_buy_price_f5% Buy_Amount = %slot_buy_amount_f5% SetBuy() } } Sell() { global if slot_sell_price_a1 != Price if slot_sell_price_a1 > 0 if (slot_sell_amount_a1 = Amount || slot_sell_amount_a1 > 0) { SellX = 190 SellY = 165 Sell_Price = %slot_sell_price_a1% Sell_Amount = %slot_sell_amount_a1% SetSell() } if slot_sell_price_a2 != Price if slot_sell_price_a2 > 0 if (slot_sell_amount_a2 != Amount || slot_sell_amount_a2 > 0) { SellX = 235 SellY = 165 Sell_Price = %slot_sell_price_a2% Sell_Amount = %slot_sell_amount_a2% SetSell() } if slot_sell_price_a3 != Price if slot_sell_price_a3 > 0 if (slot_sell_amount_a3 != Amount || slot_sell_amount_a3 > 0) { SellX = 280 SellY = 165 Sell_Price = %slot_sell_price_a3% Sell_Amount = %slot_sell_amount_a3% SetSell() } if slot_sell_price_a4 != Price if slot_sell_price_a4 > 0 if (slot_sell_amount_a4 != Amount || slot_sell_amount_a4 > 0) { SellX = 325 SellY = 165 Sell_Price = %slot_sell_price_a4% Sell_Amount = %slot_sell_amount_a4% SetSell() } if slot_sell_price_a5 != Price if slot_sell_price_a5 > 0 if (slot_sell_amount_a5 != Amount || slot_sell_amount_a5 > 0) { SellX = 370 SellY = 165 Sell_Price = %slot_sell_price_a5% Sell_Amount = %slot_sell_amount_a5% SetSell() } if slot_sell_price_a6 != Price if slot_sell_price_a6 > 0 if (slot_sell_amount_a6 != Amount || slot_sell_amount_a6 > 0) { SellX = 410 SellY = 165 Sell_Price = %slot_sell_price_a6% Sell_Amount = %slot_sell_amount_a6% SetSell() } if slot_sell_price_b1 != Price if slot_sell_price_b1 > 0 if (slot_sell_amount_b1 != Amount || slot_sell_amount_b1 > 0) { SellX = 190 SellY = 215 Sell_Price = %slot_sell_price_b1% Sell_Amount = %slot_sell_amount_b1% SetSell() } if slot_sell_price_b2 != Price if slot_sell_price_b2 > 0 if (slot_sell_amount_b2 != Amount || slot_sell_amount_b2 > 0) { SellX = 235 SellY = 215 Sell_Price = %slot_sell_price_b2% Sell_Amount = %slot_sell_amount_b2% SetSell() } if slot_sell_price_b3 != Price if slot_sell_price_b3 > 0 if (slot_sell_amount_b3 != Amount || slot_sell_amount_b3 > 0) { SellX = 280 SellY = 215 Sell_Price = %slot_sell_price_b3% Sell_Amount = %slot_sell_amount_b3% SetSell() } if slot_sell_price_b4 != Price if slot_sell_price_b4 > 0 if (slot_sell_amount_b4 != Amount || slot_sell_amount_b4 > 0) { SellX = 325 SellY = 215 Sell_Price = %slot_sell_price_b4% Sell_Amount = %slot_sell_amount_b4% SetSell() } if slot_sell_price_b5 != Price if slot_sell_price_b5 > 0 if (slot_sell_amount_b5 != Amount || slot_sell_amount_b5 > 0) { SellX = 370 SellY = 215 Sell_Price = %slot_sell_price_b5% Sell_Amount = %slot_sell_amount_b5% SetSell() } if slot_sell_price_b6 != Price if slot_sell_price_b6 > 0 if (slot_sell_amount_b6 != Amount || slot_sell_amount_b6 > 0) { SellX = 410 SellY = 215 Sell_Price = %slot_sell_price_b6% Sell_Amount = %slot_sell_amount_b6% SetSell() } if slot_sell_price_c1 != Price if slot_sell_price_c1 > 0 if (slot_sell_amount_c1 != Amount || slot_sell_amount_c1 > 0) { SellX = 190 SellY = 260 Sell_Price = %slot_sell_price_c1% Sell_Amount = %slot_sell_amount_c1% SetSell() } if slot_sell_price_c2 != Price if slot_sell_price_c2 > 0 if (slot_sell_amount_c2 != Amount || slot_sell_amount_c2 > 0) { SellX = 235 SellY = 260 Sell_Price = %slot_sell_price_c2% Sell_Amount = %slot_sell_amount_c2% SetSell() } if slot_sell_price_c3 != Price if slot_sell_price_c3 > 0 if (slot_sell_amount_c3 != Amount || slot_sell_amount_c3 > 0) { SellX = 280 SellY = 260 Sell_Price = %slot_sell_price_c3% Sell_Amount = %slot_sell_amount_c3% SetSell() } if slot_sell_price_c4 != Price if slot_sell_price_c4 > 0 if (slot_sell_amount_c4 != Amount || slot_sell_amount_c4 > 0) { SellX = 325 SellY = 260 Sell_Price = %slot_sell_price_c4% Sell_Amount = %slot_sell_amount_c4% SetSell() } if slot_sell_price_c5 != Price if slot_sell_price_c5 > 0 if (slot_sell_amount_c5 != Amount || slot_sell_amount_c5 > 0) { SellX = 370 SellY = 260 Sell_Price = %slot_sell_price_c5% Sell_Amount = %slot_sell_amount_c5% SetSell() } if slot_sell_price_c6 != Price if slot_sell_price_c6 > 0 if (slot_sell_amount_c6 != Amount || slot_sell_amount_c6 > 0) { SellX = 410 SellY = 260 Sell_Price = %slot_sell_price_c6% Sell_Amount = %slot_sell_amount_c6% SetSell() } if slot_sell_price_d1 != Price if slot_sell_price_d1 > 0 if (slot_sell_amount_d1 != Amount || slot_sell_amount_d1 > 0) { SellX = 190 SellY = 305 Sell_Price = %slot_sell_price_d1% Sell_Amount = %slot_sell_amount_d1% SetSell() } if slot_sell_price_d2 != Price if slot_sell_price_d2 > 0 if (slot_sell_amount_d2 != Amount || slot_sell_amount_d2 > 0) { SellX = 235 SellY = 305 Sell_Price = %slot_sell_price_d2% Sell_Amount = %slot_sell_amount_d2% SetSell() } if slot_sell_price_d3 != Price if slot_sell_price_d3 > 0 if (slot_sell_amount_d3 != Amount || slot_sell_amount_d3 > 0) { SellX = 280 SellY = 305 Sell_Price = %slot_sell_price_d3% Sell_Amount = %slot_sell_amount_d3% SetSell() } if slot_sell_price_d4 != Price if slot_sell_price_d4 > 0 if (slot_sell_amount_d4 != Amount || slot_sell_amount_d4 > 0) { SellX = 325 SellY = 305 Sell_Price = %slot_sell_price_d4% Sell_Amount = %slot_sell_amount_d4% SetSell() } if slot_sell_price_d5 != Price if slot_sell_price_d5 > 0 if (slot_sell_amount_d5 != Amount || slot_sell_amount_d5 > 0) { SellX = 370 SellY = 305 Sell_Price = %slot_sell_price_d5% Sell_Amount = %slot_sell_amount_d5% SetSell() } if slot_sell_price_d6 != Price if slot_sell_price_d6 > 0 if (slot_sell_amount_d6 != Amount || slot_sell_amount_d6 > 0) { SellX = 410 SellY = 305 Sell_Price = %slot_sell_price_d6% Sell_Amount = %slot_sell_amount_d6% SetSell() } if slot_sell_price_e1 != Price if slot_sell_price_e1 > 0 if (slot_sell_amount_e1 != Amount || slot_sell_amount_e1 > 0) { SellX = 190 SellY = 350 Sell_Price = %slot_sell_price_e1% Sell_Amount = %slot_sell_amount_e1% SetSell() } if slot_sell_price_e2 != Price if slot_sell_price_e2 > 0 if (slot_sell_amount_e2 != Amount || slot_sell_amount_e2 > 0) { SellX = 235 SellY = 350 Sell_Price = %slot_sell_price_e2% Sell_Amount = %slot_sell_amount_e2% SetSell() } if slot_sell_price_e3 != Price if slot_sell_price_e3 > 0 if (slot_sell_amount_e3 != Amount || slot_sell_amount_e3 > 0) { SellX = 280 SellY = 350 Sell_Price = %slot_sell_price_e3% Sell_Amount = %slot_sell_amount_e3% SetSell() } if slot_sell_price_e4 != Price if slot_sell_price_e4 > 0 if (slot_sell_amount_e4 != Amount || slot_sell_amount_e4 > 0) { SellX = 325 SellY = 350 Sell_Price = %slot_sell_price_e4% Sell_Amount = %slot_sell_amount_e4% SetSell() } if slot_sell_price_e5 != Price if slot_sell_price_e5 > 0 if (slot_sell_amount_e5 != Amount || slot_sell_amount_e5 > 0) { SellX = 370 SellY = 350 Sell_Price = %slot_sell_price_e5% Sell_Amount = %slot_sell_amount_e5% SetSell() } if slot_sell_price_e6 != Price if slot_sell_price_e6 > 0 if (slot_sell_amount_e6 != Amount || slot_sell_amount_e6 > 0) { SellX = 410 SellY = 350 Sell_Price = %slot_sell_price_e6% Sell_Amount = %slot_sell_amount_e6% SetSell() } } SetBuy() { global DetectROSEActive() sleep, 300 MouseClick, Left, BuyX, BuyY sleep, 300 MouseClick, Left, 580, 398 sleep, 300 MouseClick, Left, 900, 535 sleep, 300 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} sleep, 300 SendInput, %Buy_Price% sleep, 300 MouseClick, Left, 845, 560 sleep, 300 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} sleep, 300 if Buy_Amount = Amount { Buy_Amount = 999 } SendInput, %Buy_Amount% sleep, 300 MouseClick, Left, 905, 583 sleep, 300 } SetSell() { global DetectROSEActive() if breakloop = 1 { breakloop = 0 Exit } sleep, 300 MouseClickDrag, Left, SellX, SellY, 480, 160 sleep, 300 MouseClick, Left, 900, 535 sleep, 300 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} sleep, 300 SendInput, %Sell_Price% sleep, 300 if Sell_Amount != Amount { MouseClick, Left, 845, 560 sleep, 300 SendInput, {BackSpace}{BackSpace}{BackSpace}{BackSpace}{BackSpace} sleep, 300 SendInput, %Sell_Amount% sleep, 300 } MouseClick, Left, 905, 583 sleep, 300 } ResetVendDefaults() { start = 0 start2 = 0 usename_buying = 0 usename_selling = 0 } ; ; Cleaning ; hotkey_clean_loop() { global InputBox, amount, Clean Dirty, (Make sure dirty item is on F3) How many Dirties do you want to clean off (Right click on confirm box),100 , 250 ifMsgbox, Cancel { Exit } DetectROSEActive() sleep, 2500 Send, {F3} KeyWait, RButton, D MouseGetPos, buttonx, buttony MouseClick, left, buttonx, buttony sleep, 1000 Loop, %amount% { if breakloop = 1 { breakloop = 0 break } Send, {F3} sleep, 1000 MouseClick, left, buttonx, buttony sleep, 100 } } cleaning_loop() { global DetectROSEActive() sleep, 1000 if f1 > 0 { clean_amount := f1 fkey = F1 sleep, 100 clean_loop() } if f2 > 0 { clean_amount := f2 fkey = F2 sleep, 100 clean_loop() } if f3 > 0 { clean_amount := f3 fkey = F3 sleep, 100 clean_loop() } if f4 > 0 { clean_amount := f4 fkey = F4 sleep, 100 clean_loop() } if f5 > 0 { clean_amount := f5 fkey = F5 sleep, 100 clean_loop() } if f6 > 0 { clean_amount := f6 fkey = F6 sleep, 100 clean_loop() } if f7 > 0 { clean_amount := f7 fkey = F7 sleep, 100 clean_loop() } if f8 > 0 { clean_amount := f8 fkey = F8 sleep, 100 clean_loop() } ;Alt Fkeys if af1 > 0 { clean_amount := af1 fkey = Shift Down}{Control Down}{F1 sleep, 100 clean_loop() } if af2 > 0 { clean_amount := af2 fkey = Shift Down}{Control Down}{F2 sleep, 100 clean_loop() } if af3 > 0 { clean_amount := af3 fkey = Shift Down}{Control Down}{F3 sleep, 100 clean_loop() } if af4 > 0 { clean_amount := af4 fkey = Shift Down}{Control Down}{F4 sleep, 100 clean_loop() } if af5 > 0 { clean_amount := af5 fkey = Shift Down}{Control Down}{F5 sleep, 100 clean_loop() } if af6 > 0 { clean_amount := af6 fkey = Shift Down}{Control Down}{F6 sleep, 100 clean_loop() } if af7 > 0 { clean_amount := af7 fkey = Shift Down}{Control Down}{F7 sleep, 100 clean_loop() } if af8 > 0 { clean_amount := af8 fkey = Shift Down}{Control Down}{F8 sleep, 100 clean_loop() } } clean_loop() { global Loop, %clean_amount% { if breakloop = 1 { breakloop = 0 break } DetectROSEActive() Send, {%fkey%} sleep, 1000 if RRE = 0 { MouseClick, left, 840, 575 sleep, 100 } } } Clean_With_MouseClick() { global if Clean_With_MouseClick = 1 { Clean_With_MouseClick = 0 Exit } if (Clean_With_MouseClick = 0 || Clean_With_MouseClick = "") { Clean_With_MouseClick = 1 Exit } } ; ; Pots ; precraft_loop() { global total_pots = 0 total_pots += %hp% total_pots += %mp% total_pots += %purify% total_pots += %mspd% total_pots += %def% total_pots += %atk% total_pots += %def% total_pots += %acc% total_pots += %dodge% total_pots += %atkspd% total_pots += %crit% needwater_pots = %total_pots% needwater_pots *= 2 watertotal = 12987 beakertotal = 6993 if total_pots > 0 { MsgBox, 4,,Would you like to create the %total_pots% buff potions? Distilled Water: %needwater_pots% Empty Beaker: %total_pots% needed. IfMsgBox Yes { Crafting_pots = 1 MatAmount = 3 LoadPotMatVar() sleep 100 DetectROSEActive() sleep, 1000 hp_class() } IfMsgBox No { Crafting_pots = 0 Exit } } else { MsgBox Sorry not a craftable amount. Crafting_pots = 0 } } ;HP Stuff hp_class() { global if hp > 0 if hp != Taurus { hp_switch() amount = %hp% Mat_1_Amount = %amount% hp = 0 sleep, 100 craft_loop() } mp_class() } hp_switch() { global CurrPot := HP Mat_1_X := 280 Mat_1_Y := 305 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 190 DoNotDragMats = 0 } ;MP Stuff mp_class() { global if mp > 0 if mp != Virgo { mp_switch() amount = %mp% Mat_1_Amount = %amount% mp = 0 sleep, 100 craft_loop() } purify_class() } mp_switch() { global CurrPot := MP Mat_1_X := 325 Mat_1_Y := 305 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 203 DoNotDragMats = 0 } ;Purify Stuff purify_class() { global if purify > 0 if purify != Scorpius { purify_switch() amount = %purify% Mat_1_Amount = %amount% purify = 0 sleep, 100 craft_loop() } mspd_class() } purify_switch() { global CurrPot := Purify Mat_1_X := 370 Mat_1_Y := 305 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 216 DoNotDragMats = 0 } ;MSPD Stuff mspd_class() { global if mspd > 0 if mspd != Libra { mspd_switch() amount = %mspd% Mat_1_Amount = %amount% mspd = 0 sleep, 100 craft_loop() } def_class() } mspd_switch() { global CurrPot := MSPD Mat_1_X := 410 Mat_1_Y := 305 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 229 DoNotDragMats = 0 } ;Def Stuff def_class() { global if def > 0 if def != Saggitarius { def_switch() amount = %def% Mat_1_Amount = %amount% def = 0 sleep, 100 craft_loop() } atk_class() } def_switch() { global CurrPot := DEF Mat_1_X := 190 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 242 DoNotDragMats = 0 } ;atk Stuff atk_class() { global if atk > 0 if atk != Leo { atk_switch() amount = %atk% Mat_1_Amount = %amount% atk = 0 sleep, 100 craft_loop() } mdef_class() } atk_switch() { global CurrPot := ATK Mat_1_X := 235 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 254 DoNotDragMats = 0 } ;mdef Stuff mdef_class() { global if mdef > 0 if mdef != Capricornus { mdef_switch() amount = %mdef% Mat_1_Amount = %amount% mdef = 0 sleep, 100 craft_loop() } acc_class() } mdef_switch() { global CurrPot := MDEF Mat_1_X := 280 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 266 DoNotDragMats = 0 } ;acc Stuff acc_class() { global if acc > 0 if acc != Cancer { acc_switch() amount = %acc% Mat_1_Amount = %amount% acc = 0 sleep, 100 craft_loop() } dodge_class() } acc_switch() { global CurrPot := ACC Mat_1_X := 325 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 280 DoNotDragMats = 0 } ;dodge Stuff dodge_class() { global if dodge > 0 if dodge != Aries { dodge_switch() amount = %dodge% Mat_1_Amount = %amount% dodge = 0 sleep, 100 craft_loop() } atkspd_class() } dodge_switch() { global CurrPot := DODGE Mat_1_X := 370 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 292 DoNotDragMats = 0 } ;atkspd Stuff atkspd_class() { global if atkspd > 0 if atkspd != Leo { atkspd_switch() amount = %atkspd% Mat_1_Amount = %amount% atkspd = 0 sleep, 100 craft_loop() } crit_class() } atkspd_switch() { global CurrPot := ATKSPD Mat_1_X := 235 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 305 DoNotDragMats = 0 } ;crit Stuff crit_class() { global if crit > 0 if crit != Gemini { crit_switch() amount = %crit% Mat_1_Amount = %amount% sleep, 100 craft_loop() crit = 0 sleep, 200 } MsgBox Operation has been completed. } crit_switch() { global CurrPot := CRIT Mat_1_X := 410 Mat_1_Y := 350 sleep, 100 MouseClick, left, 755, 157 MouseClick, left, 575, 319 DoNotDragMats = 0 } Buy_Stacks() { global TryAmount = 0 MsgBox Right Click on the item you want to buy. DetectROSEActive() KeyWait, RButton, D MouseGetPos, item_buy_x, item_buy_y PixelGetColor, Buy_Item_Color, item_buy_x - 2, item_buy_y - 2 Inputbox, item_buy_size, How big do you want your stacks? Inputbox, item_buy_amount, How many stacks would you like to buy? item_buy_cost := item_buy_size * item_buy_amount loop, %item_buy_amount% { DetectROSEActive() loop, { if breakloop = 1 { breakloop = 0 break } DetectROSEActive() PixelGetColor, Buy_Item_Color_Temp, item_buy_x - 2, item_buy_y - 2 if Buy_Item_Color = %Buy_Item_Color_Temp% { break } } MouseClickDrag, Left, item_buy_x, item_buy_y, Inv_A6_X, Inv_A6_Y sleep, 250 if item_buy_size > 0 { loop, { if breakloop = 1 { breakloop = 0 break } DetectROSEActive() PixelGetColor, Buy_TitleBar_Color_Temp, Buy_TitleBar_X, Buy_TitleBar_Y,0 if Buy_TitleBar_Color = %Buy_TitleBar_Color_Temp% { break } if UsingNetBook = 1 { if TryAmount > 2 { MouseClick, Left, Inv_A6_X, Inv_A6_Y, U sleep, 250 TryAmount = 0 } TryAmount ++ } } sleep, 250 Send, %item_buy_size% sleep 250 Send, {Enter} sleep, 250 } } } ; ; Crafting ; craft_loop() { global PreGenericCraftSetup() Loop, %amount% { DetectROSEActive() MP_Pause = 0 detectMP() if breakloop = 1 { breakloop = 0 break } Working_Mat = 1 CheckMatType() sleep, 100 Working_Mat = 2 CheckMatType() if MatAmount >= 3 { sleep, 100 Working_Mat = 3 CheckMatType() } if MatAmount >= 4 { sleep, 100 Working_Mat = 4 CheckMatType() } sleep, 100 detectMP() sleep, 100 MouseClick, left, Craft_Begin_Button_X, Craft_Begin_Button_Y MatAmountCalc() sleep, 100 if breakloop = 1 { breakloop = 0 break } Detect_Crafting_confirm() sleep, 100 DoNotDragMats = 1 } } MacroCraft() { loop, { DetectROSEActive() if breakloop = 1 { breakloop = 0 break } sleep, 300 KeyWait, LButton, D MouseGetPos, MarcoCraft_x, MarcoCraft_y DetectROSEActive() if breakloop = 1 { breakloop = 0 break } Detect_Crafting_confirm() MouseMove, MarcoCraft_x, MarcoCraft_y } } MatAmountCalc() { global Working_Mat = 1 loop, %MatAmount% { Mat_%Working_Mat%_Amount -- Working_Mat ++ } } DragMat() { global PixelGetColor, DragMat_Color, Mat_%Working_Mat%_X, Mat_%Working_Mat%_Y,0 loop, { DetectROSEActive() if breakloop = 1 { break } MouseClickDrag, left, Mat_%Working_Mat%_X, Mat_%Working_Mat%_Y, Craft_Window_X, Craft_Window_Y sleep, 300 PixelGetColor, DragMat_Color_Sample, Mat_%Working_Mat%_X, Mat_%Working_Mat%_Y,0 if (DragMat_Color <> DragMat_Color_Sample) { sleep, 300 Return } sleep, 300 } } MPRecharge() { global if (UseFood = 1 && UseCleric = 1) { MsgBox Your dumb only use one Exit } if (UseFood = 1 && UseCleric <> 1) { send, {f9} send, {f%food_fkey%} } if (UseCleric = 1 && UseFood <> 1) { CoordMode, Mouse, Screen MouseClick, Right, 500, 500 DetectROSEActive() sleep, 1000 DropManaFire() MouseClick, Right, -500, 500 CoordMode, Mouse, Relative } } Detect_Crafting_confirm() { global MPRecharge() Loop, { if breakloop = 1 { break } DetectROSEActive() PixelGetColor, TitleBar_Color_Sample, TitleBar_X, TitleBar_Y,0 if TitleBar_Color_Sample = %TitleBar_Color% { MouseClick, left, TitleBar_Confirm_X, TitleBar_Confirm_Y Return } sleep, 200 } } detectMP() { global loop, { if breakloop = 1 { break } DetectROSEActive() PixelGetColor, pixelcolour_mpA, DetectMP_Location_A, DetectMP_Location_Y,0 PixelGetColor, pixelcolour_mpB, DetectMP_Location_B, DetectMP_Location_Y,0 if pixelcolour_mpA = DetectMP_ColourA { if pixelcolour_mpB <> DetectMP_ColourB { MPRecharge() } Return } if pixelcolour_mpA <> DetectMP_ColourA { MPRecharge() Return } sleep 200 } } CheckMatType() { global DetectROSEActive() if (Mat_%Working_Mat%_Amount < 1 || Mat_%Working_Mat%_Amount = "" ) { Curr_Mat = %Working_Mat% SetMatCords() DoNotDragMats = 0 } if Mat_%Working_Mat%_Type = "" || Mat_%Working_Mat%_Type = "Mat Type" { Mat_%Working_Mat%_Type = Mat } if (DoNotDragMats = 0 || DoNotDragMats = "") { SelectInvertoryTypeTab() sleep 300 DragMat() sleep 300 DoNotDragMats = 1 } } SelectInvertoryTypeTab() { global loop, { DetectROSEActive() if breakloop = 1 { break } Mat_Type_Actual_Var = Mat_%Working_Mat%_Type Mat_Type_Useable_Var := %Mat_Type_Actual_Var% sleep, 300 MouseClick, left, Inv_Win_%Mat_Type_Useable_Var%_X, Inv_Win_%Mat_Type_Useable_Var%_Y sleep, 200 PixelGetColor, Inv_Win_Tab_Colour_Sample, Inv_Win_%Mat_Type_Useable_Var%_X, Inv_Win_%Mat_Type_Useable_Var%_Y,0 if (Inv_Win_%Mat_Type_Useable_Var%_Colour = Inv_Win_Tab_Colour_Sample) { Return } sleep, 300 } } MatSelectionGUI() { global Gui, 4:Add, Tab2, x6 y7 w670 h260 +, Mat 1|Mat 2|Mat 3|Mat 4 ; ; Mat 1 ; Gui, 4:Tab, Mat 1 Gui, 4:Add, CheckBox, x22 y50 w80 h30 UnChecked Border vMat_1_A1, Inv Slot - A1 Gui, 4:Add, CheckBox, x112 y50 w80 h30 UnChecked Border vMat_1_A2, Inv Slot - A2 Gui, 4:Add, CheckBox, x202 y50 w80 h30 UnChecked Border vMat_1_A3, Inv Slot - A3 Gui, 4:Add, CheckBox, x292 y50 w80 h30 UnChecked Border vMat_1_A4, Inv Slot - A4 Gui, 4:Add, CheckBox, x382 y50 w80 h30 UnChecked Border vMat_1_A5, Inv Slot - A5 Gui, 4:Add, CheckBox, x472 y50 w80 h30 UnChecked Border vMat_1_A6, Inv Slot - A6 Gui, 4:Add, CheckBox, x22 y90 w80 h30 UnChecked Border vMat_1_B1, Inv Slot - B1 Gui, 4:Add, CheckBox, x112 y90 w80 h30 UnChecked Border vMat_1_B2, Inv Slot - B2 Gui, 4:Add, CheckBox, x202 y90 w80 h30 UnChecked Border vMat_1_B3, Inv Slot - B3 Gui, 4:Add, CheckBox, x292 y90 w80 h30 UnChecked Border vMat_1_B4, Inv Slot - B4 Gui, 4:Add, CheckBox, x382 y90 w80 h30 UnChecked Border vMat_1_B5, Inv Slot - B5 Gui, 4:Add, CheckBox, x472 y90 w80 h30 UnChecked Border vMat_1_B6, Inv Slot - B6 Gui, 4:Add, CheckBox, x22 y130 w80 h30 UnChecked Border vMat_1_C1, Inv Slot - C1 Gui, 4:Add, CheckBox, x112 y130 w80 h30 UnChecked Border vMat_1_C2, Inv Slot - C2 Gui, 4:Add, CheckBox, x202 y130 w80 h30 UnChecked Border vMat_1_C3, Inv Slot - C3 Gui, 4:Add, CheckBox, x292 y130 w80 h30 UnChecked Border vMat_1_C4, Inv Slot - C4 Gui, 4:Add, CheckBox, x382 y130 w80 h30 UnChecked Border vMat_1_C5, Inv Slot - C5 Gui, 4:Add, CheckBox, x472 y130 w80 h30 UnChecked Border vMat_1_C6, Inv Slot - C6 Gui, 4:Add, CheckBox, x22 y170 w80 h30 UnChecked Border vMat_1_D1, Inv Slot - D1 Gui, 4:Add, CheckBox, x112 y170 w80 h30 UnChecked Border vMat_1_D2, Inv Slot - D2 Gui, 4:Add, CheckBox, x202 y170 w80 h30 UnChecked Border vMat_1_D3, Inv Slot - D3 Gui, 4:Add, CheckBox, x292 y170 w80 h30 UnChecked Border vMat_1_D4, Inv Slot - D4 Gui, 4:Add, CheckBox, x382 y170 w80 h30 UnChecked Border vMat_1_D5, Inv Slot - D5 Gui, 4:Add, CheckBox, x472 y170 w80 h30 UnChecked Border vMat_1_D6, Inv Slot - D6 Gui, 4:Add, CheckBox, x22 y210 w80 h30 UnChecked Border vMat_1_E1, Inv Slot - E1 Gui, 4:Add, CheckBox, x112 y210 w80 h30 UnChecked Border vMat_1_E2, Inv Slot - E2 Gui, 4:Add, CheckBox, x202 y210 w80 h30 UnChecked Border vMat_1_E3, Inv Slot - E3 Gui, 4:Add, CheckBox, x292 y210 w80 h30 UnChecked Border vMat_1_E4, Inv Slot - E4 Gui, 4:Add, CheckBox, x382 y210 w80 h30 UnChecked Border vMat_1_E5, Inv Slot - E5 Gui, 4:Add, CheckBox, x472 y210 w80 h30 UnChecked Border vMat_1_E6, Inv Slot - E6 Gui, 4:Add, Edit, x572 y110 w80 h20 vMat_1_Amount_Master -Wrap -Multi, How Many Crafts? Gui, 4:Add, DropDownList, x22 x572 y140 w80 h30 vMat_1_Type r4, Mat Type||Mat|Consume|Equip Gui, 4:Add, Button, gUncheck_Mat1 x572 y35 w90 h30 , Uncheck All Gui, 4:Add, Button, gCheck_Mat1 x572 y70 w90 h30 , Check All Gui, 4:Add, Button, gSet_Mats x572 y170 w90 h30 , Set All Mats Gui, 4:Add, Button, gClose_Mats x572 y210 w90 h30 , Close ; ; Mat 2 ; Gui, 4:Tab, Mat 2 Gui, 4:Add, CheckBox, x22 y50 w80 h30 UnChecked Border vMat_2_A1, Inv Slot - A1 Gui, 4:Add, CheckBox, x112 y50 w80 h30 UnChecked Border vMat_2_A2, Inv Slot - A2 Gui, 4:Add, CheckBox, x202 y50 w80 h30 UnChecked Border vMat_2_A3, Inv Slot - A3 Gui, 4:Add, CheckBox, x292 y50 w80 h30 UnChecked Border vMat_2_A4, Inv Slot - A4 Gui, 4:Add, CheckBox, x382 y50 w80 h30 UnChecked Border vMat_2_A5, Inv Slot - A5 Gui, 4:Add, CheckBox, x472 y50 w80 h30 UnChecked Border vMat_2_A6, Inv Slot - A6 Gui, 4:Add, CheckBox, x22 y90 w80 h30 UnChecked Border vMat_2_B1, Inv Slot - B1 Gui, 4:Add, CheckBox, x112 y90 w80 h30 UnChecked Border vMat_2_B2, Inv Slot - B2 Gui, 4:Add, CheckBox, x202 y90 w80 h30 UnChecked Border vMat_2_B3, Inv Slot - B3 Gui, 4:Add, CheckBox, x292 y90 w80 h30 UnChecked Border vMat_2_B4, Inv Slot - B4 Gui, 4:Add, CheckBox, x382 y90 w80 h30 UnChecked Border vMat_2_B5, Inv Slot - B5 Gui, 4:Add, CheckBox, x472 y90 w80 h30 UnChecked Border vMat_2_B6, Inv Slot - B6 Gui, 4:Add, CheckBox, x22 y130 w80 h30 UnChecked Border vMat_2_C1, Inv Slot - C1 Gui, 4:Add, CheckBox, x112 y130 w80 h30 UnChecked Border vMat_2_C2, Inv Slot - C2 Gui, 4:Add, CheckBox, x202 y130 w80 h30 UnChecked Border vMat_2_C3, Inv Slot - C3 Gui, 4:Add, CheckBox, x292 y130 w80 h30 UnChecked Border vMat_2_C4, Inv Slot - C4 Gui, 4:Add, CheckBox, x382 y130 w80 h30 UnChecked Border vMat_2_C5, Inv Slot - C5 Gui, 4:Add, CheckBox, x472 y130 w80 h30 UnChecked Border vMat_2_C6, Inv Slot - C6 Gui, 4:Add, CheckBox, x22 y170 w80 h30 UnChecked Border vMat_2_D1, Inv Slot - D1 Gui, 4:Add, CheckBox, x112 y170 w80 h30 UnChecked Border vMat_2_D2, Inv Slot - D2 Gui, 4:Add, CheckBox, x202 y170 w80 h30 UnChecked Border vMat_2_D3, Inv Slot - D3 Gui, 4:Add, CheckBox, x292 y170 w80 h30 UnChecked Border vMat_2_D4, Inv Slot - D4 Gui, 4:Add, CheckBox, x382 y170 w80 h30 UnChecked Border vMat_2_D5, Inv Slot - D5 Gui, 4:Add, CheckBox, x472 y170 w80 h30 UnChecked Border vMat_2_D6, Inv Slot - D6 Gui, 4:Add, CheckBox, x22 y210 w80 h30 UnChecked Border vMat_2_E1, Inv Slot - E1 Gui, 4:Add, CheckBox, x112 y210 w80 h30 UnChecked Border vMat_2_E2, Inv Slot - E2 Gui, 4:Add, CheckBox, x202 y210 w80 h30 UnChecked Border vMat_2_E3, Inv Slot - E3 Gui, 4:Add, CheckBox, x292 y210 w80 h30 UnChecked Border vMat_2_E4, Inv Slot - E4 Gui, 4:Add, CheckBox, x382 y210 w80 h30 UnChecked Border vMat_2_E5, Inv Slot - E5 Gui, 4:Add, CheckBox, x472 y210 w80 h30 UnChecked Border vMat_2_E6, Inv Slot - E6 Gui, 4:Add, Edit, x572 y110 w80 h20 vMat_2_Amount_Master -Wrap -Multi, How Many Crafts? Gui, 4:Add, DropDownList, x22 x572 y140 w80 h30 vMat_2_Type r4, Mat Type||Mat|Consume|Equip Gui, 4:Add, Button, gUncheck_Mat2 x572 y35 w90 h30 , Uncheck All Gui, 4:Add, Button, gCheck_Mat2 x572 y70 w90 h30 , Check All Gui, 4:Add, Button, gSet_Mats x572 y170 w90 h30 , Set All Mats Gui, 4:Add, Button, gClose_Mats x572 y210 w90 h30 , Close ; ; Mat 3 ; Gui, 4:Tab, Mat 3 Gui, 4:Add, CheckBox, x22 y50 w80 h30 UnChecked Border vMat_3_A1, Inv Slot - A1 Gui, 4:Add, CheckBox, x112 y50 w80 h30 UnChecked Border vMat_3_A2, Inv Slot - A2 Gui, 4:Add, CheckBox, x202 y50 w80 h30 UnChecked Border vMat_3_A3, Inv Slot - A3 Gui, 4:Add, CheckBox, x292 y50 w80 h30 UnChecked Border vMat_3_A4, Inv Slot - A4 Gui, 4:Add, CheckBox, x382 y50 w80 h30 UnChecked Border vMat_3_A5, Inv Slot - A5 Gui, 4:Add, CheckBox, x472 y50 w80 h30 UnChecked Border vMat_3_A6, Inv Slot - A6 Gui, 4:Add, CheckBox, x22 y90 w80 h30 UnChecked Border vMat_3_B1, Inv Slot - B1 Gui, 4:Add, CheckBox, x112 y90 w80 h30 UnChecked Border vMat_3_B2, Inv Slot - B2 Gui, 4:Add, CheckBox, x202 y90 w80 h30 UnChecked Border vMat_3_B3, Inv Slot - B3 Gui, 4:Add, CheckBox, x292 y90 w80 h30 UnChecked Border vMat_3_B4, Inv Slot - B4 Gui, 4:Add, CheckBox, x382 y90 w80 h30 UnChecked Border vMat_3_B5, Inv Slot - B5 Gui, 4:Add, CheckBox, x472 y90 w80 h30 UnChecked Border vMat_3_B6, Inv Slot - B6 Gui, 4:Add, CheckBox, x22 y130 w80 h30 UnChecked Border vMat_3_C1, Inv Slot - C1 Gui, 4:Add, CheckBox, x112 y130 w80 h30 UnChecked Border vMat_3_C2, Inv Slot - C2 Gui, 4:Add, CheckBox, x202 y130 w80 h30 UnChecked Border vMat_3_C3, Inv Slot - C3 Gui, 4:Add, CheckBox, x292 y130 w80 h30 UnChecked Border vMat_3_C4, Inv Slot - C4 Gui, 4:Add, CheckBox, x382 y130 w80 h30 UnChecked Border vMat_3_C5, Inv Slot - C5 Gui, 4:Add, CheckBox, x472 y130 w80 h30 UnChecked Border vMat_3_C6, Inv Slot - C6 Gui, 4:Add, CheckBox, x22 y170 w80 h30 UnChecked Border vMat_3_D1, Inv Slot - D1 Gui, 4:Add, CheckBox, x112 y170 w80 h30 UnChecked Border vMat_3_D2, Inv Slot - D2 Gui, 4:Add, CheckBox, x202 y170 w80 h30 UnChecked Border vMat_3_D3, Inv Slot - D3 Gui, 4:Add, CheckBox, x292 y170 w80 h30 UnChecked Border vMat_3_D4, Inv Slot - D4 Gui, 4:Add, CheckBox, x382 y170 w80 h30 UnChecked Border vMat_3_D5, Inv Slot - D5 Gui, 4:Add, CheckBox, x472 y170 w80 h30 UnChecked Border vMat_3_D6, Inv Slot - D6 Gui, 4:Add, CheckBox, x22 y210 w80 h30 UnChecked Border vMat_3_E1, Inv Slot - E1 Gui, 4:Add, CheckBox, x112 y210 w80 h30 UnChecked Border vMat_3_E2, Inv Slot - E2 Gui, 4:Add, CheckBox, x202 y210 w80 h30 UnChecked Border vMat_3_E3, Inv Slot - E3 Gui, 4:Add, CheckBox, x292 y210 w80 h30 UnChecked Border vMat_3_E4, Inv Slot - E4 Gui, 4:Add, CheckBox, x382 y210 w80 h30 UnChecked Border vMat_3_E5, Inv Slot - E5 Gui, 4:Add, CheckBox, x472 y210 w80 h30 UnChecked Border vMat_3_E6, Inv Slot - E6 Gui, 4:Add, Edit, x572 y110 w80 h20 vMat_3_Amount_Master -Wrap -Multi, How Many Crafts? Gui, 4:Add, DropDownList, x22 x572 y140 w80 h30 vMat_3_Type r4, Mat Type||Mat|Consume|Equip Gui, 4:Add, Button, gUncheck_Mat3 x572 y35 w90 h30 , Uncheck All Gui, 4:Add, Button, gCheck_Mat3 x572 y70 w90 h30 , Check All Gui, 4:Add, Button, gSet_Mats x572 y170 w90 h30 , Set All Mats Gui, 4:Add, Button, gClose_Mats x572 y210 w90 h30 , Close ; ; Mat 4 ; Gui, 4:Tab, Mat 4 Gui, 4:Add, CheckBox, x22 y50 w80 h30 UnChecked Border vMat_4_A1, Inv Slot - A1 Gui, 4:Add, CheckBox, x112 y50 w80 h30 UnChecked Border vMat_4_A2, Inv Slot - A2 Gui, 4:Add, CheckBox, x202 y50 w80 h30 UnChecked Border vMat_4_A3, Inv Slot - A3 Gui, 4:Add, CheckBox, x292 y50 w80 h30 UnChecked Border vMat_4_A4, Inv Slot - A4 Gui, 4:Add, CheckBox, x382 y50 w80 h30 UnChecked Border vMat_4_A5, Inv Slot - A5 Gui, 4:Add, CheckBox, x472 y50 w80 h30 UnChecked Border vMat_4_A6, Inv Slot - A6 Gui, 4:Add, CheckBox, x22 y90 w80 h30 UnChecked Border vMat_4_B1, Inv Slot - B1 Gui, 4:Add, CheckBox, x112 y90 w80 h30 UnChecked Border vMat_4_B2, Inv Slot - B2 Gui, 4:Add, CheckBox, x202 y90 w80 h30 UnChecked Border vMat_4_B3, Inv Slot - B3 Gui, 4:Add, CheckBox, x292 y90 w80 h30 UnChecked Border vMat_4_B4, Inv Slot - B4 Gui, 4:Add, CheckBox, x382 y90 w80 h30 UnChecked Border vMat_4_B5, Inv Slot - B5 Gui, 4:Add, CheckBox, x472 y90 w80 h30 UnChecked Border vMat_4_B6, Inv Slot - B6 Gui, 4:Add, CheckBox, x22 y130 w80 h30 UnChecked Border vMat_4_C1, Inv Slot - C1 Gui, 4:Add, CheckBox, x112 y130 w80 h30 UnChecked Border vMat_4_C2, Inv Slot - C2 Gui, 4:Add, CheckBox, x202 y130 w80 h30 UnChecked Border vMat_4_C3, Inv Slot - C3 Gui, 4:Add, CheckBox, x292 y130 w80 h30 UnChecked Border vMat_4_C4, Inv Slot - C4 Gui, 4:Add, CheckBox, x382 y130 w80 h30 UnChecked Border vMat_4_C5, Inv Slot - C5 Gui, 4:Add, CheckBox, x472 y130 w80 h30 UnChecked Border vMat_4_C6, Inv Slot - C6 Gui, 4:Add, CheckBox, x22 y170 w80 h30 UnChecked Border vMat_4_D1, Inv Slot - D1 Gui, 4:Add, CheckBox, x112 y170 w80 h30 UnChecked Border vMat_4_D2, Inv Slot - D2 Gui, 4:Add, CheckBox, x202 y170 w80 h30 UnChecked Border vMat_4_D3, Inv Slot - D3 Gui, 4:Add, CheckBox, x292 y170 w80 h30 UnChecked Border vMat_4_D4, Inv Slot - D4 Gui, 4:Add, CheckBox, x382 y170 w80 h30 UnChecked Border vMat_4_D5, Inv Slot - D5 Gui, 4:Add, CheckBox, x472 y170 w80 h30 UnChecked Border vMat_4_D6, Inv Slot - D6 Gui, 4:Add, CheckBox, x22 y210 w80 h30 UnChecked Border vMat_4_E1, Inv Slot - E1 Gui, 4:Add, CheckBox, x112 y210 w80 h30 UnChecked Border vMat_4_E2, Inv Slot - E2 Gui, 4:Add, CheckBox, x202 y210 w80 h30 UnChecked Border vMat_4_E3, Inv Slot - E3 Gui, 4:Add, CheckBox, x292 y210 w80 h30 UnChecked Border vMat_4_E4, Inv Slot - E4 Gui, 4:Add, CheckBox, x382 y210 w80 h30 UnChecked Border vMat_4_E5, Inv Slot - E5 Gui, 4:Add, CheckBox, x472 y210 w80 h30 UnChecked Border vMat_4_E6, Inv Slot - E6 Gui, 4:Add, Edit, x572 y110 w80 h20 vMat_4_Amount_Master -Wrap -Multi, How Many Crafts? Gui, 4:Add, DropDownList, x22 x572 y140 w80 h30 vMat_4_Type r4, Mat Type||Mat|Consume|Equip Gui, 4:Add, Button, gUncheck_Mat4 x572 y35 w90 h30 , Uncheck All Gui, 4:Add, Button, gCheck_Mat4 x572 y70 w90 h30 , Check All Gui, 4:Add, Button, gSet_Mats x572 y170 w90 h30 , Set All Mats Gui, 4:Add, Button, gClose_Mats x572 y210 w90 h30 , Close Gui, 4:Show, x644 y107 h279 w686, Cr4ftr0n - Setting Crafting Mats - EkopOrez (ver 0.3) } Set_Mats: Gui, 4:submit, NoHide Gui, 4:Destroy Mat_1_Amount= 0 Mat_2_Amount = 0 Mat_3_Amount = 0 Mat_4_Amount = 0 UsedMatGUI = 1 Return Close_Mats: Gui, 4:Destroy Return Check_Mat1: CheckBoxNumber = 1 loop, 30 { Control, Check,, Button%CheckBoxNumber% CheckBoxNumber ++ } return UnCheck_Mat1: UnCheckBoxNumber = 1 loop, 30 { Control, UnCheck,, Button%UnCheckBoxNumber% UnCheckBoxNumber ++ } return Check_Mat2: CheckBoxNumber = 35 loop, 30 { Control, Check,, Button%CheckBoxNumber% CheckBoxNumber ++ } return UnCheck_Mat2: UnCheckBoxNumber = 35 loop, 30 { Control, UnCheck,, Button%UnCheckBoxNumber% UnCheckBoxNumber ++ } return Check_Mat3: CheckBoxNumber = 69 loop, 30 { Control, Check,, Button%CheckBoxNumber% CheckBoxNumber ++ } return UnCheck_Mat3: UnCheckBoxNumber = 69 loop, 30 { Control, UnCheck,, Button%UnCheckBoxNumber% UnCheckBoxNumber ++ } return Check_Mat4: CheckBoxNumber = 103 loop, 30 { Control, Check,, Button%CheckBoxNumber% CheckBoxNumber ++ } return UnCheck_Mat4: UnCheckBoxNumber = 103 loop, 30 { Control, UnCheck,, Button%UnCheckBoxNumber% UnCheckBoxNumber ++ } return SetMatCords() { global stop_loop = 0 grid_inv_row = a loop, 5 { if (stop_loop = 1) { break } grid_inv_col = 1 loop, 6 { if Mat_%Curr_Mat%_%grid_inv_row%%grid_inv_col% = 1 { Mat_%Curr_Mat%_X := Inv_%grid_inv_row%%grid_inv_col%_X Mat_%Curr_Mat%_Y := Inv_%grid_inv_row%%grid_inv_col%_Y Mat_%Curr_Mat%_%grid_inv_row%%grid_inv_col% = 0 Mat_%Curr_Mat%_Amount := Mat_%Curr_Mat%_Amount_Master DoNotDragMats = 0 Curr_Mat = 0 stop_loop = 1 break } grid_inv_col ++ } Grid_ABC() } } PreGenericCraftSetup() { global if UsedMatGUI <> 1 { Mat_1_X := Inv_A1_X Mat_1_Y := Inv_A1_Y Mat_2_X := Inv_A2_X Mat_2_Y := Inv_A1_Y Mat_3_X := Inv_A3_X Mat_3_Y := Inv_A1_Y Mat_4_X := Inv_A4_X Mat_4_Y := Inv_A1_Y Mat_1_Amount_Master = 999 Mat_2_Amount_Master = 999 Mat_3_Amount_Master = 999 Mat_4_Amount_Master = 999 Mat_1_Amount = 0 Mat_2_Amount = 0 Mat_3_Amount = 0 Mat_4_Amount = 0 Mat_1_Type = Mat Mat_2_Type = Mat Mat_3_Type = Mat Mat_4_Type = Mat } if (UsedMatGUI <> 1 && Crafting_pots <> 1) { Mat_1_Amount = %Mat_1_Amount_Master% Mat_2_Amount = %Mat_2_Amount_Master% Mat_3_Amount = %Mat_3_Amount_Master% Mat_4_Amount = %Mat_4_Amount_Master% } if SetAmount = 1 { InputBox, amount, How many crafts?,,,200,100 SetAmount = 0 } UsedMatGUI = 0 } ; ; Set location variables GUI ; SetLocalsGUI() { global Gui, 5:Add, Tab2, x6 y7 w525 h260 +, Crafting|Inventory Mapping|Disassembling ; ; Crafting ; Gui, 5:Tab, Crafting Gui, 5:Add, Button, gBegin_Craft_Vars x22 y50 w90 h30 , Begin Craft Gui, 5:Add, Button, gConfirm_Titlebar_Vars x122 y50 w90 h30 , Confirm Titlebar Gui, 5:Add, Button, gConfirm_Button_Vars x222 y50 w90 h30 , Confirm Button Gui, 5:Add, Button, gCrafting_Window_Vars x322 y50 w90 h30 , Crafting Window Gui, 5:Add, Button, gMP_Detection_Vars x422 y50 w90 h30 , MP Detection Gui, 5:Add, Button, gSet_All_Crafting_Vars x422 y110 w90 h30 , Set All Gui, 5:Add, Button, gCraft_Function_Code_Vars x422 y150 w90 h30 , Function Code Gui, 5:Add, Button, gClose_Vars x422 y210 w90 h30 , Close Gui, 5:Add, Edit, x22 y100 w387 h300 r11 -Wrap Multi ReadOnly vCrafting_Function_Code Gui, 5:Show, x644 y107 h279 w540, Cr4ftr0n - Setting Location Vars - EkopOrez (ver 0.1) ; ; InventoryMap ; Gui, 5:Tab, Inventory Mapping Gui, 5:Add, Button, gPrecise_Clicks_Vars x22 y50 w90 h30 , 3 Precise Clicks Gui, 5:Add, Button, gEasy_Clicks_Vars x122 y50 w90 h30 , 11 Easy Clicks Gui, 5:Add, Button, gInventory_Tabs_Vars x222 y50 w90 h30 , Inventory Tabs ;Gui, 5:Add, Button, gDisassembling_Window_Vars x322 y50 w90 h30 , Disassembling Window ;Gui, 5:Add, Button, gMP_Detection_Vars x422 y50 w90 h30 , MP Detection Gui, 5:Add, Button, gSet_All_Inventory_Vars x422 y110 w90 h30 , Set All Gui, 5:Add, Button, gInventory_Function_Code_Vars x422 y150 w90 h30 , Function Code Gui, 5:Add, Button, gClose_Vars x422 y210 w90 h30 , Close Gui, 5:Add, Edit, x22 y100 w387 h300 r11 -Wrap Multi ReadOnly vInventory_Function_Code Gui, 5:Show, x644 y107 h279 w540, Cr4ftr0n - Setting Location Vars - EkopOrez (ver 0.1) ; ; Disassembling ; Gui, 5:Tab, Disassembling Gui, 5:Add, Button, gBegin_Disassemble_Vars x22 y50 w90 h30 , Begin Button Gui, 5:Add, Button, gDisassemble_Confirm_Titlebar_Vars x122 y50 w90 h30 , Confirm Titlebar Gui, 5:Add, Button, gDisassemble_Confirm_Button_Vars x222 y50 w90 h30 , Confirm Button Gui, 5:Add, Button, gDisassembling_Window_Vars x322 y50 w90 h30 , Disassembling Window ;Gui, 5:Add, Button, gMP_Detection_Vars x422 y50 w90 h30 , MP Detection Gui, 5:Add, Button, gSet_All_Disassembling_Vars x422 y110 w90 h30 , Set All Gui, 5:Add, Button, gDis_Function_Code_Vars x422 y150 w90 h30 , Function Code Gui, 5:Add, Button, gClose_Vars x422 y210 w90 h30 , Close Gui, 5:Add, Edit, x22 y100 w387 h300 r11 -Wrap Multi ReadOnly vDisassembling_Function_Code Gui, 5:Show, x644 y107 h279 w540, Cr4ftr0n - Setting Location Vars - EkopOrez (ver 0.1) } Begin_Craft_Vars: SetVar_Message = Please right click on the Begin craft button. SetVarAmount = 1 SetVarGeneric() MouseClick, L, SetVar_1_X, SetVar_1_Y Craft_Begin_Button_X := SetVar_1_X Craft_Begin_Button_Y := SetVar_1_Y Return Confirm_Titlebar_Vars: SetVar_Message = Please right click on the title bar of the confirm popup. SetVarAmount = 1 SetVarGeneric() TitleBar_X := SetVar_1_X TitleBar_Y := SetVar_1_Y PixelGetColor, TitleBar_Color, SetVar_1_X, SetVar_1_Y Return Confirm_Button_Vars: SetVar_Message = Please right click on the confirm button of the confirm popup. SetVarAmount = 1 SetVarGeneric() TitleBar_Confirm_X := SetVar_1_X TitleBar_Confirm_Y := SetVar_1_Y MouseClick, L, SetVar_1_X, SetVar_1_Y Return Crafting_Window_Vars: SetVar_Message = Please right click on the crafting window.. SetVarAmount = 1 SetVarGeneric() Craft_Window_X := SetVar_1_X Craft_Window_Y := SetVar_1_Y Return MP_Detection_Vars: SetVar_Message = Please right click on the lowest amout of MP than a higher amount MP. SetVarAmount = 2 SetVarGeneric() DetectMP_Location_A := SetVar_1_X DetectMP_Location_B := SetVar_2_X DetectMP_Location_Y := SetVar_1_Y PixelGetColor, DetectMP_ColourA, SetVar_1_X, SetVar_1_Y PixelGetColor, DetectMP_ColourB, SetVar_2_X, SetVar_1_Y Return Set_All_Crafting_Vars: Gosub, Begin_Craft_Vars Gosub, Confirm_Titlebar_Vars Gosub, Confirm_Button_Vars Gosub, Crafting_Window_Vars Gosub, MP_Detection_Vars Return Begin_Disassemble_Vars: SetVar_Message = Please right click on the Begin button in the Disassemble window. SetVarAmount = 1 SetVarGeneric() MouseClick, L, SetVar_1_X, SetVar_1_Y Dis_Begin_Button_X := SetVar_1_X Dis_Begin_Button_Y := SetVar_1_Y Return Disassemble_Confirm_Titlebar_Vars: SetVar_Message = Please right click on the title bar of the confirm popup. SetVarAmount = 1 SetVarGeneric() TitleBar_X := SetVar_1_X TitleBar_Y := SetVar_1_Y PixelGetColor, TitleBar_Color, SetVar_1_X, SetVar_1_Y Return Disassemble_Confirm_Button_Vars: SetVar_Message = Please right click on the confirm button of the confirm popup. SetVarAmount = 1 SetVarGeneric() Dis_Confirm_X := SetVar_1_X Dis_Confirm_Y := SetVar_1_Y MouseClick, L, SetVar_1_X, SetVar_1_Y Return Disassembling_Window_Vars: SetVar_Message = Please right click on the Disassemble window. SetVarAmount = 1 SetVarGeneric() Dis_Window_X := SetVar_1_X Dis_Window_Y := SetVar_1_Y Return Set_All_Disassembling_Vars: Gosub, Begin_Disassemble_Vars Gosub, Disassemble_Confirm_Titlebar_Vars Gosub, Disassemble_Confirm_Button_Vars Gosub, Disassembling_Window_Vars Return Precise_Clicks_Vars: MapInvWindow() Return Easy_Clicks_Vars: LongInvMap() Return Inventory_Tabs_Vars: SetVar_Message = Please right click on the Inventory window starting with Equip then Consumables followed by Mats. SetVarAmount = 3 SetVarGeneric() Inv_Win_Equip_X := SetVar_1_X Inv_Win_Equip_Y := SetVar_1_Y Inv_Win_Consume_X := SetVar_2_X Inv_Win_Consume_Y := SetVar_2_Y Inv_Win_Mat_X := SetVar_3_X Inv_Win_Mat_Y := SetVar_3_Y SimpleColour() Inv_Win_Equip_Colour := SetVar_1_Colour Inv_Win_Consume_Colour := SetVar_2_Colour Inv_Win_Mat_Colour := SetVar_3_Colour Return SimpleColour() { global DetectROSEActive() SampleMat = 1 loop, 3 { MouseClick, Left, SetVar_%SampleMat%_X, SetVar_%SampleMat%_Y MouseMove, +40, +40 PixelGetColor, SetVar_%SampleMat%_Colour, SetVar_%SampleMat%_X, SetVar_%SampleMat%_Y sleep, 300 SampleMat ++ } } Set_All_Inventory_Vars: Gosub, Precise_Clicks_Vars Gosub, Easy_Clicks_Vars Gosub, Inventory_Tabs_Vars Return Craft_Function_Code_Vars: AH_Part_1 := "TitleBar_X = " TitleBar_X "`r`n" AH_Part_2 := "TitleBar_Y = " TitleBar_Y "`r`n" AH_Part_3 := "TitleBar_Color = " TitleBar_Color "`r`n" AH_Part_4 := "TitleBar_Confirm_X = " TitleBar_Confirm_X "`r`n" AH_Part_5 := "TitleBar_Confirm_Y = " TitleBar_Confirm_Y "`r`n" AH_Part_6 := "Craft_Begin_Button_X = " Craft_Begin_Button_X "`r`n" AH_Part_7 := "Craft_Begin_Button_Y = " Craft_Begin_Button_Y "`r`n" AH_Part_8 := "Craft_Window_X = " Craft_Window_X "`r`n" AH_Part_9 := "Craft_Window_Y = " Craft_Window_Y "`r`n" AH_Part_10 := "DetectMP_Location_A = " DetectMP_Location_A "`r`n" AH_Part_11 := "DetectMP_Location_B = " DetectMP_Location_B "`r`n" AH_Part_12 := "DetectMP_Location_Y = " DetectMP_Location_Y "`r`n" AH_Part_13 := "DetectMP_ColourA = " DetectMP_ColourA "`r`n" AH_Part_14 := "DetectMP_ColourB = " DetectMP_ColourB "`r`n" AH_Function_Code := AH_Part_1 AH_Part_2 AH_Part_3 AH_Part_4 AH_Part_5 AH_Part_6 AH_Part_7 AH_Part_8 AH_Part_9 AH_Part_10 AH_Part_11 AH_Part_12 AH_Part_13 AH_Part_14 GuiControl,, Edit1, %AH_Function_Code% Return Dis_Function_Code_Vars: AH_Part_1 := "TitleBar_X = " TitleBar_X "`r`n" AH_Part_2 := "TitleBar_Y = " TitleBar_Y "`r`n" AH_Part_3 := "TitleBar_Color = " TitleBar_Color "`r`n" AH_Part_4 := "TitleBar_Confirm_X = " TitleBar_Confirm_X "`r`n" AH_Part_5 := "TitleBar_Confirm_Y = " TitleBar_Confirm_Y "`r`n" AH_Part_6 := "Dis_Begin_Button_X = " Dis_Begin_Button_X "`r`n" AH_Part_7 := "Dis_Begin_Button_Y = " Dis_Begin_Button_Y "`r`n" AH_Part_8 := "Dis_Window_X = " Dis_Window_X "`r`n" AH_Part_9 := "Dis_Window_Y = " Dis_Window_Y "`r`n" AH_Function_Code := AH_Part_1 AH_Part_2 AH_Part_3 AH_Part_4 AH_Part_5 AH_Part_6 AH_Part_7 AH_Part_8 AH_Part_9 GuiControl,, Edit3, %AH_Function_Code% Return Inventory_Function_Code_Vars: AH_Part = 1 grid_inv_row = a loop, %inv_map_rows% { grid_inv_col = 1 loop, %inv_map_columns% { AH_Part_%AH_Part% := "Inv_" grid_inv_row grid_inv_col "_X = " Inv_%grid_inv_row%%grid_inv_col%_X "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_" grid_inv_row grid_inv_col "_Y = " Inv_%grid_inv_row%%grid_inv_col%_Y "`r`n" AH_Part ++ grid_inv_col ++ } Grid_ABC() } AH_Part_%AH_Part% := "Inv_Win_Equip_X = " Inv_Win_Equip_X "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Equip_Y = " Inv_Win_Equip_Y "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Equip_Colour = " Inv_Win_Equip_Colour "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Consume_X = " Inv_Win_Consume_X "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Consume_Y = " Inv_Win_Consume_Y "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Consume_Colour = " Inv_Win_Consume_Colour "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Mat_X = " Inv_Win_Mat_X "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Mat_Y = " Inv_Win_Mat_Y "`r`n" AH_Part ++ AH_Part_%AH_Part% := "Inv_Win_Mat_Colour = " Inv_Win_Mat_Colour "`r`n" AH_Part ++ AH_Part_Code = 1 loop, 70 { AH_Function_Code := AH_Function_Code . AH_Part_%AH_Part_Code% AH_Part_Code ++ } ;AH_Function_Code := AH_Part_%AH_Part% GuiControl,, Edit2, %AH_Function_Code% Return Close_Vars: Gui, 5:Destroy Return SetVarGeneric() { global MsgBox, %SetVar_Message% DetectROSEActive() if SetVarAmount > 0 { KeyWait, RButton, D MouseGetPos, SetVar_1_X, SetVar_1_Y KeyWait, RButton, U sleep 250 } if SetVarAmount > 1 { KeyWait, RButton, D MouseGetPos, SetVar_2_X, SetVar_2_Y KeyWait, RButton, U } if SetVarAmount > 2 { KeyWait, RButton, D MouseGetPos, SetVar_3_X, SetVar_3_Y KeyWait, RButton, U } } ; ; Bonfire/Manaflame ; bonfire() { global summonbar_x = 80 summonbar_y = 150 mainwin_x = -500 mainwin_y = 500 summonbar_color = 0xEE00DD loop, { if breakloop = 1 { breakloop = 0 break } CoordMode, Mouse, Screen CoordMode, Pixel, Screen DetectROSEActive() sleep, 250 PixelGetColor, summonbar_color_temp, summonbar_x, summonbar_y sleep, 250 if (summonbar_color_temp != summonbar_color) { BlockInput, On mousegetpos, mainwin_x, mainwin_y mouseclick, right, summonbar_x, summonbar_y BlockInput, Off DetectROSEActive() BlockInput, On send, {F11} send, {F7} send, {F9} sleep, 250 SetItemName() sleep, 250 Send, {F1} mouseclick, right, mainwin_x, mainwin_y BlockInput, Off } CoordMode, Mouse, Relative CoordMode, Pixel, Relative sleep, 3000 } } bonfire2() { global bon_amount = 0 SetCleric() InputBox, amount, How many Minutes?,,,100,100 DetectROSEActive() sleep, 1000 if amount = -1 { loop, { DropManaFire() } } else { amount *= 6 Loop, %amount% { DropManaFire() } } } DropManaFire() { global DetectROSEActive() if breakloop = 1 { breakloop = 0 Exit } if mana_flame = 1 { Send, {Control Down} sleep, 500 Send, {F8} sleep, 500 Send, {Control Up} sleep, 500 Send, {Alt} sleep, 500 if bon_amount < 5 { send, {F9} Send, {F1} sleep, 500 bon_amount ++ } } else if (mana_flame = 0 || mana_flame = "") { send, {F9} Send, {F1} sleep, 500 } Sleep, 10000 } SetCleric() { global if (set_flame = 0 || set_flame = "") { MsgBox, 4,, Do you want ot use the Mana Flame? ifMsgBox, Yes { set_flame = 1 mana_flame = 1 bon_count = 0 } ifMsgBox, No { set_flame = 1 mana_flame = 0 } } if UseCleric = 1 { UseCleric = 0 Return } if (UseCleric = 0 || UseCleric = "") { UseCleric = 1 Return } } UseFood() { global if UseFood = 1 { UseFood = 0 Exit } if (UseFood = 0 || UseFood = "") { InputBox, food_fkey, Which FKey has your MP recovery items?,,,100,100 UseFood = 1 if food_fkey = "" { food_fkey = F1 } Exit } } ; ; Buffs ; SetItemName() { Send, {Control Down} Send, {Alt Down} Send, {Control Up} Send, {Alt Up} } FullBuff() { global DetectROSEActive() sleep, 500 SetItemName() Send, {F9} sleep, 100 partybuff = 4 loop, 5 { DetectROSEActive() if breakloop = 1 { break } Send, {f%partybuff%} partybuff ++ sleep, 1800 } partybuff = 5 loop, 4 { DetectROSEActive() if breakloop = 1 { breakloop = 0 break } Send, !{f%partybuff%} partybuff ++ sleep, 1800 } } SingleBuff() { global DetectROSEActive() sleep, 500 Send, {Control Down} Send, {Alt Down} Send, {Control Up} Send, {Alt Up} Send, {F10} sleep, 100 singlebuff = 1 loop, 8 { DetectROSEActive() if breakloop = 1 { breakloop = 0 break } Send, {f%singlebuff%} singlebuff ++ sleep, 1800 } Send, {F9} } ; ; Disassemble ; Disassemble() { global DissCheck() DetectROSEActive() grid_inv_row = a loop, 5 { grid_inv_col = 1 loop, 6 { if Equip_%grid_inv_row%%grid_inv_col% = 1 { DissX := Inv_%grid_inv_row%%grid_inv_col%_X DissY := Inv_%grid_inv_row%%grid_inv_col%_Y Equip_%grid_inv_row%%grid_inv_col% = 0 DissEquip() } grid_inv_col ++ } Grid_ABC() } } DissCheck() { global ManyDiss := %Equip_A1% + %Equip_A2% + %Equip_A3% + %Equip_A4% + %Equip_A5% + %Equip_A6% + %Equip_B1% + %Equip_B2% + %Equip_B3% + %Equip_B4% + %Equip_B5% + %Equip_B6% + %Equip_C1% + %Equip_C2% + %Equip_C3% + %Equip_C4% + %Equip_C5% + %Equip_C6% + %Equip_D1% + %Equip_D2% + %Equip_D3% + %Equip_D4% + %Equip_D5% + %Equip_D6% + %Equip_E1% + %Equip_E2% + %Equip_E3% + %Equip_E4% + %Equip_E5% + %Equip_E6% if ManyDiss = 0 { MsgBox You unchecked all of the check boxes, nothing will be crafted. } else { Return } } DissEquip() { global DetectROSEActive() sleep, 200 MouseClickDrag, Left, DissX, DissY, Dis_Window_X, Dis_Window_Y if breakloop = 1 { breakloop = 0 Exit } sleep, 300 MouseClick, Left, Dis_Begin_Button_X, Dis_Begin_Button_Y DissClick() Return } DissClick() { global Loop, { if breakloop = 1 { break } DetectROSEActive() PixelGetColor, TitleBar_Color_Sample, TitleBar_X, TitleBar_Y,0 if TitleBar_Color_Sample = %TitleBar_Color% { MouseClick, left, Dis_Confirm_X, Dis_Confirm_Y sleep, 200 Return } sleep, 200 } } ; ; Quick Say ; Say_Shift_F1() { global if (drop_shift_f1 = "Shift + F1" or drop_shift_f1 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f1 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f1% if drop_shift_f1 = Normal { Shout() } if drop_shift_f1 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f1 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } Say_Shift_F2() { global if (drop_shift_f2 = "Shift + F2" or drop_shift_f2 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f2 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f2% if drop_shift_f2 = Normal { Shout() } if drop_shift_f2 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f2 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } Say_Shift_F3() { global if (drop_shift_f3 = "Shift + F3" or drop_shift_f3 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f3 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f3% if drop_shift_f3 = Normal { Shout() } if drop_shift_f3 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f3 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } Say_Shift_F4() { global if (drop_shift_f4 = "Shift + F4" or drop_shift_f4 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f4 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f4% if drop_shift_f4 = Normal { Shout() } if drop_shift_f4 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f4 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } Say_Shift_F5() { global if (drop_shift_f5 = "Shift + F5" or drop_shift_f5 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f5 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f5% if drop_shift_f5 = Normal { Shout() } if drop_shift_f5 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f5 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } Say_Shift_F6() { global if (drop_shift_f6 = "Shift + F6" or drop_shift_f6 = "") { MsgBox You have not set what type of shout you want. Return } if (text_shift_f6 = "") { MsgBox You have not entered anything to say yet. If you have please click update. Return } shout_text = %text_shift_f6% if drop_shift_f6 = Normal { Shout() } if drop_shift_f6 = X Minutes { WaitMinutes() ShoutLoop() } if drop_shift_f6 = Times X Minutes { WaitMinutes() ShoutAmount() ShoutX() } } WaitMinutes() { global InputBox, minutes, Wait Between (Minutes),,,100,100 minutes := (minutes * 60 * 1000) } ShoutAmount() { global InputBox, times, Amount of Shouts?,,,100,100 } Shout() { global DetectROSEActive() sleep, 200 MouseGetPos, shoutx, shouty MouseClick, Left, 100, 1030 SendInput, {RAW}%shout_text% SendInput, {ENTER} MouseMove, shoutx, shouty Send, {Alt} } ShoutLoop() { global { Shout() if minutes > 0 { sleep, %minutes% } } } ShoutX() { global loop, %times% { Shout() if minutes > 0 { sleep, %minutes% } } } ; ; Automatic CG Refueler ; AutoMaticReFuel() { global NotInCG = 0 Loop, { DetectROSEActive() if breakloop = 1 { breakloop = 0 break } PixelGetColor, FuelPixelcolour, 35, 159,0 if FuelPixelcolour = 0xAA9999 ;0xAA9999 ;0xCCBBBB { NotInCG = 0 sleep, 300 send, {Alt Down} sleep, 100 send, {F6} sleep, 100 send, {Alt Up} } if FuelPixelcolour = 0x11CC00 ;0x11CC00 ;0x22FF22 { NotInCG = 0 sleep, 5000 } if (FuelPixelcolour != 0xAA9999 && FuelPixelcolour != 0x11CC00) { if NotInCG > 199 { NotInCG = 0 MsgBox Automatic Refueling as been automatically turn off. break } NotInCG += 1 sleep, 5000 } sleep, 200 } } ; ; Clan Quests ; clan_quest_return() { DetectROSEActive() KeyWait, RButton, D MouseGetPos, buttonx, buttony loop, 6 { MouseClick, left, buttonx, buttony sleep, 100 MouseClick, left, buttonx, buttony if breakloop = 1 { breakloop = 0 break } sleep, 500 Send, {2} sleep, 100 Send, {1} sleep, 100 Send, {1} } } clan_quest_get() { DetectROSEActive() KeyWait, RButton, D MouseGetPos, buttonx, buttony loop, 3 { if breakloop = 1 { breakloop = 0 break } MouseClick, left, buttonx, buttony sleep, 100 MouseClick, left, buttonx, buttony if breakloop = 1 { breakloop = 0 break } sleep, 500 Send, {1} sleep, 100 Send, {1} sleep, 100 Send, {1} sleep, 100 Send, {1} } sleep, 300 loop, 3 { if breakloop = 1 { breakloop = 0 break } MouseClick, left, buttonx, buttony sleep, 100 MouseClick, left, buttonx, buttony if breakloop = 1 { breakloop = 0 break } sleep, 500 Send, {1} sleep, 100 Send, {1} sleep, 100 Send, {2} sleep, 100 Send, {1} } } ; ; Grid Var Locations ; LoadGridVars() { global Inv_A1_X = 190 Inv_A2_X = 235 Inv_A3_X = 280 Inv_A4_X = 325 Inv_A5_X = 370 Inv_A6_X = 410 Inv_A1_Y = 165 Inv_A2_Y = 165 Inv_A3_Y = 165 Inv_A4_Y = 165 Inv_A5_Y = 165 Inv_A6_Y = 165 Inv_B1_X = 190 Inv_B2_X = 235 Inv_B3_X = 280 Inv_B4_X = 325 Inv_B5_X = 370 Inv_B6_X = 410 Inv_B1_Y = 215 Inv_B2_Y = 215 Inv_B3_Y = 215 Inv_B4_Y = 215 Inv_B5_Y = 215 Inv_B6_Y = 215 Inv_C1_X = 190 Inv_C2_X = 235 Inv_C3_X = 280 Inv_C4_X = 325 Inv_C5_X = 370 Inv_C6_X = 410 Inv_C1_Y = 260 Inv_C2_Y = 260 Inv_C3_Y = 260 Inv_C4_Y = 260 Inv_C5_Y = 260 Inv_C6_Y = 260 Inv_D1_X = 190 Inv_D2_X = 235 Inv_D3_X = 280 Inv_D4_X = 325 Inv_D5_X = 370 Inv_D6_X = 410 Inv_D1_Y = 305 Inv_D2_Y = 305 Inv_D3_Y = 305 Inv_D4_Y = 305 Inv_D5_Y = 305 Inv_D6_Y = 305 Inv_E1_X = 190 Inv_E2_X = 235 Inv_E3_X = 280 Inv_E4_X = 325 Inv_E5_X = 370 Inv_E6_X = 410 Inv_E1_Y = 350 Inv_E2_Y = 350 Inv_E3_Y = 350 Inv_E4_Y = 350 Inv_E5_Y = 350 Inv_E6_Y = 350 Vend_Buy_A1_X = 480 Vend_Buy_A2_X = 520 Vend_Buy_A3_X = 560 Vend_Buy_A4_X = 600 Vend_Buy_A5_X = 640 Vend_Buy_A1_Y = 160 Vend_Buy_A2_Y = 160 Vend_Buy_A3_Y = 160 Vend_Buy_A4_Y = 160 Vend_Buy_A5_Y = 160 Vend_Buy_B1_X = 480 Vend_Buy_B2_X = 520 Vend_Buy_B3_X = 560 Vend_Buy_B4_X = 600 Vend_Buy_B5_X = 640 Vend_Buy_B1_Y = 200 Vend_Buy_B2_Y = 200 Vend_Buy_B3_Y = 200 Vend_Buy_B4_Y = 200 Vend_Buy_B5_Y = 200 Vend_Buy_C1_X = 480 Vend_Buy_C2_X = 520 Vend_Buy_C3_X = 560 Vend_Buy_C4_X = 600 Vend_Buy_C5_X = 640 Vend_Buy_C1_Y = 240 Vend_Buy_C2_Y = 240 Vend_Buy_C3_Y = 240 Vend_Buy_C4_Y = 240 Vend_Buy_C5_Y = 240 Vend_Buy_D1_X = 480 Vend_Buy_D2_X = 520 Vend_Buy_D3_X = 560 Vend_Buy_D4_X = 600 Vend_Buy_D5_X = 640 Vend_Buy_D1_Y = 280 Vend_Buy_D2_Y = 280 Vend_Buy_D3_Y = 280 Vend_Buy_D4_Y = 280 Vend_Buy_D5_Y = 280 Vend_Buy_E1_X = 480 Vend_Buy_E2_X = 520 Vend_Buy_E3_X = 560 Vend_Buy_E4_X = 600 Vend_Buy_E5_X = 640 Vend_Buy_E1_Y = 320 Vend_Buy_E2_Y = 320 Vend_Buy_E3_Y = 320 Vend_Buy_E4_Y = 320 Vend_Buy_E5_Y = 320 Vend_Buy_F1_X = 480 Vend_Buy_F2_X = 520 Vend_Buy_F3_X = 560 Vend_Buy_F4_X = 600 Vend_Buy_F5_X = 640 Vend_Buy_F1_Y = 365 Vend_Buy_F2_Y = 365 Vend_Buy_F3_Y = 365 Vend_Buy_F4_Y = 365 Vend_Buy_F5_Y = 365 TitleBar_X = 840 TitleBar_Y = 465 TitleBar_Color = 0xFF9900 TitleBar_Confirm_X = 840 TitleBar_Confirm_Y = 538 Buy_TitleBar_Color = 0xDD7711 Buy_TitleBar_X = 470 Buy_TitleBar_Y = 330 Dis_Window_X = 500 Dis_Window_Y = 200 Dis_Begin_Button_X = 770 Dis_Begin_Button_Y = 400 Dis_Confirm_X = 840 Dis_Confirm_Y = 590 Craft_Begin_Button_X = 787 Craft_Begin_Button_Y = 435 Craft_Window_X = 500 Craft_Window_Y = 200 DetectMP_Location_A = 60 DetectMP_Location_B = 100 DetectMP_Location_Y = 75 DetectMP_ColourA = 0xFFFF77 DetectMP_ColourB = 0xFFFF77 Inv_Win_Equip_X = 185 Inv_Win_Equip_Y = 126 Inv_Win_Equip_Colour = 0x7788DD Inv_Win_Consume_X = 256 Inv_Win_Consume_Y = 126 Inv_Win_Consume_Colour = 0x7788DD Inv_Win_Mat_X = 330 Inv_Win_Mat_Y = 126 Inv_Win_Mat_Colour = 0x7788DD TimeIcon_X = 1464 TimeIcon_Y = 64 TimeIcon_Night_Color = 0x553333 TimeIcon_Day_Color = UsingNetBook = 0 } LoadPotMatVar() { global Mat_3_A1 = 1 Mat_3_B1 = 1 Mat_3_B2 = 1 Mat_3_C1 = 1 Mat_3_C2 = 1 Mat_3_D1 = 1 Mat_3_D2 = 1 Mat_3_Amount_Master = 999 Mat_2_A2 = 1 Mat_2_A3 = 1 Mat_2_A4 = 1 Mat_2_A5 = 1 Mat_2_A6 = 1 Mat_2_B3 = 1 Mat_2_B4 = 1 Mat_2_B5 = 1 Mat_2_B6 = 1 Mat_2_C1 = 1 Mat_2_C2 = 1 Mat_2_C3 = 1 Mat_2_C4 = 1 Mat_2_C5 = 1 Mat_2_C6 = 1 Mat_2_Amount_Master = 499 Mat_1_Amount_Master = 999 Mat_2_Amount = 0 Mat_3_Amount = 0 } NetBookCraftVars() { global TitleBar_X = 434 TitleBar_Y = 216 TitleBar_Color = 0xFF9A00 TitleBar_Confirm_X = 508 TitleBar_Confirm_Y = 280 Craft_Begin_Button_X = 771 Craft_Begin_Button_Y = 406 Craft_Window_X = 489 Craft_Window_Y = 153 DetectMP_Location_A = 47 DetectMP_Location_B = 47 DetectMP_Location_Y = 49 DetectMP_ColourA = 0xFF7500 DetectMP_ColourB = 0xFF7500 Buy_TitleBar_Color = 0xDE7521 Buy_TitleBar_X = 400 Buy_TitleBar_Y = 220 Inv_a1_X = 191 Inv_a1_Y = 137 Inv_a2_X = 237 Inv_a2_Y = 137 Inv_a3_X = 279 Inv_a3_Y = 137 Inv_a4_X = 322 Inv_a4_Y = 137 Inv_a5_X = 364 Inv_a5_Y = 137 Inv_a6_X = 411 Inv_a6_Y = 137 Inv_b1_X = 191 Inv_b1_Y = 182 Inv_b2_X = 237 Inv_b2_Y = 182 Inv_b3_X = 279 Inv_b3_Y = 182 Inv_b4_X = 322 Inv_b4_Y = 182 Inv_b5_X = 364 Inv_b5_Y = 182 Inv_b6_X = 411 Inv_b6_Y = 182 Inv_c1_X = 191 Inv_c1_Y = 224 Inv_c2_X = 237 Inv_c2_Y = 224 Inv_c3_X = 279 Inv_c3_Y = 224 Inv_c4_X = 322 Inv_c4_Y = 224 Inv_c5_X = 364 Inv_c5_Y = 224 Inv_c6_X = 411 Inv_c6_Y = 224 Inv_d1_X = 191 Inv_d1_Y = 279 Inv_d2_X = 237 Inv_d2_Y = 279 Inv_d3_X = 279 Inv_d3_Y = 279 Inv_d4_X = 322 Inv_d4_Y = 279 Inv_d5_X = 364 Inv_d5_Y = 279 Inv_d6_X = 411 Inv_d6_Y = 279 Inv_e1_X = 191 Inv_e1_Y = 322 Inv_e2_X = 237 Inv_e2_Y = 322 Inv_e3_X = 279 Inv_e3_Y = 322 Inv_e4_X = 322 Inv_e4_Y = 322 Inv_e5_X = 364 Inv_e5_Y = 322 Inv_e6_X = 411 Inv_e6_Y = 322 Inv_Win_Equip_X = 201 Inv_Win_Equip_Y = 101 Inv_Win_Equip_Colour = 0xCE658C Inv_Win_Consume_X = 261 Inv_Win_Consume_Y = 100 Inv_Win_Consume_Colour = 0x3145CE Inv_Win_Mat_X = 328 Inv_Win_Mat_Y = 101 Inv_Win_Mat_Colour = 0x738ADE TimeIcon_X = 1464 TimeIcon_Y = 64 TimeIcon_Night_Color = 0x553333 TimeIcon_Day_Color = UsingNetBook = 1 SetDefaultMouseSpeed, 100 SetMouseDelay, 500 } ; ; Window Positions ; windowposition() { WinGet, id, ID, A WinGetTitle, title, ahk_id %id% WinGetClass, class, ahk_id %id% ;WinMove, ahk_id %id%,, -3, -17 WinMove, ahk_id %id%,, -3, -9 } windowposition2() { WinGet, id, ID, A WinGetTitle, title, ahk_id %id% WinGetClass, class, ahk_id %id% ;WinMove, ahk_id %id%,, -1683, -17 WinMove, ahk_id %id%,, -1683, -9 } DetectROSEActive() { SetTitleMatchMode, 2 IfWinExist, ROSE Online ] { WinWaitActive, ROSE Online ] DetectROSEActiveColourSimple() Return } IfWinExist, ] ROSE Online { WinWaitActive, ] ROSE Online DetectROSEActiveColourSimple() Return } IfWinExist, Rose Online { WinWaitActive, Rose Online DetectROSEActiveColourSimple() Return } } DetectROSEActiveColourSimple() { global if UsingNetBook = 1 { loop, { if breakloop = 1 { breakloop = 0 break } PixelGetColor, Load_Completed, 15, 20 if Load_Completed = 0xDE7510 { Return } sleep, 1000 } } } ; ; Event ; BuyPeng() { InputBox, peng_buy_amount, Buy amount?,,,100,100 DetectROSEActive() KeyWait, RButton, D MouseGetPos, buttonx, buttony loop, %peng_buy_amount% { MouseClick, left, buttonx, buttony sleep, 100 MouseClick, left, buttonx, buttony if breakloop = 1 { breakloop = 0 break } sleep, 500 Send, {1} sleep, 100 Send, {1} sleep, 100 Send, {1} } } CollectPeng() { InputBox, peng_collect_amount, Cash in how many??,,,100,100 DetectROSEActive() KeyWait, RButton, D MouseGetPos, buttonx, buttony loop, %peng_collect_amount% { MouseClick, left, buttonx, buttony sleep, 100 MouseClick, left, buttonx, buttony if breakloop = 1 { breakloop = 0 break } sleep, 500 Send, {3} sleep, 100 Send, {1} } } ; ; Shoutcut Keys ; ^+l::Buy_Stacks() ^+q::clan_quest_get() ^#+q::clan_quest_return() ^+,::SetCleric() ^+m::MatSelectionGUI() ^#+m::SetLocalsGUI() ^+n::UseFood() ^+#n::Clean_With_MouseClick() ^+F1::Say_Shift_F1() ^+F2::Say_Shift_F2() ^+F3::Say_Shift_F3() ^+F4::Say_Shift_F4() ^+F5::Say_Shift_F5() ^+F6::Say_Shift_F6() ^+d::hotkey_clean_loop() ^+g::BuyPeng() ^#+g::CollectPeng() ^+z::FullBuff() ^+#z::SingleBuff() ^#+2::LoadGridVars() ^#+3::SetMatCords() ^#+4::NetBookCraftVars() ^+#1::MacroCraft() ^+2:: SetAmount = 1 MatAmount = 2 DoNotDragMats = 0 craft_loop() return ^+3:: SetAmount = 1 MatAmount = 3 DoNotDragMats = 0 craft_loop() return ^+1:: SetAmount = 1 MatAmount = 0 DoNotDragMats = 1 craft_loop() return ^+4:: SetAmount = 1 MatAmount = 4 DoNotDragMats = 0 craft_loop() return ^+f::AutoMaticReFuel() ^+b::bonfire() ^+c::breakloop = 1 ^+w::windowposition() ^#+w::windowposition2() ^+v::Vend_Buying() ^+#v::Vend_Selling() ^+#c:: Dis_Confirm_Y = 570 loop, { DetectROSEActive() if breakloop = 1 { breakloop = 0 Dis_Confirm_Y = 590 break } KeyWait, Shift, D if breakloop = 1 { breakloop = 0 Dis_Confirm_Y = 590 break } MouseGetPos, buttonx, buttony DissClick() MouseMove, buttonx, buttony } Dis_Confirm_Y = 590 return ^+#\:: loop, { Send, {F1} sleep, 200 if breakloop = 1 { breakloop = 0 break } } return ^+\:: event_buff_pickup_count = 0 loop, { if breakloop = 1 { break } DetectROSEActive() send, {F4} sleep 300 send, {F5} sleep 300 send, {F2} sleep 300 send, {F3} sleep 2000 send, {F1} sleep 1000 send, {F1} sleep 1000 } return ^+t::MapInvWindow() ^+#t::LongInvMap() ^+#d:: KeyWait, RButton, D MouseGetPos, Test_X, Test_Y PixelGetColor, Test_Colour, Test_X, Test_Y return ^+s:: shout_text = /set lockskillbar on Shout() return ^+#s:: shout_text = /set lockskillbar off Shout() return +^#u::DayAndNight() ^+p::Pause ^+#p::Reload ^+#F12::ExitApp DayAndNight() { global if (TimeIcon_Firstrun = 0 || TimeIcon_Firstrun = "") { TimeIcon_Firstrun = 1 SkipNight = 1 } CheckTimeIcon() } CheckTimeIcon() { global loop, { DetectROSEActive() if breakloop = 1 { breakloop = 0 TimeIcon_Firstrun = 0 break } PixelGetColor, TimeIcon_Color, TimeIcon_X, TimeIcon_Y if TimeIcon_Color = TimeIcon_Night_Color { BotProofs() } sleep 5000 } } BotProofs() { global loop, 5 { if SkipNight = 0 { SoundPlay, *16 } if SkipNight = 1 { SkipNight = 0 } } loop, { PixelGetColor, TimeIcon_Color, TimeIcon_X, TimeIcon_Y if TimeIcon_Color = TimeIcon_Day_Color { break } sleep, 10000 } } LongInvMap() { global InputBox, inv_map_columns, How many Inventory columns are there? InputBox, inv_map_rows, How many Inventory rows are there? Msgbox Start Right click on the center of A1 movinga accross to A2 etc grid_inv_col = 1 loop, %inv_map_columns% { grid_inv_row = a KeyWait, RButton, D MouseGetPos, temp_X, temp_Y KeyWait, RButton, U loop, %inv_map_rows% { Inv_%grid_inv_row%%grid_inv_col%_X := temp_X Grid_ABC() } grid_inv_col ++ } Msgbox Start Right click on the center of A1 moving down to B1 etc grid_inv_row = a loop, %inv_map_rows% { grid_inv_col = 1 KeyWait, RButton, D MouseGetPos, temp_X, temp_Y KeyWait, RButton, U loop, %inv_map_columns% { Inv_%grid_inv_row%%grid_inv_col%_Y := temp_Y grid_inv_col ++ } Grid_ABC() } Msgbox Mapping Completed. } MapInvWindow() { global inv_slot_size_h = 40 inv_slot_size_w = 40 MsgBox Please right click on the top left inventory slot top left corner. DetectROSEActive() KeyWait, RButton, D MouseGetPos, inv_slot_start_X, inv_slot_start_y MsgBox Please right click on the next inventory slot to the right in top left corner. DetectROSEActive() KeyWait, RButton, D MouseGetPos, inv_slot_start_right_X, inv_slot_start_right_y inv_slot_border_w := inv_slot_start_right_X - inv_slot_start_X - 40 MsgBox Please right click on the inventory slot below the first one in top left corner. DetectROSEActive() KeyWait, RButton, D MouseGetPos, inv_slot_start_below_X, inv_slot_start_below_y inv_slot_border_h := inv_slot_start_below_y - inv_slot_start_y - 40 InputBox, inv_map_columns, How many Inventory columns are there? InputBox, inv_map_rows, How many Inventory rows are there? Inv_A1_X := inv_slot_start_X + 20 Inv_A1_Y := inv_slot_start_y + 20 MapInvCroods() } MapInvCroods() { global grid_inv_row = a grid_inv_col = 2 loop, %inv_map_rows% { Inv_%grid_inv_row%%grid_inv_col%_Y := Inv_A1_Y + inv_slot_size_h * (grid_inv_col - 1) + inv_slot_border_h * (grid_inv_col - 1) Grid_ABC() } grid_inv_col = 2 loop, %inv_map_columns% { Inv_%grid_inv_row%%grid_inv_col%_X := Inv_A1_X + inv_slot_size_w * (grid_inv_col - 1) + inv_slot_border_w * (grid_inv_col - 1) Grid_ABC() grid_inv_col ++ } } Grid_ABC() { global if grid_inv_row = e { grid_inv_row = f } if grid_inv_row = d { grid_inv_row = e } if grid_inv_row = c { grid_inv_row = d } if grid_inv_row = b { grid_inv_row = c } if grid_inv_row = a { grid_inv_row = b } }