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.


Topics - alaskan

Pages: [1]
1
Stealth Client / Stealth not recognizing gumps? (Python)
« on: April 29, 2015, 11:03:32 PM »
Has anyone else ran into Stealth not recognizing gump ID's with python? I have two functions for waiting for gumps and replying to gumps (thanks to Chrome) but it seems as though Stealth doesn't recognize some gumps. Just curious if this was just happening to me or if it has been happening to other people as well.

2
Scripting Chat / Trying to wrap my brain around the infamous STR command
« on: September 18, 2014, 10:54:54 PM »
Not trying to step on any toes with this post and just in advanced I do use/love TM's CLAW script, one of the best looting scripts I've seen. For myself though I'm trying to get better with EUO in general and it seems I've still much to learn lol. Which brings me to this topic. I somewhat understand strings and how powerful they can be when used properly, especially in looting purposes. I've taken this sub that I found on the EUO website and tailored it a little for learning purposes. I've tested this sub and it works superb for evaluating the "sum" of the pre-sub variables (%1 %2 %3 etc. not sure if that's the correct terminology lol). I'm trying to only evaluate the intensity of one item for looting vs. the intensity sum of all the items. I will post this "modified" sub (credit was given where credit is due) and if someone wishes to see the full script I have no problem posting it. I just want to understand using the str command fully. Any and all help is much appreciated  :D.

Code: [Select]
gosub getprop blah blah blah
sub getprop

  ;This sub was written by JackD. I merely added modifications
  ;
  ;

  namespace push
  namespace local getprop
  set !0 %0
  set !1 %1
  set !2 %2
  set !3 %3
  if !0 > 0 && !1 <> N/A
  {
    finditem * C_ , %1 ; corpse from my script
    if #findcnt < 1
      return %total
    set !oldlpc #LPC
    set #LPC 10000
    set %total 0
    set !line % . !0               
    goto L , !0
L5:                                      ; Assuming this part stores blah and stores it into the string
    set !line !4 , #spc , !line
L4:
    set !line !3 , #spc , !line
L3:
    set !line !2 , #spc , !line
L2:
    set !line !1 , #spc , !line
L1:
    set !line $ , !line , #spc
    str len !line
    set %len #strRes
    for #findindex 1 #findcnt
    {
      event property #findid
      if !line in #property
      {
        str pos #property !line
        set %pos #strRes + %len
        str mid #property %pos 5
        set %prop #strRes
        str pos %prop $
        set %pos #strRes - 1
        str left %prop %pos
        set %tempval #strRes
        str pos %tempval %
        if #strRes > 1
        {
          set %pos #strRes - 1
          str left %tempval %pos
          set %tempval #strRes
        }
        set %total %total + %tempval           ; I believe this tallies up all the integers for blah
      }
    }
    set #LPC %oldlpc
    namespace clear
    namespace pop
    return %total
  }
  namespace clear
  namespace pop
return 0

3
Script Debug / Problem with if statements?
« on: May 11, 2014, 06:36:58 AM »
Code: [Select]
;====================Harvest=====================
sub Harvest
  FindItem %flax1 G_0
  set #lobjectid #findid
  while #findcnt > 0
  {
    Event Macro 17 0
    wait 3s
  }
  FindItem %flax2 G_0
  set #lobjectid #findid
  while  #findcnt > 0
  {
    Event Macro 17 0
    wait 3s
    finditem %bundle C_ , %backpack
    set #lobjectid #findid
    if #findcnt = 10
    {
      exevent drag #findid #findstack
      wait 10
      exevent dropc %hboh
      wait 10
      if #charposx = 2282 && #charposy = 1708     ;First Crop
      {
        event macro 5 1
      }
      if #charposx = 2282 && #charposy = 1707  ;Second Crop
      {
        event macro 5 7
      }
      if #charposx = 2281 && #charposy = 1707    ;Thrid Crop
      {
        event macro 5 7
      }
      if #charposx = 2280 && #charposy = 1707   ;Fourth Crop
      {
        event macro 5 7
      }
      if #charposx = 2279 && #charposy = 1707     ;Fifth Crop
      {
        for %next 0 2
          event macro 5 1
      }
      if #charposx = 2279 && #charposy = 1705     ;Sixth Crop
      {
        event macro 5 3
      }
      if #charposx = 2280 && #charposy = 1705     ;Seventh Crop
      {
        event macro 5 3
      }
      if #charposx = 2281 && #charposy = 1705     ;Eigth Crop
      {
        event macro 5 3
      }
      if #charposx = 2282 && #charposy = 1705     ;Ninth Crop
      {
        event macro 5 1
      }
      if #charposx = 2282 && #charposy = 1704     ;Tenth Crop and moves to Spinning Wheel
      {
        for %next 0 2
        {
          event macro 5 1
        }
        wait 5
        for %next 0 2
        {
          event macro 5 7
        }
        wait 5
      }
    }
  }
return
Ok so I'm writing a flax harvest script and it harvests the flax just fine but then it doesn't drag and drop the %bundle to %hboh and doesn't move to the next crop. I'm sure I'm missing something or don't have something written correctly. Any and all help is much appreciated. Thanks in advance guys  :)

