Show Posts

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.


Messages - freddy

Pages: 1 ... 5 6 [7] 8 9 ... 19
91
Script Debug / Re: Quick response help needed!
« on: August 21, 2012, 02:58:08 PM »
string manipulation in EUO is not fun. I know i helped you over icq, but imma post the code so other's can see how to do it.

Code: [Select]
gosub parse_price %item_to_scan price: 6
display #result
gosub parse_price %item_to_scan remaining: 10
display #result
pause
;-------------------------------------------------------------
;-------------------------------------------------------------
sub parse_price
set %item %1
set %scan %2
set %spaces %3
set %lpc #lpc
set #lpc 1000
set %comma ,
set %combined_price
finditem %item *
event property #findid
set %string_to_parse #property
str len %string_to_parse
set %string_length #strres
str pos %string_to_parse %scan
set %del_pos #strres + %spaces
str del %string_to_parse 1 %del_pos
set %string_to_parse #strres
str pos %string_to_parse $
set %new_delete_pos #strres - 1
str left %string_to_parse %new_delete_pos
set %price #strres , %comma
gosub separate_string %price ,
for %i 1 %t_num
set %combined_price %combined_price , %return . %i
set #lpc %lpc
return %combined_price
;-------------------------------------------------------------
;-------------------------------------------------------------
sub separate_string
  set %t_num 0
  str Count %1 %2
  for %i 1 #strres
  {
    set %var %2
    str len %1
    set %length #strres
    str pos %1 %var
    set %del #strres - 1
    str left %1 %del %length
    set %return . %i #strres
    set %del1 %del + 1
    str del %1 1 %del1
    set %1 #strres
    set %t_num %t_num + 1
  }
return
;-------------------------------------------------------------
;-------------------------------------------------------------

93
Script Snippets / Redeem multiple items from Cleanup Officer
« on: August 12, 2012, 03:28:46 AM »
This script can redeem bless deeds, and each of the 4 pigments only.
the variables are a little confusing to setup, so you will have problems if you don't set correctly.

the %items var can be set to any, all, or a combination of these items: bless ,pig1 ,pig2 ,pig3 , or pig4.

the %times variable correlates to the position of the items you want to redeem in the %items variable.

so lets say you want 5 bless deeds and 7 of the third pigment, your variables would look like this:

set %items bless_pig3_
set %times 5_7_

Note: Both variables MUST have a trailing underscore.

It's a little slow because I haven't really tested it, but once I get a few more points, i'll update it.

Code: [Select]
;Freddy
;8/4/2012
;thx to soulweaver for the coords
set %items bless_pig1_pig2_pig3_
set %times 6_5_4_3_
;----------------------do not edit below-----------------------
set #lpc 1000
gosub separate_string %items _
for %u 1 %t_num
  set %item . %u %return . %u
gosub separate_string %times _
for %u 1 %t_num
  set %time . %u %return . %u
set %loops %t_num
set %page_coord 302_343
finditem XU G_4
for #findindex 1 #findcnt
{
  event property #findid
  if cleanup in #property
    set %cleanup #findid
}
set #lpc 20
mainloop:
for %p 1 %loops
{
  set %l %time . %p
  for %s 1 %l
  {
    set #lobjectid %cleanup
    event macro 17 0
    gosub wait_gump generic_gump 345_359 3
    gosub find_coord %item . %p
    for %q 1 %page
    {
      wait 7
      gosub click_button %page_coord
    }
    gosub click_button %coord
    gosub wait_gump generic_gump 348_262
    if #result = #false
    {
      display You are either out of points or the script messed up!
      halt
    }
    gosub click_button 290_232
    wait 10
  }
}
goto mainloop
;-------------------------------------------------------------
;-------------------------------------------------------------
sub find_coord
  if %1 = bless
  {
    set %coord 41_206
    set %page 21
  }
  if %1 = pig1
  {
    set %coord 40_250
    set %page  21
  }
  if %1 = pig2
  {
    set %coord 40_300
    set %page  21
  }
  if %1 = pig3
  {
    set %coord 40_132
    set %page 22
  }
  if %1 = pig4
  {
    set %coord 40_181
    set %page 22
  }
return
;-------------------------------------------------------------
;-------------------------------------------------------------
sub wait_gump
  set %timer #scnt + %3
  repeat
    if #contsize = %2 && #contname = %1
      return #true
  until #scnt >= %timer
return #false
;-------------------------------------------------------------
;-------------------------------------------------------------
sub separate_string
  set %t_num 0
  str Count %1 %2
  for %i 1 #strres
  {
    set %var %2
    str len %1
    set %length #strres
    str pos %1 %var
    set %del #strres - 1
    str left %1 %del %length
    set %return . %i #strres
    set %del1 %del + 1
    str del %1 1 %del1
    set %1 #strres
    set %t_num %t_num + 1
  }
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub click_button
  set !parsestring %1 , _
  gosub separate_string !parsestring _
  set !clickx #contposx + %return1
  set !clicky #contposy + %return2
  click !clickx !clicky
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------

94
Script Snippets / Simple Item Mover
« on: August 12, 2012, 03:22:32 AM »
This moves multiple items of the same type between containers.


