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

Pages: 1 [2] 3 4 5
16
Script Debug / Re: Waiting until new target arrive
« on: April 06, 2016, 04:46:26 PM »
I use this for melee in champ spawns... afk away! (this is just a snipper, but I think its along the lines of what you're looking for)

one word of caution... I freaking HATE ignoreitem. much like event property 9 times out of 10, there is a better way.

Code: [Select]
  repeat
      event macro 52 5 ;target nearest
      set #lpc 1
      finditem #ltargetid * g
      set #lpc 20
   until #finddist < 2
   event macro 53
   while #ltargetid = #enemyid && #enemyhits > 0 && #finddist < 2
   {
      if g notin #charstatus
         event macro 6 0 ;war toggle
      ;event macro 53 0 ;attack
      wait 5
      set #lpc 1
      finditem #ltargetid * g
      set #lpc 20
   }

modified for pets:

Code: [Select]
  repeat
      event macro 50 5 ;target next
      set #lpc 1
      finditem #ltargetid * g
      set #lpc 20
   until #finddist < 10 && #findid notin #charid , %aListOfYourPetIdsSeperatedWithUnderscores
   event macro 1 0 All kill
   target
   event macro 22 0 ;no need to set ltargetid or kind because 50 5 does it for you
   event macro 53 0 ;attack selected - populates #enemyinfo
   while #enemyhits > 0 && #finddist < 10
      wait 0
   event macro All guard me ;or whatever...

you may want to use something other than #finddist, but maybe not. target next/last runs into issues with not being able to pick up things a certain amount of tiles away. not really sure where the break is, but 10 seems to work ok (minor issues) so just make sure to stay within 10 tiles of the target.

MAKE SURE TO ADD OUR PETIDS to the do not kill list...

17
Script Debug / Re: Ore looter issues
« on: March 22, 2016, 06:15:12 PM »
yes, and using #findindex as the counter iterates through each indexed id.

18
Script Debug / Re: Ore looter issues
« on: March 22, 2016, 01:35:24 AM »
well here's one mistake:

Code: [Select]
set %loot HVF_UVF_FVF_EVF_OVF_VUF_GVF_RVF_BVF_VVF_NVF_ZVF_

event macro 3 0 All follow me

Start:
finditem YFM G_2
if finditem <> -1   <----- mistake...

should be:

Code: [Select]
if #findkind <> -1
maybe that will fix?

*edit*

ok, was looking at this more, and I recommend writing your gem sub without the #findkind return thing, though that IS a very interesting and inventive way to write that. This is not technically any better, but will reduce the *cringe* factor for inspectors of your script.

Code: [Select]
sub gems
finditem %loot C_ , %oreContainer
for #findindex 1 #findcnt
{
       exevent drag #findid #findstack
       wait 20
       exevent DropC #backpackid
       wait 27
}
return

all in all, not a bad job. That first fix will probably work fine without this, but this is much better scripting practice. :)

19
Script Snippets / Lydaan's Snippets
« on: March 04, 2016, 05:42:46 AM »
My first snippet! :D Everyone's favorite, Event Property!

After much much reading and many hours working with event property, I finally came up with a way to evaluate event property to make sure that it is current for the item in question. Enjoy, and criticize freely! This should only stall if you use it incorrectly.

Works fine as a stand-alone sub, and updated it to handle single line as well as multi-line properties.

*edit: stripped this down to it's smallest form. it will hang if called with an invalid [Parameter_1] or if you die, etc. If you need help with adapting the wait conditions, let me know.

Description and parameters:
Code: [Select]
;=======================================================
;       -=| Lydaan's GetProperty Sub |=-
; --- For when event property is your only option ---
;     Ensures #property is current for the item
;     in question while taking the minimal amount
;     of time. No extra wait needed.
;-------------------------------------------------------
; %1 = id of item to get property of, must not be null
;=======================================================
Examples calls:
Code: [Select]
...
goSub getProperty %thisThing
finditem %theseThings * c
for #findindex 1 #findcnt
{
   goSub getProperty #findID
   ...
}
goSub getProperty ABCDEFG
...

Sub:
Code: [Select]
sub getProperty
   set %gp_lpcReturn #lpc
   set #lpc 100
   event property n/a   ;sets #property = $
   while #property <> $ ;waits for #property = $ before moving on
      wait 
   event property %1
   while #property = $  ;waits for #property to update with the passed [Parameter_1]
      wait
   set #lpc %gp_lpcReturn
