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

Pages: 1 [2] 3
16
Combat/Healing/Looting / Medusa scaler
« on: August 02, 2010, 06:15:07 PM »
This is a simple script to cut medusas scales. It should not be intrusive, and pauses when done, in case you are chaining them.

Script relies on Trail Myx's journal sub, which can actually HANDLE a sampire spam storm and still be accurate. Thanks for sharing this TM.
Thanks to Aastrom of Easyuo for the core idea of his script.
Thanks to Cervesa, for his many tips, and the ID's of other pointy objects form his bone cutter.
Thanks to Twinkle McNugget, Cervesa, JAF, _C2_ (for menu tutorial), Paulonius, and many others for chiming in to get me up to speed.
Thanks to all scripters who share their work!

Set UP: Have a knife in main pack. Hit play. Get within two tiles of medusa. That should be all.
Additional notes. Waits can be adjusted on the fly. I put in a soft wait that looks for must waits and other errors. In testing, this has worked very reliably.
If a must wait occurs, script loops back to previous section and re-tries while adjusting the wait up 1.

Code: [Select]
;==================================
; Script Name: Medusa scaler
; Author: Baldielocks
; Version: 1.0
; Public release date: 02 August 2010
; Purpose: Cuts scales from medusa while fighting. Detect success / fail / complete.
; Special thanks:Script relies on Trail Myx's journal sub, which can actually HANDLE a sampire spam storm and still be accurate. Thanks for sharing this TM.
;Thanks to Aastrom of Easyuo for the core idea of his script.
;Thanks to Cervesa, for his many tips, and the ID's of other pointy objects form his bone cutter.
;Thanks to Twinkle McNugget, Cervesa, JAF, _C2_ (for menu tutorial), Paulonius, and many others for chiming in to get me up to speed.
;Thanks to all scripters who share their work!
; Aasstrom (easyuo) for use of his doom bone cutter.