4
Script Debug / Having problems using last target
« on: May 04, 2014, 05:14:25 PM »
Hey guys trying to make a healing script for the free shard that I play on. I'm having issues using the last object that was selected by my target prompt. Please help  :)
Code: [Select]
;========Select Bag with bandis=========
display Choose your bag that contains bandages
if #dispres = ok
{
  repeat
    {
      set #targcurs 1
    }
  until #targcurs = 0
  set #ltargetid %container
  set #ltargetkind 1
  event macro 22 0
  finditem ZLF C_ , %container
  if #findcnt > 0
  {
    set #lobjectid #findid
    goto mainloop
  }
  else
    if #findcnt < 1
  {
    display Couldn't find any bandages
    halt
  }
}

5
Scripting Chat / Tutor?
« on: April 27, 2014, 08:46:16 AM »
Looking for an easyuo tutor  :D, someone who has the free time to help me learn scripting in euo. I've gotten to the point of giving up hope on reading the euo documentation and trying to learn from it. I know everyone says it's best to learn from looking at other scripts as well but I understand that they work I want to know how they work and why they put some of the variables in where they did, you know? I understand the flow of a script very well but I get lost at what to put into the script hehe. I'm on ICQ and team speak as well. Any help would be much appreciated  :)

6
Stealth archive / Gump issues?
« on: November 03, 2013, 06:14:52 AM »
First I would like to start off by thanking the entire Stealth team for making such a powerful application and I appreciate all the hard work they've put into it. I have come across this one little bug though and maybe it's only on my shard that's doing it, not sure if someone else has been having this issue. My problem is not being able to see any new gumps that I either open manually or gumps that appear automatically like the world tele gump. Basically all it's doing is the client will say "Incoming Gump" but won't actually show the gump, i can still use the infogump though and it shows me all the gump info like it's on my screen. I have v6.1.3 of stealth, if someone can help me out with this issue that would be awesome and thanks again Stealth team :D

7
Script Debug / Harvest Script
« on: November 01, 2013, 05:25:11 AM »
Hey guys this is just a simple harvest script that I put together and it'll work 90% of the time, however it gets caught up before it actually finishes harvesting. Can someone help me out, maybe tell me what I need to add/remove thanks guys in advanced :D
Code: [Select]
;Harvest Flax
finditem VEK G_0
{
  if #findcnt < 1
    return
  set #lobjectid #findid
  set #ltargetkind 1
  event macro 17 0
  wait 80
}
else
{
  finditem WEK G_0
  if #findcnt < 1
  return
set #lobjectid #findid
set #ltargetkind 2
event macro 17 0
wait 80
}

8
Scripting Chat / Scripting with EUO and similar languages?
« on: October 31, 2013, 02:26:07 PM »
So I've been doing a lot of research, reading, and yes even watching youtube videos to learn as much as I can about scripting because I would like to make my own eventually and also contribute as well :D. So far from what I've gathered is the syntax that is used in EUO closest to C# or is there some other coding language that I need to be studying. Also big props to the Stealth team, I can wait to get to the point to use that application and start writing scripts with that as well, but I need to take baby steps lol. If someone could help me out as far as what language I really need to learn in order to write my own scripts or at least tell me that maybe I just need to start diving in and play around with it and go from there that would be awesome :). I just want to know what is the most efficient way to learn the awesome knowledge that is scripting. Thanks guys in advanced :)

9
New member introductions / Hello Everyone
« on: October 29, 2013, 06:33:45 PM »
Hi guys, I recently found this site and I love it so far. Very informative and I wish I was competent enough to write my own scripts but unfortunately I know nothing about it and I've started from scratch. Anyway, I love UO and I've only been playing for little over three months now but it's an awesome game and the people that I play with on the shard that I play on are awesome. I play on a free shard called Excelsior and love it so far. I was in the Army for 8 years and just recently got out and now I'm back home waiting to go to college and start my own life  :D. I would like to get to the point to write my own scripts though and I've been reading the easyuo wiki and all the documentation they have on there and also the awesome tutorials that Cerveza has written on here as well. I guess my biggest issue is figuring out what I need in a script and how to apply it (I guess that goes for any script though really lol). Well this is my introduction and can't wait until I can contribute to this site like so many other awesome people have done here :)

Pages: [1]