return

*edit: shaved a couple lines with repeat instead of while - Changed the name, fixed typos, added examples.

*edit: stripped it down to it's simplest form while still setting #lpc = 100. It also now works for single line as well as multi-line properties.

I will post it again as a semi-standalone with sub conCheck and sub login once I get all the subs worked out for Sub ClientAction.

20
Scripting Chat / Re: NPC vendor sell
« on: February 14, 2016, 03:17:44 PM »
wrong channel as there is nothing to debug, if you had looked or searched in the correct channel (Scripting Chat), you would have found:

http://www.scriptuo.com/index.php?topic=13547.0

at the bottom of the first page

21
Scripting Chat / Re: How Hard To Script This ?
« on: February 14, 2016, 03:14:52 PM »
I would say instead of click opening the vendor backpack, use a shovel or hatchet or whatever to get the objectid of the vendor, open the paperdoll, then open the backpack. make sure the backpack is current on top, then use the contid to get the backpackid then:

Code: [Select]
set #lobjectid %vendorpackid
event macro 17 0
wait 20

22
Scripting Chat / BOD/BOB sorter
« on: February 11, 2016, 07:17:47 PM »
I've been chatting with Ghost about BOD/BOB (Bulk Order ___) sorting, and I figured it's time for a thread.

I've got my sorter working the way i want it, but it is too simplistic for what Ghost wants, or OSI requires. I had a lot of fun building my sort switch, and am interested in building a bigger/more complex one for others to use.

Since I know nothing about OSI, I'm going to need some help to set this up. I'd prefer to lay all the cards on the table so I can look at it from the top down and bottom up.

Chatting with Ghost, and reading threads for some of the other BOD sorters, it sounds like the basic needs include:

  • Sorting by color
  • Sorting by reward type
  • Maybe sorting expensive BODs (BODs that cost a lot of resources and give crap rewards)
  • Sorting LBODs into their respective BOBs
  • Support for multiple BOBs for each sort category
  • Sorting filled SBODs into Turn-in/save for LBOD

If I haven't covered anything, or you want additional support, please let me know. At this point, the more complex the better... I'm up for a logic challenge!

-----------------------------

Update: Untested (at all) BOB Handler

Code: [Select]
;---------------------------------------------------------
;   Name: BOD Sorter and BOB handler
;   Author: Lydaan
;   Tested: Never
;   Purpose: Sort your buttload of BODs
;   Copyright: Feb 11, 2016
;---------------------------------------------------------

includes:

Code: [Select]
; sub BOBhandler
; Counts BODs in books for un/loading
; Handles BOBs to drop BODs from and sort to
; Parameters
;    %1 load or unload
;    %2 Color
;    %3 BOB category ID list (un/filled unsorted, reward category)
;---------------------------------------------------------

I haven't tested this at all, but the logic should work... just need to clean it up.

------------------------------------------

For OSI, do I need to differentiate between 10 & 15 SBODs for rewards? I'm assuming LBOD 10 & 15 rewards are the same, or do I also need to differentiate those?

------------------------------------------

I finally got my ASH +60, so going to let the iron BODs pile up while I play with my new plate suit. This should give me a large enough data set to start working on the sorter.

-------------------------------------

working on BODs again, maybe stuff in 1-2 weeks

23
Off Topic / Re: Need Computer info
« on: February 09, 2016, 05:59:55 AM »
stick with the 1600... apparently it increases performance by ~3% and is about the same price... probably has something to do with multiplier/fsb

as I said before though, if you create material you don't want to lose, RAID 1 is the way to go.

24
Off Topic / Re: Need Computer info
« on: February 07, 2016, 03:37:16 PM »
Save yourself a few bucks and get 1333 Memory... Intel FSB is locked at that, unless you plan on overclocking, its a waste to buy 1600

Not ahuge concern because most RAM is XML enabled, but make sure it says XML

All in all a nice build, real jealous   ;)

*edit*

nevermind, looks like I'm talking out my ...

25
Off Topic / Re: Need Computer info
« on: February 07, 2016, 01:42:38 AM »
I recommning not using any AMD CPU and ATI Graphics.
The World already optimize their stuff towards INTEL, why would someone open the AMD grave and add more dead money?

