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

Pages: [1] 2 3 ... 9
1
Alpha,  the script i'm 'trying' to fix for my own use is in 'Submit Your Script' section of this site (here's the URL: http://www.scriptuo.com/index.php?topic=7750.0  The Reaper's Mace and Shield Donator

i am very very very INexperienced at using scripts, much less writing them, but i've taken courses in HTML and web design a long long time ago and decided i'd give this a try because i REALLY want this script to work.

when i 1st loaded this Donator, the crafting gumps were so fkd up due to OSI changes over the years, it was making baskets, axes, and making them by the truck loads! LOL. friend of mine & i got it sorted out to doing all the right things now Except the actual donation.  it opens the NPC's gump and starts yelling "50" over & over. (script makes 50 bucklers per trip) but for life of me i cannot find where the speech part is at, i don't see it in the 'hands in the bucklers' sub routine and i've been trying to go thru the script line by line but today has been a busy day in real and i'm about to go out to dinner w/ the girlfriend. i welcome and truly appreciate all advice & help!!!
i'll be working on this tomorrow (Saturday) over coffee. if anyone leaves me any things to try, that's when i'll be testing them. i'm East coast U.S. & i usually am online 630-7am 7 days a week. (i'm retired :) )

Library donation: double click NPC, donation gump opens, beside items your character has that are accepted will be a blue gem 'button' on left side of item name, click the button of your item, target item in your main pack. then you can repeat the button/ target until all are donated(which is how i "THINK" Reaper originally wrote the script to work, based on it monitoring character weight decreasing) a bag of items can be donated but you keep the bag and there is a 2nd 'donate all' button to click on 2nd gump if using bag of items

Reading the post your problem is simply the click location of the little blue gem is wrong. When that is fixed the donation should work fine. Below is the donation sub from the script

Code: [Select]
;==================================
; Hands in the bucklers
sub TR_Hand_in
set %TR_temp_weight #weight
repeat
set #lobjectID %TR_Donation_NPC
event macro 17 0
gosub TR_waitfor_generic_gump
set #contPosX 0
set #contPosY 0
wait 5
click 40 260 dmc
wait 10
msg %TR_no_bucklers $
wait 10
until #weight < %TR_temp_weight
set %TR_Status_bucklers ( %TR_Status_bucklers + %TR_no_bucklers )
set %TR_no_bucklers 0
gosub TR_update_status
return

Now in your post you describe how you think the donation sub works which is not quite right. Let me try and explain.

Code: [Select]
set %TR_temp_weight #weightSets a variable to the amount of the system variable your weight. Lets say 500 for now. So both %TR_temp_weight and #weight will equal the same at this point
Code: [Select]
set #lobjectID %TR_Donation_NPC
event macro 17 0
Sets the #lobjectID from the variable %TR_Donation_NPC which is the NPC you picked at the start up of the script to donate the bucklers to and then event macro 17 (use last object) mimics the double click of the NPC to open the donation gump
Code: [Select]
gosub TR_waitfor_generic_gumpJust leaves the sub to check that the donation script is opened and returns back when this is true
Code: [Select]
set #contPosX 0
set #contPosY 0
wait 5
click 40 260 dmc
wait 10
Now comes the root of all evil where I think you are getting messed up. Using the system variable #ContPosX and #ContPosY the script will move the donation gump to the co ords 0/0. Which is the top most left corner. Then it will use the click command to press the little blue gem. The numbers 40 260 are wrong as the location has changed. Now let me ask this. When you try and determine what the correct location of the click is are you moving the donation gump to same #ContPosX and #ContPosY as the script does? Remember the script will move the gump then click. So you need to move the gump then check what the correct click position is. I'm thinking the 260 should be 270 or 280. But that's just a guess.
Code: [Select]
msg %TR_no_bucklers $
wait 10
until #weight < %TR_temp_weight
Now here comes your loop of death :) Assuming your click was correct you now need to enter the amount of bucklers with the key board. Now since we are unattended we can not physically type in the amount of bucklers, in this case 50, so the script will mimic this by using the msg command. Since your click is wrong it will just message on screen instead. Now we hit the weight check in the Repeat/Until loop. The Until checks to see if your weight has changed. So it will compare actual weight, #Weight, to the %TR_temp_weight set at the beginning. We used 500 as an example. So the only way the Repeat/Until loop will break if your weight changes less then 500. But if you don't donate anything it will loop forever because your weight won't change less then 500 always spamming the msg command in the loop.
The rest of the sub just updates some numbers and that's it. Fix the correct click and you will be in a state of total bliss :)