;==============================================================================
;                              _
;           ___         _     | |  __   ___ _____
;         / __/  __ _ _(_)_ _ | |_\  ) (  //  _  \     Making (s)UO easier.
;         \__ \(  _/ `_/ / ` \|  _|  | |  |  / \  \     www.scriptuo.com
;          __| | (_| | | | |) | | \  \_/  |  \_/  /     Admin:  TrailMyx
;         \___/\___| | |_|  _/\__\ \_____/\______/    Ass. Admin:  Cerveza
;                  | |   | |
;                  |_|   |_|
;
;==============================================================================
;Client Tested with: 7.0.7.3
; EUO version tested with: 1.5
; Shard OSI / FS: OSI

; Instructions: Be in medusa lair (no point otherwise), have a sharp thingie that skins in pack.
; Oh, and hit play. That helps.



;==================================
;==================================
; Script Name: Non-Intrusive Doom Bone Cutter
; Author: Aastrom
; Version: 1.2
; Client Tested with: 6.0.11.0 (patch 72)
; EUO version tested with: 1.5
; Shard OSI / FS:
; Revision Date: 2008-12-06
; Public Release: 2006-11-04
; Purpose: Unintrusively cuts Unholy Bones that the Dark Father in Doom places.
;==================================


17
Rolling with OMG Burgers idea, I created a skill mule and transferred 50 ninja to my sampire, stoning off anatomy. I have skill room for it, and possibly jewle room to make it a permanent part.
Using focus attack, I have seen that 50% is not effective so far. Perhaps at 67.5 (100% chance) it will be more effective.
So far, fighting bouras, I see a little damage increase, but my mana leech is non-existent. It will replace what I used, -2. But then again, high end damage is 47 without anatomy.

I THINK I can fit it in once I am done with suit pieces, we will see. Will report more on this later.

18
General UO Chat / suit adjustment advice requested
« on: July 30, 2010, 07:28:39 AM »
Really not sure where to put this. Uber suit thread? Imbue thread? Sampire V 2.0 thread? Ah well.
I finally got the resources I need to make at least three uber woodland pieces. I am non-faction, elf. I have on hand to put in suit:
Heart of lion, runebeetle carapace, basilisk hide armor
leggings of bane, fey legs
stormgrip
Mace and shield.

Wep skill is macing, with val hammer crafted LBOE. HML 68 / HLL 60 / HSL 46 / Hit magic arrow 48 / HCI 13 / DI 40 (Yah, I really want HLA, but what can you do?)

I am mostly torn between the tunics. If I were factioned (see below), I would most likely go with runebeetle and fey legs.
after reading faction stuff, it would appear to be real easy to get the level 1 items. but I don't pvp, so how would I go about doing that? Any suggestions?


19
Script Debug / file sub or global variable?
« on: July 25, 2010, 01:14:16 PM »
working on the tri-fecta script for unravelling. I definitely want to use some sort of save system. I have found several different types of subs in use and for use in scripts.
My question, what is your favorite? Global or file system? Which one? Why?

20
Script Debug / Gorgon lens charge scanner / charger
« on: July 21, 2010, 10:17:30 AM »
~edit. Incorporated below changes. Could use a debugger if anyone is willing. At work for another 8 hours.
Set up: must have (currently) gorgon lens made from bright blue scales (from living medusa). Must have helmet and gorget slots filled with items that can accept charges.
Code: [Select]
;===========================================================
; Name: Gorgon lens charge scanner
; Author: Baldielocks
; Version: 1 Beta
; Easyuo Version : 1.5
; Client Version : 7.0.7.3

; Purpose: Scans gorget and helmet slots for lens charges, applies more if needed and in pack.

; Special Thanks:
; Trailmyx for his gump wait and offset click subs and ideas. And for SUO utility and the site!
; Twinkle McNugget for advice and his ignore item sub.
; Just Another Face for advice on logic writing.
; Massacre for finding my first bug
; Cervesa for the pointer on sub writing.

; Changelog: Beta version 1, 21 July 2010 :
;Corrected flow issues and logic as identified by Cervesa and JAF and everyone else in the thread.

; Info. Must have perfect lens in pack (made from birght blue medusa scale).
; I inserted a hard pause in the script to avoid unintentional loss of lenses by beta testers.
; Remove or comment out if it works smoothly.
;===========================================================

21
Scripting Chat / Diagonal line in EUO Menu?
« on: July 20, 2010, 05:51:29 PM »
Anyone know how to create a diagonal line in EUO Menu? is there a way? I can simulate one by taking grid to 1, and drawing pixel boxes, but it suxxxx to script around and manage.

22
Scripting Chat / Script library suggestion
« on: July 20, 2010, 01:42:17 PM »
Not sure if my two cents is worth even a cent, but here ya go.

Do you think it would be suitable to have an imbue section for imbuing scripts in the library? Chiefly, Paulonius' imbue trainer and our various residue reaper types.

I would also cast a vote (if I had one) for Paulonius to be a mini-mod of it.

23
This is working, and near complete. There is NO faster way to 10K points than this, but it is NOT the most cost effective way.

Time to 10K for a gargoyle starting at 2K should be 25 minutes. Time to 10K for a human should be 30 minutes. This is a 300% more effective method than anyother.

Average time for each quest should be 12 seconds, or 5 per minute, including looting.

Thanks to the following for help during this, my first real script attempt:
Trailmyx for his gump wait and offset click subs and ideas, such as scripted questing. And for SUO utility and the site!
 BadManiac and Tecmo for the move item sub.
 Cervesa for the snippets thread and advice, especially using #findcnt, and the pause snippet (not used here). His push for 120 imbuing inspired this script.
Twinkle McNugget for advice and his ignore item sub.
Paulonius for daring to be the first to try this out, and excellent bug stomping.
 _c2_ for his awesome menu tutorial. Using your #menubutton suggestion, among many others.
Xahtuj for feedback and ideas.
J4bber for his LJ drop sub.
Scriptfellow for the click X Y Z sub and menu subs.
Lion from easy uo, got time ideas from his timer sub. Header included, but did not use his code, just his math.

Code: [Select]
;===========================================================
; Name: sliemQuest
; Author: Baldielocks
; Version: 1.2
; Easyuo Version : 1.5
; Client Version : 7.0.7.3
; Tested: OSI. Intended for OSI only, use on freeshard at own risk.

; Purpose: Completes Sliemquest for fastest queens forge access.

; Special Thanks:
; Trailmyx for his gump wait and offset click subs and ideas, such as scripted questing. And for SUO utility and the site!
; BadManiac and Tecmo for the move item sub.
; Cervesa for the snippets thread and advice, especially using #findcnt, and the pause snippet (not used here).
;             His push for 120 imbuing inspired this script.
; Twinkle McNugget for advice and his ignore item sub.
; Paulonius for daring to be the first to try this out, and excellent bug stomping.
; _c2_ for his awesome menu tutorial. Using your #menubutton suggestion, among many others.
; Xahtuj for feedback and ideas.
; J4bber for his LJ drop sub.
; Scriptfellow for the click X Y Z sub and menu subs.
; Lion from easy uo, got time ideas from his timer sub. Header included, but did not use his code, just his math.
; Everyone that ever released a script publically. Thank you for sharing!
; Most especially, my wife Sunny for supporting my scripting time with a smile, and listening to my insane babble.

; Changlelog: version 1.2, Aug Jul 2010
; Added auto detect for quest item toggle gump size.
; Added Essence Counters
; Removed move and checkground subs, added my own version. This needs help!
; Added Cervesa target system toggle.

; Changelog: previous, 20 July 2010 :
; Fixed loyalty counter. Captured #menures too soon. Now captures after OK is pressed.
; Removed display command and added in pause to set up menu so you can get materials before starting main quest.
; Changed context menu gump size. Included instructions if other people have this issue.
; Added in quest chest handling. now looks for container on ground to put them in. If not there, will create new stack.
; Added ignore lists. added ignore %lootbag during pack cleanup.
; NOTE, current version looks for quest chest only on ground. I have not added in other containers.
; Changed menu drawing. Added in time to set initial wait times.
; Added on the fly pause sub.
; Added two methods to avoid image ghosting during dragc and and drop operations.
; Deleted some lines left over from changes (oops, bad baldie)
; Changed client logged off handling to loop to accept quest, then wait 10S.


;TO DO LIST: journal scan checks vice %actionwait. Add in counters for essence. Center setup menu.
;;==============================================================================
;                              _
;           ___         _     | |  __   ___ _____
;         / __/  __ _ _(_)_ _ | |_\  ) (  //  _  \     Making (s)UO easier.
;         \__ \(  _/ `_/ / ` \|  _|  | |  |  / \  \     www.scriptuo.com
;          __| | (_| | | | |) | | \  \_/  |  \_/  /     Admin:  TrailMyx
;         \___/\___| | |_|  _/\__\ \_____/\______/    Ass. Admin:  Cerveza
;                  | |   | |
;                  |_|   |_|
;copied from Twinkle McNugget.
;==============================================================================
; QUESTING INSTRUCTIONS AND INFO
; Start at home or bank, wherever you have your materials.
; Set lootbag, This may be your mainpack, or any type of container.
; Script will display the required amount of perfect emeralds and
;crystalline blacrock to reach 10K loyalty from your starting point.
; Quest items MUST be in your mainpack.
; Load up and go to Sliem.
; You will be given a chance to set waits next. adjust slowly if at all.
; Hit the begin quest button and off you go.
;
; Refer to the main thread at http://www.scriptuo.com/index.php?topic=5438.0 for location info if needed.
; NOTE: New Targetting MUST be on.

; Wait times can be adjusted on the fly, and are refreshed after each sub. Pause is checked after each loop.

; You will need 1 crystalline blackrock and 2 perfect emerald per quest IN YOUR MAIN PACK.
; Script checks loyalty and recommends number of blackrock and perfect emeralds to reach 10000 loyalty.
; Each quest yields 75 loyalty. Estimated time is 13 seconds per quest, including looting.
; You get a bonus 2K for being gargoyle from start, so you only need 8K points or 107 quests ( 107 CBR and 214 PE). Estimated time 20 minutes.
; If human or if you used a token, you will need 134 crystalline and 268 perfect emeralds. Estimated time 25 minutes.
; Loot is one box that weighs 4 stone, and 1 essence that weighs 1/10 stone.
; You can load up at home, then go to sliem with scipt running.
; Select "Start Quest" when you are at Sliem's location, and he is ON SCREEN.
; If you wish to use this to get essence ( I do not recommend it ), lie about your loyalty.
;There is a known issue with some users having different context menu sizes. I attempt to detect and correct that at script outset.
; Please let me know if you hang up on toggling quest item.

24
Scripting Chat / event exmsg question
« on: June 18, 2010, 05:20:28 PM »
Perhaps I am just wishful thinking here. The documentation says:
Quote
The event ExMsg command shows the string provided in the message parameter over the object given by the object ID.
.

I was hoping I could get a message to display over the pet. But no matter what I try (all ID's), I cant get a message. The example code shows #charID, is Event Exmsg limited only to that? I wanted to give pets some flavor with random messages associated with condition. Still got options, but that is the BEST one.


25
Script Debug / Help with bugz. Can't figure this one out
« on: June 16, 2010, 06:31:52 PM »
Disclaimer: been looking for PSL header info, but cant find it. Of course, this is nowhere near ready. My problem is three fold.
1) Despite numerous configurations, have to keep the health bar in original place, or script breaks. Tried offset sub and generator (now commented out), tried hard coding the cont pos + location, and tried fixed location (cheat method).

2) Archcure will not target pet. But will target toon if ID is reset, OR if you changed to Event Macro 23.

3) Most beguiling. This script was (almost) working last night. Only thing left was arch cure, then continue.
NOW, it continually loops at my distance check of greater than 10 from the pet, even though finddist is 1. I have messed around with copies, and cant get it back to working order.

Have run this through scriptuo, corrected all but one problem. Line 116 is nested without return. Don't rightly understand that fully.

The script is meant to evaluate pet condition, and cast / use aids depending on distance (for now, user configs coming once operational) and condition (hurt, poison, mortal). I have set several conditions meant to focus on playability and survivability of the player. Most scripts wont allow you to peace or provo while they are active. I plan to enable all skills through journal scan once I get it casting correctly.
Still working on mana conservation, fast cast timing and checking for skill use (got those lined up though, thanks to snippets section).

Have an on-the fly menu set-up planned out, thanks to TM's menu post. Still trying to figure out how he got his tool gump health percent to work so well (want to add that in as well).

I have been putting a lot of time into this, and a lot of research. Any help to get me unstuck would be greatly appreciated. Almost ready to pull my hair out. Gotta grow some first though >:(. Thank you for the help and ideas so far! This is gonna be a fun project, once I actually know what I am doing.

script pulled from attachment. Two major bugs fixed.

26
Script Debug / Archcure script not targeting
« on: June 15, 2010, 10:09:44 PM »
Having an issue with archcure. It was working earlier. Made no changes. Separated the sub out, and still no good. Rebooted comp, no joy. What am I missing here? The target cursor will come up, but will not target. Tried to step through, but saw no errors. Passes syntax in SUO. Changed Ltargetid in this snippet to make it easy to pull pet bar and test.

Code: [Select]
event macro 15 24
set #Ltargetid #contid
target 5s
event macro 22
halt

27
General UO Chat / Does wolf slayer affect ninja forms?
« on: June 14, 2010, 07:03:36 PM »
WOlf slayer affects bake K, CU, wolf. All ninja forms. Misericord, once quest complete, is imbuable (no longer blessed)(confirmed today on Lake Austin). If it were to affect ninja, I would be a happy baldguy. Any ideas folks? (checked stratics and such, could not find a reference).

28
Scripting Chat / Mortal strike and Poison colors?
« on: June 13, 2010, 03:28:35 PM »
*bangs head on wall* been reading documentation and googling my bald head off  :'(. I can't seem to find any reference to the health gump colors for poison and mortal strike.
Anyone know how I could get them?

29
Script Debug / lol, graphic glitch making new script
« on: June 12, 2010, 11:56:39 AM »
This is a start of a pet healer I am making based on TM's petgump healer tool, with his permission. I was trying to find a more consistent way to grab and position the health gump, and learning new click commands. I wound up turning my mare into a wooden door!  ???. It changes back upon recall. Localized graphic glitch, others see it as a mare. Just funny. Give a newb power, and what do you get?

After reading all I can on clicks, I cannot figure out how to HOLD a click. I noticed that if I hold a right click for 2 seconds on a target, it's health bar will pull up. I want to automate this for health gump positioning.

Code: [Select]
;pet gump healer ideal flow
;1. id pet(s)
;2. pull pet health bar
;3. set health bar position
;4. monitor health bar for health%, poison, mortal strike colors
;5. if health < set%, use bandage and GH. see if heal is more effective. Calculate FC/FCR.
;6. if status poison, use bandage and cast arch cure
;7. if mortal, wait until poison status or normal status, then resume
;----------------------
;initial set up
;set pet 1
all stay
set #targcurs 1
      while #targcurs = 1
         wait 1
      set !pet1 #ltargetID
      set !pet_xpos #LTARGETX
      set !pet_ypos #LTARGETY
      event drag !pet1
                halt

30
Script Debug / Drop Chop Send V 0.0001 beta
« on: June 12, 2010, 09:49:05 AM »
This is my first script. This takes advantage of the bug that lets you overweight your toon. Script purpose inspired by existing scripts from TM (warp speed logs to boards) and snicker 7. Snicker 7's has been broken for quite some time  :( due to an EUO targetting command change.

This is a limited purpose script, meant for gathering mass stacks of leather at thrasher, then sending to bank while afk. It does NOT cut the corpse. I assume that most people are using a looter that can cut corpse. If needed for debug, I can add that in.

This assumes you stay in one spot.
I use Bad maniac's looter, and did not have a crash.

Sure could use some experienced input on stability and debug. any takers?

I have been researching move to commands, and intend to add in the ability to move to a stack of leather on ground once the first one is set.

I intend to add some stat tracking to this. total number of hides, hides per hour, and gold per hour (using average leather price for all shards from http://searchuo.com data). I will also add in a variable for the wait times for the user to set all (done and reflects below).

Script passes syntax check in SUO. Used SUO for AutoIndent.
Code: [Select]
SUO syntax check
Method count: 56
Command count: 56
*** Pass 1 - Label accounting:
Subroutine labels = 4
Tag labels = 0
0 Code block(s).
0 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]
[/color]
Code: [Select]
set %max_stack_on_ground 14; change to 59950 for full production
set %lagwait 15
;mainloop
finditem EEG_ C_ ; hides in pack
if #FINDKIND = -1  ; no hides in pack
  return      ;sets monitoring
set !hides_in_pack #findid
set !stack_in_pack #findstack
;need a break here. transition from monitor to action.
finditem EEG_ G_  ;detect stack on ground
if  #FINDKIND = -1
  gosub new_stack
set !hides_on_ground #findid
set !stack_on_ground #findstack
if !stack_on_ground > %max_stack_on_ground ;keeps stack at 1 on ground
  gosub cut_hides
gosub Drop_hides_in_stack
return

;start subs
Sub Drop_hides_in_stack
ExEvent Drag !hides_in_pack !stack_in_pack
wait 10
ExEvent Dropc !Hides_on_ground !stack_on_ground
wait 10
return

;-------------------------------
Sub new_stack
Set %Xpos ( #CharposX - 1 )
Set %Ypos ( #CharPosY - 1 )
ExEvent Drag !hides_in_pack !stack_in_pack
wait %lagwait
ExEvent Dropg %Xpos %Ypos
Exevent Dropc C_ ;debug
return
;-------------------------------
Sub cut_hides
Finditem KAG_ C; scissors
if #findkind = -1
  halt;add in display to get scissors
Set %scissors #FINDID
Set #lobjectID %scissors
Finditem EEG_ G_ ;new stack find variables after last drop
set !Hides_on_ground_new #findID
set !number_on_ground_new #findstack
Set #ltargetID !Hides_on_ground_new
wait %lagwait
event macro 17 0 ;first cut attempt on ground
target 5s
wait %lagwait
event macro 22 0
wait %lagwait
exevent drag !Hides_on_ground_new !number_on_ground_new
wait %lagwait
event macro 17 0 ;second cut attempt on ground
target 5s
wait %lagwait
event macro 22 0
wait %lagwait
exevent dropc #BACKPACKID
ignoreitem !Hides_on_ground_new ;clears id. was picking up cut leather as lobject type
gosub BOS
return

;----------------
Sub BOS
Finditem JJG_ C_
set %cutleather #findid
set #ltargetid %cutleather
finditem CKF_ C_
set %bos #findid
set #lobjectid %bos
event macro 17 0
target 5s
wait %lagwait
event macro 22 0
return

Pages: 1 [2] 3