Code: [Select]
;Freddy
display Target source container
wait 1
set #targcurs 1
target
loop:
if #targcurs = 1
{
  goto loop
}
set %firstcontainer #ltargetid
set #lobjectid %firstcontainer
event macro 17 0
wait 1s
display Target last container
wait 1
set #targcurs 1
target
loop2:
if #targcurs = 1
{
  goto loop2
}
set %secondcontainer #ltargetid
display Target item to move
wait 1
set #targcurs 1
target
loop3:
if #targcurs = 1
{
  goto loop3
}
finditem #ltargetid *
set %item_to_move #findtype

finditem %item_to_move C_ , %firstcontainer
for #findindex 1 #findcnt
{
  exevent drag #findid #findstack
  wait 12
  exevent dropc %secondcontainer
  wait 12
}
halt

95
Scripting Chat / Re: animal ID master list?
« on: August 10, 2012, 03:30:08 PM »
A wiki is easy to set up. If you want to integrate users with the forum, you'll need to use a bridge. There are some mods (not sure about smf) that actually integrates a wiki system within the boards. Trailmyx doesn't like to install mods on smf afaik. A stand alone wiki can be set up in a few minutes.

96
Scripting Chat / Re: animal ID master list?
« on: August 09, 2012, 11:41:02 PM »
EUO has one:

http://www.easyuo.com/itemdb/index.php

tho it's out of date and missing tons of item types.

97
Off Topic / Re: Mars lander commentary
« on: August 06, 2012, 03:41:56 PM »
I think its a hoax, the actual mars landing took place on a set in hollywood somewhere! Probably the same set where they "walked on the moon" at.  Just saying. 
really?

98
Off Topic / Re: Mars lander commentary
« on: August 06, 2012, 01:54:01 AM »
What honesty makes me sad about this entire thing is I will not be alive long enough to colonize other planets.  :'(
Never too late to get your sperm frozen.

you assume that my sperm is important enough to send to other planets

99
Off Topic / Re: Mars lander commentary
« on: August 06, 2012, 12:23:33 AM »
What honesty makes me sad about this entire thing is I will not be alive long enough to colonize other planets.  :'(

101
Scripting Chat / Re: Targetting Serpents Nests
« on: July 25, 2012, 06:38:25 PM »
If anyone has a script or is working on a script for Medusa's Rare Serpent Eggs and would not mind sharing it, I really would appreciate it.  Freddy must still be asleep, although I did not expect anything as it may not be that easy to just hammer one out (so to speak).  One of my favorite things to do in the game is to go visit Medusa at least 3 - 4 times a week (and try to gather at least 3-4 sets <16 eggs> at a time).



I haven't been able to get to medusa, been making nothing but potions for my plants. i have about 10k more potions to make then I'll see what i can do about getting this finished

102
UO News / Re: [UO Herald News] Anniversary Wallpaper for Download
« on: July 25, 2012, 11:45:41 AM »
I'm surprised they aren't charging for this  /s

103
Off Topic / Re: Tough Mudder! Seattle
« on: July 22, 2012, 10:45:08 PM »
I like the part about them zapping the crap out of you with electricity lol.....   Some of the dangling wires only have 10,000 volts enjoy!   I was thinking ok Monkey bars explains all the gloves I saw, but then It's a given your soaking wet sooo......

it's the amps that kill ya...10k volts is gonna hurt pretty bad tho haha