Hope this helps!





2
Once you start using the ScriptUO program you will never go back! The time it will same in writing/debugging is amazing. Also when posting code look for the hash tag button above the smile faces for inserting code into the message. Just a little easier to read. On quick glance Repeat/Until work hand in hand. If you have one you need the other.

3
I dont have UO installed at work so can only show ya the direction to go. Look for the sub below.
Code: [Select]
;==================================
; Hands in the bucklers
sub TR_Hand_in
set %TR_temp_weight #weight
repeat
set #lobjectID %TR_Donation_NPC
event macro 17 0
gosub TR_waitfor_generic_gump
set #contPosX 0
set #contPosY 0
wait 5
click 40 260 dmc
wait 10
msg %TR_no_bucklers $
wait 10
until #weight < %TR_temp_weight
set %TR_Status_bucklers ( %TR_Status_bucklers + %TR_no_bucklers )
set %TR_no_bucklers 0
gosub TR_update_status
return
;==================================

Now this is looks like the donation sub were the problem is. Now think if you were to do the donation manually how it works. You click on the buckler bullet and then asked how many to donate. You enter in 50 and hit enter and all is well. You character does not say 50 on the game screen but the number is entered into the gump. The msg %TR_no_bucklers $ command is like typing 50 on your keyboard and hitting enter. So unless the buckler option is clicked anything typed in will show in game as if you were talking since the gump was not selected. This is why you are spamming 50 because the click for the buckler donation is wrong. This sub has a Repeat/Untill loop untill the weight changes as a check that something was donated. Since nothing is donated because the click for bucklers is wrong it is stuck inside that loop. If you fix the click for buckler all will be well in the world.

4
well bless you for trying BW. i've got every section on right hand side of EUO open and i'm looking but i can't seem to find any coords that appear similar to '30  170 dmc'
i really wish i knew at least this much about the codes, and i do want to get that knowledgeable, i'm just not there yet.

Without reading the thread let me try and point you in the right direction. dmc = Dont Move Cursor and goes hand in hand with the click command. The numbers to the left are the x/y co ords were the click will happen. So if something has changed in the gump then you need to change the x/y location. What is the easiest way to do that? Go to the main SUO page and in the search box type in TrailMyx's OffsetClick generator and run that script.

Hope this helps!

5
Resource Farming / Re: Lugz Barb Leather Getter
« on: May 01, 2013, 11:49:03 AM »
Glad you like! I'm really hoping soon to update to a better more stable version if RL would stop getting in the way. I always farmed the cow/goat spawn in Delucia for regular leather. In Fel adding a rail to the bank would be much more efficient. But either way still load up quick on leather there. Also there is some stuff in the Japan land that gives good leather just not thinking what it is right now.

6
Having some spare time lately looking at updating a few scripts to use your buff bar scanner. Below is the sub that is having some issues.


