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 - slyone

Pages: 1 ... 3 4 [5] 6 7 ... 9
61
General UO Chat / Re: UOA doesn't load
« on: March 25, 2012, 07:40:51 AM »
I did something similar this morning. Time to find out more about razor...

62
General UO Chat / Re: What to do when a patch hits?
« on: March 16, 2012, 01:59:35 PM »
Freddy beat me to the quick reply...

Here is a link to a post on easyuo about what you can do

http://www.easyuo.com/forum/viewtopic.php?t=7979

63
Stealth archive / Re: When you give Stealth a try...
« on: March 10, 2012, 08:41:33 AM »
Awesome thanks!!

64
Stealth archive / When you give Stealth a try...
« on: March 09, 2012, 04:25:56 PM »
First, thanks to Crome for all the information on Stealth!

I gave this a try over the weekend.  I read through Crome's info here,http://www.scriptuo.com/index.php?topic=9203.0 first.   I also checked out the links to the translated Stealth website that Crome referenced.

The client worked fine but when I went to log in with UO assist, I got the "Trouble communicating with UO" message.  I found out that the login.cfg file had been modified.  There were a couple files that were modified in my UO program folder.  So I replaced the modified files with the ones from my laptop and problem solved.  I don't think I read anywhere about Stealth changing the login.cfg file so make sure you keep a backup copy.


65
Misc. Scripts / Re: SOT sorter
« on: February 29, 2012, 04:23:15 AM »
Glad to hear it helped!

66
Script Debug / Re: Recycler
« on: February 27, 2012, 05:46:52 PM »
I just ran the code below and it works for me with my platemail tunics.  Not sure what to say if it doesn't work for you.  You might try recycling via a salvage bag??  Something like move all non-exp items to the salvage bag and select salvage all. 


Try out the code below, I commented what I changed:

Code: [Select]
set %smeltingitems YVI_GZH_HZH_NJL_BWI_KWI_IWI_EWI_QJL_JWI_XVI_CZH_HWI_JJN_NZH_BZH_TDI_
+WVI_VVI_QSH_KZH_PZH_DZH_DSH_ASH_TSH_ESH_YPH_GSH_OSH_ZPH_ZRH_IWL_CSH_BSH_FSH_
+DPH_LKO_NWL_MKH_JKH_RJG_SJG_FJG_MWL_NSH_ALH_HKH_PKH_BQH_JSH_XLH_GLH_MSH_YLH_
+QPH_YKH_DLO_QKH_DLH_HSH_ULH_LLH_ZOH_IKH_VLH_KSH_WLH_WPH_PKO_PPH_RSK_ATK_ZSK_
+OSK_NSK_USK_SSK_MSK_TSK_LSK_KKH_SKH_WTO_VPH_ISH_AQH_BMH_USH_XKH_FLH_KMH_RKO_
+VKH_ELH_HMH_LSH_IMH_CQH_WSH_APH_MLH_RLH_NKH_XPH_NKO_QSK_YSK_PSK_OZH_VSH_
+FMH_GFF_EPH_LPH_BPH_CUO_TSF_LPO_JPH_ZTH_RMH_SOH_JOH_KSF_
+FUO_WSF_ATF_OMH_XPO_QPO_NMH_WOH_BNF_LTF_VPO_TOH_WTH_VRH_KTF_LMH_TLH_
+OLH_FFF_ZSF_YTH_BUO_ASF_ISF_BSF_QPF_KPH_CUH_NPO_MPH_UOH_TRH_XRH_CSF_
+KPO_POH_RRH_WPO_EMH_MSF_OPO_BUH_GUO_MMH_VTH_BFF_QMH_YSF_NSF_LSF_AQF_
+GMH_JTF_SRH_CNF_FBG_HNF_ZPF_GBG_OSF_INF_HSF_AUO_ZTO_FSF_WRH_MTF_JPO_
+RPF_HFF_XSF_YPO_JSF_DMH_XTH_PPO_QOH_URH_CQF_CFF_PMH_AUH_SPO_CPH_ZRF_
+MPO_YRH_USF_LIK_MIK_CLK_AIK_CIK_LYD_GIK_NIK_ZHK_HLK_BLK_FIK_BIK_OIK


event macro 8 7
wait 15
if #contkind = OHF
{
  ContPos 570 12
}
wait 50
set %charpackid #contid
wait 15
finditem TBG C_ , #BACKPACKID ; <---- Added to look just in backpack  #BACKPACKID should be the same as #CONTID
if #findkind = -1
{
  event sysmessage Need more tongs!
  halt
}
set #lobjectid #findid
event macro 17 0
gosub WaitForSmithGump
if ! #result 2
   display All out of tongs!
   halt