104
Script Snippets / Automatic Plant Maker
« on: July 22, 2012, 06:11:10 PM »
How to use:
edit the first line %secure with the itemid of your secure container.
You need a secure container with fertile dirt and seeds inside.
All plant bowls must be inside regular backpacks.
Need crates within 2 tiles of your char. (doesn't matter if they are all on one tile)

What this does:
Will automatically fill all crates with assembled plants based on how many crates or plant bowls you have (whichever is less).

Code: [Select]
;freddy winuo.net
set %secure OHIRXSD
set #lpc 1000
set %loop %crate_count
gosub initialize
set #lpc 50
for %lo 1 %loop
{
  set %crate %crate . %lo
  set #lobjectid %crate
  event macro 17 0
  wait 20
  set %bowl_bag %bowl . %lo
  set #lobjectid %bowl_bag
  event macro 17 0
  wait 20
  gosub set_vars
  for %i 1 %ploop
  {
    gosub grab_items
    gosub add_dirt
    gosub water_bowl
    gosub add_seed
    gosub drop_plant
  }
}
halt
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub drop_plant
  exevent drag %bowlid
  wait 15
  exevent dropc %crate
  wait 20
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub add_seed
  wait 15
  set #lobjectid %seedid
  event macro 17 0
  target 3s
  set #ltargetid %bowlid
  event macro 22 0
  wait 22
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub water_bowl
  for %u 1 2
  {
    set #lobjectid %pitcher
    event macro 17 0
    wait 15
    target 3s
    set #ltargetid %bowlid
    event macro 22
    wait 15
  }
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub add_dirt
  set #lobjectid %bowlid
  event macro 17 0
  wait 15
  target 3s
  set #ltargetid %dirtid
  event macro 22 0
  wait 20
  finditem QLI C_ , #backpackid
  set %bowlid #findid
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub grab_items
  finditem DGI C_ , %bowl_bag
  exevent drag #findid #findstack
  wait 12
  exevent dropc #backpackid
  set %bowlid #findid
  wait 12
  finditem PDF C_ , #backpackid
  if #findstack <= 1
  {
    finditem PDF C_ , %secure
    exevent drag #findid 10
    wait 12
    exevent dropc #backpackid
    wait 12
  }
  finditem PDF C_ , #backpackid
  set %seedid #findid
  finditem NZF C_ , #backpackid
  if #findstack <= 19
  {
    finditem NZF C_ , %secure
    exevent drag #findid 200
    wait 12
    exevent dropc #backpackid
    wait 12
  }
  finditem NZF C_ , #backpackid
  set %dirtid #findid
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub set_vars
  set #lpc 1000
  finditem PDF C_ , %secure
  if #findkind <> -1
  {
    for #findindex 1 #findcnt
      set %seedct %seedct + #findstack
  }
  else
  {
    display Can't find seeds!
    halt
  }
  finditem DGI C_ , %bowl_bag
  if #findkind <> -1
  {
    if #findcnt < %seedct
      set %ploop #findcnt
    else
      set %ploop 125
  }
  else
  {
    display Can't find bowls
    halt
  }
  finditem NZF C_ , %secure
  if #findkind <> -1
  {
    set %dneeded %ploop * 20
    if #findstack < %dneeded
    {
      set %ploop #findstack / 20
    }
  }
  else
  {
    display Can't Find Fertile Dirt.
    halt
  }
  finditem VBM C_ , #backpackid
  if #findkind <> -1
  {
    event property #findid
    if unlinked in #property
    {
      display You do not have a linked endless decanter of water
      halt
    }
    set %pitcher #findid
  }
  else
  {
    display You do not have a endless decanter of water!
    halt
  }
  set #lpc 20
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub initialize
  namespace push
  namespace local initialize
try_again:
  event macro 8 1
  gosub wait_gump paperdoll_gump 262_324 10
  if #result <> #true
    goto try_again
  contpos !pd_pos 10
  wait 20
try_again2:
  event macro 8 7
  gosub wait_gump container_gump 230_204 10
  if #result <> #true
    goto try_again2
  wait 20
try_again4:
  event macro 8 2
  gosub wait_gump status_gump 432_184 10
  if #result <> #true
    goto try_again4
  wait 20
try_again3:
  finditem %secure g_3
  if #findkind = -1
  {
    display can't find secure!
    halt
  }
  else
  {
    set #lobjectid #findid
    wait 5
    event macro 17 0
    wait 30
  }
  finditem zjf G_2
  for #findindex 1 #findcnt
    set %bowl_bag #findid , _ , %bowl_bag
  set %bowl_bag %bowl_bag , _
  gosub separate_string %bowl_bag _
  set %bowl_count %t_num
  for %o 1 %bowl_count
    set %bowl . %o !return . %o
  finditem UMF G_2
  for #findindex 1 #findcnt
    set %crate #findid , _ , %crate
  set %crate %crate , _
  gosub separate_string %crate _
  set %crate_count %t_num
  for %p 1 %crate_count
    set %crate . %p !return . %p
  if %crate_count >= %bowl_count
    set %loop %bowl_count
  else
    set %loop %crate_count
  namespace clear
  namespace pop
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub wait_gump
  set %timer #scnt + %3
  repeat
    if %4 = #true
    {
      if %sbag = #true
        finditem %toolid C_ , %sbagid
      else
        finditem %toolid C_ , #backpackid
      if #findkind = -1
        return #false
    }
    if #contsize = %2 && #contname = %1
    {
      set %4 n/a
      return #true
    }
  until #scnt >= %timer
  set %4 n/a
return #false
;----------------------------------------------------------------------
;----------------------------------------------------------------------
sub separate_string
  set %t_num 0
  nameSpace Push
  namespace local separate
  str Count %1 %2
  for %i 1 #strres
  {
    set %var %2
    str len %1
    set %length #strres
    str pos %1 %var
    set %del #strres - 1
    str left %1 %del %length
    set !return . %i #strres
    set %del1 %del + 1
    str del %1 1 %del1
    set %1 #strres
    set %t_num %t_num + 1
  }
  nameSpace Pop
  nameSpace Copy ret* From Local separate
  nameSpace Push
  nameSpace Local separate
  nameSpace Clear separate
  nameSpace Pop
return
;----------------------------------------------------------------------
;----------------------------------------------------------------------

105
Off Topic / Re: Tough Mudder! Seattle
« on: July 22, 2012, 01:22:45 AM »
Not sure if any of you have heard of this little competition, but I'm putting together a team for it. And all are welcome! It's in Seattle September 29th. Let me know if you can handle the Pain!

If i didn't live in cali and run a 10 minute mile, I would be all for it...too bad i'm lazy and don't like to get dirty in the mud :P

Good luck tho, hope you do well

Pages: 1 ... 5 6 [7] 8 9 ... 19