Code: [Select]
];================================================
Sub Check_Buff_Bar
   Call ScanBuffBar
  If ( #Mana >= 20 ) && ( _EnemyOfOne_ Notin %BuffBarIconNames ) && ( _Paralyze_ Notin %BuffBarIconNames ) && ( %Cast_Wait_Timer <= #sCnt2 )
  {
    Event Macro 15 206 ; cast Enemy of One
    Set %Cast_Wait_Timer #sCnt2 + 25
  }
  If ( #Mana >= 10 ) && ( _ConsecrateWeapon_ Notin %BuffBarIconNames ) && ( _Paralyze_ Notin %BuffBarIconNames ) && ( %Cast_Wait_Timer <= #sCnt2 )
  {
    Event Macro 15 203 ; cast Consecrate Weapon
    Set %Cast_Wait_Timer #sCnt2 + 25
  }
  Event Sysmessage  %BuffBarIconNames
Return
;===============================================

Its a basic sub to check for EoO and Consecrate Weapon and works most of the time but some times it spams casting both as if it is not seen in the buffbar. I have read this problem in other posts also. Ive added an Event Sysmessage and have determined why the failure happens. When everything works i have three icons listed in the buffbar. Protection/EoO/CW in the first three icon slots. But every once and a while the location of the icons for EoO and CW will change. For example I would have Protection/EoO/blank icon spot/CW in the buffbar. The third slot were CW was would be blank and CW icon now moved to the fourth slot thus spamming EoO and would not show in the Event Sysmessage %BuffBarIconNames until it returned back to the third spot. Does this make sense?! It seems my script or UO is causing the location of the icons to some times change which i never seen before.
Any help would be appreciated or can send pics of the buffbar if needed!

7
Well it is probably me but i set the claw up properly set the desired resists for the wood armor. Then started this script then went through its set up targeted everything like it said. had bark and wood on my salvage bag. made one item targeted it and it started the loop. It made like 10 then it stops and it says TM_CLAW is evaluating the item and the whole thing freezes. Anyone else having this issue ?

I also had the same problem. Turned out that if you are hidden while running the script the script will hang on the waiting for CLAw to evaluate but CLAw will not evaluate due to being hidden. Or at least in my case this was the problem. Not sure if CLAw is intended to work hidden or not.

Once again the script worked perfect! Being able to craft pieces with 2 minimum resists really is nice when making up uber suits and with the new armour changes coming I started to make base platemail pieces now. Just in case! Considering the odds of two resists landing at minimum values on the same piece you could never do it without the help of scripting. I average 6-8 pieces from 60k iron ingots.

 

8
Resource Farming / Re: Lugz Barb Leather Getter
« on: February 19, 2013, 03:49:24 AM »
Hi I figured that I would try this out to farm some Boura hides in Tel Mur.

I set the x lines up I believe correctly.

I start in the bank and play the script and it just sits there so I SJ to the hunt location and it finds the Boura ands kills it.

Then it starts saying "Can't get there"

What do I need to check and What am I missing

Oh yeah and I added a butchers knife to the list instead of the cleaver.


Its been awhile since I looked at this script or played with it so ill take a look at see if anything has changed.  Definitely need to start at the hunting location not the bank. Usually when you get a message "Can't get there" its looking for something too far away or trying to return to a place too far away. Anyways ill dust off the thinking cap and take a looky again.


 

9
General UO Chat / Re: Where do you farm your leather?
« on: January 17, 2013, 09:02:38 AM »
For Barbed leather a Sampire in Ice Dungeon you can rake in the hides. I have a basic Barbed getting script for there posted in the script section. Fairly stable and reliable. Also as stated Wyrm Island in T2A you can also rake in the Horned Hides. Only problem there unattended is sometimes spawn will be on the water with Imps or Wyverns so need an archer/thrower or some sort of spell damage to kill the spawn. Not sure where the best spined would be. Been a while since I needed that.

10
UOMaddogs' Script Library / Re: Maddog's Automator
« on: January 12, 2013, 05:12:45 AM »
- "Spawner" is a little sub that I use that Selects Nearest Hostile and Attacks Selected Target (new targeting system must be enabled)

Just reading up on the script and seen you mentioned the above under notes but do not see it anywhere? Curiosity had me wanting to take a look at it  :)

11
Off Topic / Re: What'd everyone get this year?
« on: December 28, 2012, 01:00:21 PM »
Von Miller T Shirt!! And a half pound peanut butter cup with a half pound of skittles to wash it down..FTW :)

12
New member introductions / Re: CyberPope's Intro
« on: December 28, 2012, 10:51:12 AM »
Loved the radar scripts! Welcome to the site

13
General UO Chat / Re: How did you come by your SUO name?
« on: November 30, 2012, 04:43:39 AM »
Way back when me and a bunch of guys started characters to join factions when they first started up. I made a Dexxor to run with Vanq spears collected and Power spears made from Verite hammers and since it took the mentality of a Lug nut to run the template Lugnutz was born :) Then it spurred a whole Lug up rising on Cats. My guild mates followed with Lugwrench, Lugstud, Lugbolt, Lugdud etc. It was really fun untill the Speed Hackers took off and we all moved on.

14
So I'm going to release this over at EasyUO very soon.  Lemme know if there's something you've seen that's missing and perhaps I can add it.
You are a very very brave man! May god take mercy on your soul!

15
Off Topic / Re: Gas price comparison
« on: September 12, 2012, 12:47:33 PM »
In the big ole city of Sault Ste. Marie Canada we are at $1.35 per litre or $5.11 a US gallon. We are Lucky being a border town and can cross the ditch to Sault Ste. Marie Michigan and get gas for $4.05 a gallon


Pages: [1] 2 3 ... 9