if #contkind = STM
{
  ContPos 50 50
  click 83 403
}

findItem %smeltingitems C_ , #BACKPACKID
if #FINDCNT < 0       ; <------------  Changed the if statement expression slightly
{
  Display Can't find anything to smelt, halting...
  halt
}
for #FINDINDEX 1 #FINDCNT
{
  event property #FINDID
  if excep in #property
  {
  ignoreitem #FINDID
  }
  else
  {
    set #LTARGETID #FINDID
    event macro 22 0
    gosub WaitForSmithGump
    if #contkind = STM
    {
  ContPos 50 50
  click 83 403
    }
  }
}
Display All Non-exceptional Items were smelted, halting...
halt

sub WaitForSmithGump
   set %gumptimeout #scnt
   _WaitForSmithGump:
   if #contName <> generic_gump && #contsize <> 530_437
   {
      wait 1
      if %gumptimeout + 5 < #scnt
         return #false
      goto _WaitForSmithGump
   }

  return #true


67
Script Debug / Re: Recycler
« on: February 26, 2012, 11:03:51 AM »
I did test the code and it worked for me,  I made some iron plate chest pieces and had a mix of exp and non-exp items.  Only the non-exp were smelted.

A couple things you can do to debug is insert displays and pause in various places in the script and check the VARDUMP in the EUO menu.

Here is an example:
Code: [Select]
finditem %smeltingitems
if #FINDCNT > 0
{
event property #FINDID
display #PROPERTY
}
halt

You could also step through using the F keys, something like this:

Code: [Select]
pause
finditem %smeltingitems ; use F7 to step line by line through the code
if #FINDCNT > 0
{
  event property #FINDID
;etc...


Tools > Vardump gives you a listing of all the variables and their values.  It lists user defined variables also.

If you are still getting the "that is too far away message" you might look at the values of the #FINDX #FINDY #FINDZ to see what item #FINDID is actually referencing.

68
Script Debug / Re: Recycler
« on: February 26, 2012, 09:20:45 AM »

I have done as you said but still not having any luck. With what you mentioned added into my script, It attempts to click "something" but always says "that is too far away". There are none of the "smeltingitems" anywhere on my screen.


I didn't put it in my example above, but I think it is recommended that you do a check on #FINDCNT after you do a finditem call.  Then you only do something if #FINDCNT is greater than 0.  If there aren't any of the smeltingitems on your screen and you ran the code without check #FINDCNT, then you may have targeted a different #FINDID than you were expecting.

Code: [Select]
;snipped code above this

findItem %smeltingitems C_ , %charpackid
if #FINDCNT > 0
{
  for #FINDINDEX 1 #FINDCNT
  {
    event property #FINDID
    if excep in #property
    {
      ignoreitem #FINDID
    }
    else
    {
      set #LTARGETID #FINDID
      event macro 22 0
      gosub WaitForSmithGump
      if #contkind = STM
      {
      ContPos 50 50
      click 83 403
      }
    }
  }
}
halt


The finditem call below should only return items found with in the container %charpackid.
Code: [Select]
finditem %smeltingitems C_ , %charpackid
Hopefully this helps to debug the "that is too far away" message.



69
Script Debug / Re: Recycler
« on: February 25, 2012, 05:57:01 PM »
.. Im not sure how to set it to find the item, search the properties, then click it if properties do not include exceptional.

Any help would be greatly appreciated!

Your code seems to do the job up until you do the finditem on the smelting items.

Code: [Select]
findItem %smeltingitems
event property %smeltingitems
if excep in #property
{
  ignoreitem #smeltingitems
}

finditem %smeltingitems returns the item id you searched for in the variable #FINDID

You want to do the event property on that #FINDID and you also want to ignore that #FINDID if it enters your if statement above. 

You could add an else statement to this and then target the item to smelt if you want.

The new code might look like:

Code: [Select]
findItem %smeltingitems
event property #FINDID ; <----- Changed %smeltingitems to #FINDID
if excep in #property
{
  ignoreitem #FINDID    ; <----- Changed #smeltingitems to #FINDID
}
else
{
  set #LTARGETID #FINDID
  event macro 22 0 ; last target
}

Additionally, if you are searching a bunch of items in your bag then you could do a loop after the finditem %smeltingitems.  Check out the easyuo wiki entry for #FINDINDEX , http://wiki.easyuo.com/index.php?title=FindIndex.

Adding the loop would look like this:
Code: [Select]
findItem %smeltingitems
for #FINDINDEX 1 #FINDCNT
{
  event property #FINDID
  if excep in #property 
  {
    ignoreitem #FINDID
  }
  else
  {
    set #LTARGETID #FINDID
    event macro 22 0 ; last target
   
    ; put the code to click the smelt button again here 
    gosub WaitForSmithGump
    if #contkind = STM
    {
    ContPos 50 50
    click 83 403
    }
  }
}

Good luck with your recycling.

70
_C2_ Script Library / Re: C2's BOD Collector Script
« on: February 19, 2012, 01:55:02 PM »
I just used this for 15 shards worth of characters.  It worked great.  Took about an hour. Thank you so much!!


Alternatively, if your script users only intend to run it every 18 hours themselves, they can just search for the line:

gosub collectsmith

and add two duplicate lines below it.  I just tested it myself and it works fine. 

Thanks NObama for the edit!!  That works great too.

EDIT:  What we really need is a Bribery script to scan a whole book of BODs and bribe NPCs to upgrade the ones that we want.  Hmm....idea brewing...

I see your idea brewing.  The Bulk Order Bribery script I posted is pretty manual in nature, I like your idea of a more intelligent bribery script.

71
Misc. Scripts / Re: Scroll Binder
« on: February 18, 2012, 05:50:03 PM »
Updated to version 1.3...

The new version has a lot less for loops and finditem calls.  I tested this on 250 scrolls and I'd say it ran about 2x faster than the previous version.  I ran out of scrolls to test this on so let me know if you have any issues. 

I updated the code description in the 1st post.  Thanks to TM and manwinc for the help with dynamic variables, I needed it for this script!

72
Script Debug / Re: Problems creating a dynamic variable
« on: February 18, 2012, 10:42:04 AM »
You have to use a combination of the dot operator and the concatenation operator.

Code: [Select]
set %var1 10
set %var2 string

set % . %var1 , %var2 Worked

display %10string
halt

For what you are doing, you would need to use an intermediate step in order to Extract the Data from your Dynamic Variable.

Code: [Select]
set %Var1 10
set %Var2 String
set %Temp %Var1 , %Var2
set % , %Temp Worked
display % . %Temp
Halt

The Easiest way to get around this is just to Bypass the Var2.

Code: [Select]
set %Var1 10
set %String , %Var1 Worked
Display %String . %Var1
halt

Once you get the Hang of it, its not Tooo Bad.



Thank you!!

73
UO Client Modifications/Tools / Re: Client mods
« on: February 18, 2012, 07:07:49 AM »
Thanks for this!!

74
Script Debug / Problems creating a dynamic variable
« on: February 18, 2012, 06:41:27 AM »
I'm trying to create a variable name dynamically.  The test code I am using is below:

Code: [Select]
set %var1 10
set %var2 string

set % , %var1 , %var2 XXXXX

display % , %var1 , %var2
halt

I want the variable to be "%10string" and to have a value of XXXXX.  But when I use the display command it shows the string %10string rather than the value XXXXX. 

Can anyone help?

75
Crafting / Bulk Order Bribery
« on: February 13, 2012, 05:59:56 PM »
With the help of MeWon's Smith BOD Sorter-er, all of my BODs are sorted.  I'm always in need of powder of fort so I decided to try and upgrade the POF 20 bods to POF 90 bods.  I wrote this to automate the bribery process.  I made a menu and wrote up some instructions.  

You all at ScriptUO have really saved me tons of clicks, hopefully this will help save you some also!  Thanks!!

Updated to Version 1.1:  See the code snippet below for a list of updates.  I implemented the Upgrade Loop and hopefully fixed a couple bugs.  Let me know what you think.  Thanks!

Version 1.0 GUI

Uploaded with ImageShack.us

Version 1.1 GUI

Uploaded with ImageShack.us

Code: [Select]
;==========================================================
; Script Name: Bulk Order Bribery
; Author: slyone
; Version: 1.1
; Public Release: 02/13/2011
; Revision Date: 5-23-2012
; Purpose:  Upgrade BODs via bribery
; Instructions: -Fill up a BOD book with BODs you wish to
;                upgrade, this is the 'Full Book'
;               -Get another BOD book to put the upgraded
;                BODS into, this is the 'Empty Book'
;               -Have money in your bank
;               -Stand within two tiles of an NPC you can
;                bribe
;               -Bribe away
;==========================================================
; Version 1.1 Updates: -Modified logic with waiting for
;                       gumps
;                      -Hopefully fixed bug where the
;                       script closed your backpack
;                      -Added Upgrade Loop button that will
;                       loop bribery until bod book is
;                       empty or until vendor can no longer
;                       be bribed
;==========================================================
; Unresolved Issues: -BOD ghosting
;                    -Getting message "You must wait to
;                     perform another action."  when the
;                     script tries to drop a bod on the
;                     vendor
;==========================================================

Pages: 1 ... 3 4 [5] 6 7 ... 9