ah yes... I too used to be an AMD hater... I had more *fun* money back then... AMD is always a fraction of the price for mininimal performance loss for the average user.

You, my friend, are NOT the average user  :)

26
Off Topic / Re: Need Computer info
« on: February 06, 2016, 10:48:31 PM »
So, next biggest question: Do you 3d game? WoW or any newer 3d game? this is important because the graphics card, or lack there of comes into play...

I currently also run an AMD APU (A8-3650 3.5Ghz), and have 0 problems running 3 UO accts with a handful of scripts running WHILE watching Netflix, and having somewhere between 10-30 Chrome Tabs open. I do have 16gb of RAM which helps a bit, mostly just more tabs tabs open.

right now I have about 15 tabs open, and netflix and the three ultima accts running and am at ~60% CPU, and 4.5GB Memory used.

Back when I was playing WoW, netflix and Raids were a bit taxing, but if I closed my tabs, I was usually okay. Just to give you an idea.

So after answering the "I need a dedicated graphics card: yes/no" question, we move on to storage.

I am a huge proponent of RAID storage... RAID 1 or 10 to be exact. RAID 5 or 6 are fine too, but most don't want to spring for a RAID controller and 5+ HDDs/SSDs.

When I was in school a long time ago, I had a bar band (new age New Orleans Brass Band) and had a bunch (thousands of hours of work) of music that I had written/transcribed on my computer. That (really "those" as I was running RAID 0) HDD died, and I lost a lot of creative material... This time around, I went with 4 HDDs so I could run RAID 10 which I think is stripes of a mirror, but that's whatever.. my only real point is now again, having hours of self produced music, nd now hundreds of hours spent on writing scripts, I am VERY comforted by the fact that 2-3 HDDs must fail before I lose data. So, if you create on your computer, I definitely recomend a RAID 1 setup so your data is safe, if you don't then you might not care, and 1 HDD is probably enough.

Still on drive storage, if you only want one and the amount of storage isn't a priority, get an SSD. This may lead to the wife wanting one, too so take that into account.

I'll check back, later


27
ah yes... I bet that wait before key esc was an issue with mine... nice work

insted of wait 10, I would use target... will pass as soon as cursor turns into target

28
Off Topic / Re: Need Computer info
« on: February 06, 2016, 02:12:06 PM »
Well, you need to supply some use information...
how many things do you run at the same time?
3 ultima accounts with multiple scritpts running?
netflix or some other streaming service at the same time?
At full load, what does windows task manager tell you your cpu/memory usage is?
vlc or movies at the same time?
how many tabs do you keep open when browsing the internet?

it sounds like you're maxing your CPU, and there is an upgrade option that would improve your performance by 40-60%

http://www.amazon.com/AMD-A8-3870K-Graphics-Quad-Core-Processor/dp/B006J420UE

this will fit in your motherboard, but you would also have to buy a new heatsink. I use this:

http://www.newegg.com/Product/Product.aspx?Item=9SIA0AJ3KD0684

it's the second best air-cooler on the market, after this one:

http://www.newegg.com/Product/Product.aspx?Item=N82E16835608018

They are nearly identical, and should come with all the required stuff to fit your motherboard, but I would email them first to make sure it will fit on your board... they have THE BEST customer service.

you should look inside your pc and see if you have room for more RAM. 8GB is PLENTY for most things, but if you could fit more, why not... look for open slots near the RAM

And lastly, get an SSD...

So, to sum up... save the $$$ and upgrade for less. These upgrades would cost somewhere between $500-$600 here in the US.

*edit*

if you're really set on a new build, we can look into that... just provide some use details so I can better diagnose what's going on.

29
Scripting Chat / Re: Need help with making a script.
« on: February 05, 2016, 03:36:18 PM »
finditem and #findcnt
http://wiki.easyuo.com/index.php/FindItem
http://wiki.easyuo.com/index.php?title=FindCnt

Code: [Select]
finditem * c_xxxxxx
if #findcnt > 120
   gosub dropp_off

30
Thanks Ghost, that's what it sounded like was going on

*edit*

make sure to fix that wait placement, because that may be part of the problem

Pages: 1 [2] 3 4 5