76
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
;C2's Keg Emptier
;Tested OSI
;Released 10/08/07
;Purpose empty all kegs into bottles in your secure or bank
;Directions
;Have three bags in your bank or secure:
;BAG ONE for full kegs to empty and the empty bottles to use
;BAG TWO for empty kegs to be dropped
;BAG THREE for full bottles to be dropped
set #menubutton N/A
repeat
until #menubutton <> N/A
This will sit and repeat until you click a menusub showEUOMenu1
menu Clear
menu Window Title Donate-o-Matic
menu Window Color Silver
menu Window Size 243 167
menu Font Transparent #true
menu Font Align Right
menu Font Name Comic Sans MS
menu Font Size 12
menu Font Style b
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Left
menu Font BGColor Silver
menu Text EUOLabel1 28 4 Where:
menu Font Color Black
menu Text EUOLabel2 28 56 What:
menu Font Color WindowText
menu Text EUOLabel3 28 108 Animal
menu Font Size 8
menu Text EUOLabel4 184 44 Spot
menu Text EUOLabel5 216 44 Spot
menu Text EUOLabel6 216 60 Two
menu Text EUOLabel7 184 60 One
menu Text EUOLabel8 128 4 Runebook
menu Text EUOLabel9 188 4 Name:
menu Text EUOLabel10 116 80 Home/Bank:
menu Text vesper 116 100 Vesper:
menu Text ghg 116 120 Brit Ingot:
menu Text EUOLabel11 116 140 Brit Wood:
menu Font Name MS Sans Serif
menu Font Style
menu Font BGColor Window
menu Combo Create where 4 28 105
menu Combo Add where Vesper
menu Combo Add where Britian
menu Font Name MS Sans Serif
menu Font Style
menu Combo Create what 4 80 105
menu Combo Add what Wood
menu Combo Add what Ingots
menu Font Name MS Sans Serif
menu Font Style
menu Font BGColor Gray
menu Button begin 116 48 59 25 Begin
menu Font BGColor Window
menu Combo Create animal 4 128 105
menu Combo Add animal Beetle
menu Combo Add animal Pack Horse
menu Edit runebook 136 20 81 donation
menu Edit homeone 189 80 19 1
menu Edit hometwo 216 80 21 2
menu Edit vesperone 188 100 21 3
menu Edit vespertwo 216 100 21 4
menu Edit britingotone 188 120 21 5
menu Edit britingottwo 216 120 21 6
menu Edit britwoodone 188 140 21 7
menu Edit britwoodtwo 216 140 21 8
menu Show 421 270
menu HideEUO
[color=purple] set #menubutton N/A
repeat
until #menubutton <> N/A[/color]
menu hide
return
The red sections are other menu commands that hide easy uo so it doesn't stay up on screen and the other hides the menu so it is minimized.set #menubutton N/A
repeat
until #menubutton = begin
I also like to add this line in again afterwords because i use many buttons in scripts and don't want the script to keep thinking I pressed the button over and over. I clear the value by simply entering:set #menubutton N/A
again after the menu button has played what I wanted it to. That way it sits inactive until you press a menu button again.if #menubutton <> N/a
gosub menubuttons
or
if #menubutton = pause
gosub pause
You can see some buttons under the section for check boxs on my pvp healer menu below. When ever the #menubutton <> N/A (<> means not equal to/ anything but the following value), I do a gosub and find out what button has been pushed, preform an action needed, and reset it to N/a so it is ready to go again.menu get apples
if #menures = true
do this
or
menu get apples
If #menures = #false
Do this
Be careful! The check box like the rest of the options have a name and a caption. Do not call it by caption. Caption is only what font it displays on the menu. You need to call it by the label you placed in the name box on the grid.menu get runebook
set %bookname #menures
When getting numbers from the edit box, you do menu getnum (name of box). I use numbers when setting heal at amounts in my PVP healer.menu getnum refreshat
set #menures %chug_refresh
Then in my script, I would have some statement like this...if #stam <= %chug_refresh
gosub drink %refreshpot
Combo Box:sub showEUOMenu1
menu Clear
menu Window Title Donate-o-Matic
menu Window Color Silver
menu Window Size 243 167
menu Font Transparent #true
menu Font Align Right
menu Font Name Comic Sans MS
menu Font Size 12
menu Font Style b
menu Font Color WindowText
menu Font Transparent #false
menu Font Align Left
menu Font BGColor Silver
menu Text EUOLabel1 28 4 Where:
menu Font Color Black
menu Text EUOLabel2 28 56 What:
menu Font Color WindowText
menu Text EUOLabel3 28 108 Animal
menu Font Size 8
menu Text EUOLabel4 184 44 Spot
menu Text EUOLabel5 216 44 Spot
menu Text EUOLabel6 216 60 Two
menu Text EUOLabel7 184 60 One
menu Text EUOLabel8 128 4 Runebook
menu Text EUOLabel9 188 4 Name:
menu Text EUOLabel10 116 80 Home/Bank:
menu Text vesper 116 100 Vesper:
menu Text ghg 116 120 Brit Ingot:
menu Text EUOLabel11 116 140 Brit Wood:
menu Font Name MS Sans Serif
menu Font Style
menu Font BGColor Window
menu Combo Create where 4 28 105
menu Combo Add where Vesper
menu Combo Add where Britian
menu Font Name MS Sans Serif
menu Font Style
menu Combo Create what 4 80 105
[color=red] menu Combo Add what Wood
menu Combo Add what Ingots[/color]
menu Font Name MS Sans Serif
menu Font Style
menu Font BGColor Gray
menu Button begin 116 48 59 25 Begin
menu Font BGColor Window
menu Combo Create animal 4 128 105
menu Combo Add animal Beetle
menu Combo Add animal Pack Horse
menu Edit runebook 136 20 81 donation
menu Edit homeone 189 80 19 1
menu Edit hometwo 216 80 21 2
menu Edit vesperone 188 100 21 3
menu Edit vespertwo 216 100 21 4
menu Edit britingotone 188 120 21 5
menu Edit britingottwo 216 120 21 6
menu Edit britwoodone 188 140 21 7
menu Edit britwoodtwo 216 140 21 8
menu Show 421 270
menu HideEUO
set #menubutton N/A
repeat
until #menubutton <> N/A
menu hide
return
To access this information in your script you call the menu list by name like below and check the resolutions by number. if you have 3 items in the list you check for them in order or their listing.menu get what
if #menures = 1
set %donatingthis wood
if #menures = 2
set %donatingthis ingots
Updating Menu Text:menu delete begin
Pretty simple... but I also like to replace it once I delete it with a pause button. To do this I need the location coords on the menu that the begin button was located. When I look at the menu sub and find the menu button begin.... line, you will see the numbers right there. Here is an example of how I replace the button!menu Button Begin 104 168 75 25 Begin
Here is what I added in to write the new button in! menu Show 421 270
menu HideEUO
set #menubutton N/A
repeat
until #menubutton <> N/A
menu delete begin
menu Font Color WindowText
menu Font Size 8
menu Font BGColor Lime
menu Button pause 104 168 75 25 Pause ; creates new button
;menu hidemenu
set #menubutton N/A
return
;-------------Edit Shards Here-----------
;shard name - if 2 names use _ Ex. Lake_Austin
set %S1 atlantic
set %S2 great_lakes
set %S3
set %S4
set %S5
;--------Accts. and Passwords------------
set %A1 winuoftw <----my pretend acct
set %PW1 freebods <------pretend pass
set %A2
set %PW2
set %A3
set %PW3
set %A4
set %PW4
set %A5
set %PW5
;====================================gosub login 1 luna %A1 %PW1 %S1
gosub login 2 luna %A1 %PW1 %S1
gosub login 3 luna %A1 %PW1 %S1
gosub login 4 luna %A1 %PW1 %S1
gosub login 5 luna %A1 %PW1 %S1
Edit that info here on the script:;----------Add gosub login lines below-----------------------
main_bod_loop:
;%1=Char Slot # %2=location %3=acct, %4=pass, %5=shard
;gosub login 1 luna %A1 %PW1 %S1 ;example
;gosub login 2 luna %A1 %PW1 %S1 ;example
;add line
;add line
;add line
;add line
;add line
;add line
;------------End or Shards--------------
***Luna just needs to be there as a place holder for now. I have that there as a variable if I start to make this script collect at different locations. If I do that, I will want a variable in there to tell the script what strategy to use to collect with. For now, LUNA is the only place as login and outs are fast and efficient.;Directions:
;Have one bag with all of the supplies needed to craft on the top level.
;ingots, morters (if not tinkering), empty bottles, regs, items for special poisons and at least one tinker tools in your pack.
;Have a second bag in the secure to drop finished potions.
;hit play
;check boxes for each type you want !!!AND!!! then enter how many of each you want!
;Tips:
;A nice alchemy tally with a high Alchemy Bonus Would be sweet!
Fixes: