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

Pages: 1 ... 45 46 [47]
691
Version 3.5.1 uploaded includes Frneo's code to craft pens. I do not have a scribe with tinkering to test the code, so please try out the new version and provide feedback.

Thanks,

JaF
Hi JaF, thx for trying out my code, I was really happy to see it in such a great script...

However, I was taking a look at my code, and I saw several flaws in it. Like I said, I wrote it kind of in a hurry...

For example, if you would run out of scrolls, the script would go into a loop making pens until your resource container was full...

Same thing would happen if your secure was full of books...

Anyways, I re-wrote some of the code, and improved it a little bit, and also fixed these issues.

So here goes the fixed version of the code.

First of all, you should change "sub button2" back to it's original form, my code won't use it anymore.

Code: [Select]
sub button2
set #menubutton n/a
menu delete status
menu window color white
menu text status 40 245 PAUSED
while #menubutton = n/a
  wait 10
gosub #menubutton
return

What I did change was "sub getpen". It should be changed to this:
Code: [Select]
sub getpen
if #menubutton <> n/a
   gosub #menubutton
menu delete status
menu text status 40 245 Getting Pen
finditem pbg C_ , %resource
if #findcnt < 1
   {
   if %tinker = #true
      {
      menu delete status
      menu text status 40 245 Making Pens
      gosub frneopen
      return
      }
   menu delete status
   menu text status 40 245 Out of Pens
   set #menubutton button2
   event ExMsg #charID 3 0 GET MORE PENS and hit RESUME
   return
   }
Exevent Drag #findid
Wait 10
Exevent Dropc #BACKPACKID
wait 10
finditem pbg C_ , #BACKPACKID
wait 10
while #findcnt < 3
       {
       finditem pbg C_ , %resource
          if #findcnt < 1
          {
           menu delete status
           menu text status 40 245 Out of Pens
           set #menubutton button2
           event ExMsg #charID 3 0 GET MORE PENS and hit RESUME
           return
          }
       Exevent Drag #findid
    wait 10
    Exevent Dropc #BACKPACKID
    wait 10
       }
set #menubutton BUTTON4
return

And also, I redid the rest of the code in accordance to these changes, so the previous version I posted here should also be deleted. This is the new version of the code, and should be inserted anywhere in the script:

Code: [Select]
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub frneopen
namespace push
namespace local frneopen
set !ingots ENK
set !tinker JTL
set !pen PBG
finditem !ingots C_ , %resource
if #findcnt < 1
   {
   namespace pop
   return
   }
if #findstack > 30
   {
   exevent drag #findid 30
   wait 20
   exevent dropc #backpackid
   wait 20
   }
if #findstack <= 30
   {
   exevent drag #findid #findstack
   wait 20
   exevent dropc #backpackid
   wait 20
   }
finditem !tinker C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
if #findcnt = 1
   {
   finditem !ingots C_ , #backpackid
   if #findcnt < 1
      {
      namespace pop
      return
      }
   finditem !tinker C_ , #backpackid
   set #lobjectid #findid
   event macro 17
   wait 25
   gosub frneowait generic_gump
   }
frneotinker:
finditem !tinker C_ , #backpackid
if #findcnt < 2
   {
   finditem !ingots C_ , #backpackid
   if #findcnt < 1
      {
      namespace pop
      return
      }
   set !clickx #contposx + 30
   set !clicky #contposy + 130
   click !clickx !clicky f
   gosub frneowait generic_gump
   set !clickx #contposx + 235
   set !clicky #contposy + 130
   click !clickx !clicky f
   gosub frneowait generic_gump
   goto frneotinker
   }
finditem !tinker C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 25
gosub frneowait generic_gump
frneopen:
finditem !ingots C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
finditem !pen C_ , #backpackid
if #findcnt < 4
{
finditem !ingots C_ , #backpackid
if #findcnt < 1
   {
   namespace pop
   return
   }
set !clickx #contposx + 30
set !clicky #contposy + 130
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 385
set !clicky #contposy + 270
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 385
set !clicky #contposy + 270
click !clickx !clicky f
gosub frneowait generic_gump
set !clickx #contposx + 235
set !clicky #contposy + 110
click !clickx !clicky f
gosub frneowait generic_gump
goto frneopen
}
finditem !ingots C_ , #backpackid
exevent drag #findid #findstack
wait 20
exevent dropc %resource
wait 20
namespace pop
return

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub frneowait
namespace push
namespace local frneowait
wait 10
set !timeout #SCNT
waitforgump:
if #contname = %1
{
namespace pop
return
}
if #SCNT > !timeout + 5
{
finditem JTL C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 25
namespace pop
return
}
goto waitforgump
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++

And last, I added a "switch code" for the tinker option. So, if you want to use the tinker option, you should add this to the very beginning of the script:

Code: [Select]
set %tinker #true ; can be changed to #false if you don't want to craft pens

So, I guess the issues I could think of are all covered in this new code... If any bugs should still appear, I'd be more than happy to try and help fix them...

Sorry for the inconvenience of having to change the code again...

And thanks again for giving it a try...

Cheers!

EDIT 08/01: Added a security code to the gumpwait sub to avoid endless loops, in case something weird happens while you're crafting and you lose your gump... Also fixed some flaws in case for some reason you ran out of ingots in the middle of crafting....

EDIT 08/02: Used namespace to avoid any possible issues with var names...





692
IDOC tools / Re: frneo's Auto House Placer
« on: July 31, 2011, 03:44:50 AM »
I assume this is a script for placing in an area after an IDOC or someting of that nature.  I myself am horrible at placing houses in tight spots and was always hoping someone would create a script that would help me.  Basically, if I was standing in an open area that looked as though a keep should fit then using a script it would attempt to place a keep in different positions infront of the character until it exausted all posibilities or placed the keep.  This is my dream!!

Yes, this will keep placing at the same position, to try and place after IDOC....

I guess this could be modified so that it tries to place on all tiles... I'll try and look into that for you...

EDIT: I'm just not sure it would be so useful nowadays, with the tool cooldown timer and such.... My guess is it would take forever to search the screen looking for a spot to build the house in...

693
IDOC tools / Re: frneo's Auto House Placer
« on: July 30, 2011, 05:13:26 PM »
I will play with this and get back to you! Thanks for submitting!!

Thanks for trying it out. I hope you find it useful...

694
IDOC tools / frneo's New Auto House Placer v2.0 08/21
« on: July 30, 2011, 09:25:53 AM »
Hey guys, I've been learning pixel testing stuff for the past few days, and I thought I could update this house placement script of mine, which let's face it, was a total piece of junk! :)
It was the first or second script I ever wrote though, so I was really just taking baby steps at the time. Now, I come to you with the new auto house placer, totally rewritten from scratch.
Hope you like it!

It will use pixel testing to automatically detect the house you want to place, and use that information to keep retrying to place your house until successful. You can set up the delay between placement attempts from the menu, to adjust to your likings!

This script is based on the idea behind TrailMyx's Smart and Repeating House Placer v1.6
So credit goes to him for coming up with this great idea.

Please, read the instructions before using this, or it will not work! :)

Code: [Select]
;=======================================================================
; Script Name: frneo's New Auto House Placer
; Author: frneo
; Version: 2.0
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 08/21/2011
; Public Release: 08/21/2011
; Purpose: Will keep trying to place the house you choose with a delay.
;          This is meant for trying to place a house after house collapsed.
;--------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8073.0
;================================================================================
; This script is based on the idea behind
; TrailMyx's Smart and Repeating House Placer v1.6
; So credit goes to him for coming up with this great idea.
;--------------------------------------------------------------------------------------
; Instructions:  After you click the setup button, just navigate to
;                the house you want to place in the house placement tool menu
;                and select the house of your choice.
;                IMPORTANT: Once you click down the button for the house you selected,
;                           you must keep holding the mouse button DOWN. After one second or
;                           so you will see a sysmessage telling you that you may release
;                           the mouse button now. Now you can release the mouse button and
;                           select where you want to place your house. This time is necessary
;                           for the script to properly detect the house you chose, because of
;                           changes made to the way the house placement gumps work. If you just
;                           click the button and release it quickly, the house you chose won't
;                           be detected properly and the script is not gonna work.
;
; If you use this, successfully or not, please tell me about it, so I can keep adjusting this
; to suit your needs.
; Thank you.
;-----------------------------------------------------------------------------------------

Cheers


695
UO-Related Tutorials / Re: Satyr Trick Enhanced
« on: July 30, 2011, 08:25:21 AM »
hehe,  I used this trick so much it isn't even funny but i heard they just fixed it in a recent patch.  can anyone confirm that or not?  there are actually about 10 or so really good spots to trap the satyrs olong the diagonal walls if you have two characters.  never found a spot where you could do it with one spot.  this was great for finishing ninjitsu or bushido when hitting a horse.

Thc for the submission, i just hope it still works!
I saw a guy training up magery today using the Satyr Trick, so my guess is it still works.

I haven't used the trick myself in the last couple of weeks, so I don't know if there have been any changes in it.

However, last time I used it, I was under the impression that it was taking me the same amount of time to get the skill up by 0.1 as it would take if I weren't discorded.
If this proves to be right, then the only upside of using this trick would be to use lower skilled moves to get the skill up. For example, magery, you would use spells that are faster to cast and use less mana.

696
On the contrary, good stuff frneo; thanks for sharing. This would be the appropriate way to share your customizations. +rep for the effort!

X
Thank you 12x, I really appreciate it! :)


No Problem Frneo, glad you are getting some use from the script.  I may just add in a pen tinkering option to the script, not something anyone has asked for before except for during the last week my friend Snake asked the same question.  If I do put it in the script and if use any of your code I will credit it to you in the script for the contribution.

Thanks for the input!!

JaF
Thank YOU for making it available to us, and I would love to see the tinkering option in the script someday. If my code is useful to you at any level, I'd be honored to have helped out, even if it's only a little. :)

697
UO-Related Tutorials / Satyr Trick Enhanced
« on: July 30, 2011, 07:50:24 AM »
Hi guys. I wanted to share with you something that has made my life A LOT easier when training up some skills. You all remember the satyr trick right?

If you don't know it, this is what I'm talking about:
Code: [Select]
Taken from uoguide.com
    Go into Twisted Weald, find a satyr and pull up its gump.
    Attack it by double clicking its gump in war mode and it will attempt to use discordance on you.
    Let it follow you around until you have been discorded. You will know this because you will see all of your skills drop.
    Then quickly get through the moongate to leave Twisted Weald.
    When attacking it I recommend you get to the exit as quickly as possible as it will try to provoke other creatures in the area onto you. With lowered skills you definitely don't want a Cu Sidhe attacking you; even a Pixie can be hard to kill if you're young. If they do target you, they must either be killed or you must leave the server and come back.
    Once you leave via the moongate the satyr will loose interest in attacking you. However, you are still discorded and you can re-enter without fear of it attacking you; this will NOT however stop critters that may have been provoked onto you from attacking you. This is when an invisibility spell or a pixie swatter with weapon skill comes in handy.
    Now as long as you stay close to the satyr you will stay discorded until it respawns. Making use of the Alt-Left Click combination to follow the satry around is helpful.

It takes a while to get the hang of it and may several tries before getting it down.

Unlike other debuffs, no icon indicator will appear in the buff/debuff gump while a character is Discorded.
Well, there's a way to "enhance" this trick, getting the satyr stuck, so that you can just stay put, and never have to follow him around anymore.
You will need a friend or second account to pull this off (it can be done solo, but it's easier to have someone there)

So, the first thing you should do is have a friend (or a second account) stand exactly at (1) in the pic below. Now have your toon (2) attack the satyr.


Once the Satyr starts attacking you, you should run to the spot shown in the picture below. Also be sure you're not in war mode as to not attack the satyr again.


Once the satyr gets to the spot just North of you (shown below) you should invis yourself (or have your friend invis you).



As soon as you're invisible, the satyr will forget to attack you (as long as you don't attack him again). Now you should quickly run past the satyr and stand right North of him, like shown in the picture below. Your friend (or second account) just has to stay put at the same spot since the beginning.


After a little while (a few seconds) the Satyr will want to move. Since he is blocked from the West (by your friend) and from the North (by you), and also, there's a rock blocking him from the East, he will have no choice but to move 1 square to the South. Once he does this, you should also move 1 square to the south. See pic below.


Ok, now you're done! The Satyr will be stuck there, and as long as you don't move, he won't be able to get out of that exact spot. Your friend (or second account) is free to go, as you will be blocking the Satyr's passage by yourself now.


Now you can perform the Satyr trick until you get discorded, invis yourself, and stand there training up your skill without having to follow the Satyr around. :)

I don't know if many of you know about this, I've just recently found out about this by accident when I started playing again after all these years away from UO.

Hope you find this useful. :)

If anything isn't clear enough, please ask here, and I'll try my best to make it clearer.




698
Hi guys...

First of all, congratulations on an AWESOME script JaF, I've started using it and I love it.
Thank you for sharing it with us.

Secondly, I wanted to add a Tinker option to the script, so that I could just fill the secure with iron ingots and go to sleep. :)

Well, I wrote down a sub that does this, and decided to post it here, to help out anyone who wanted this option in the script.

It seems to be working fine for me, but I haven't tested it a lot, so I don't know if there are any bugs in it.

It may be a little sloppy, I wrote it pretty quickly, so sorry about that.

So, to get it to work, you need to have at list 1 tinker tools in your backpack. And you should add this to the script somewhere:
Code: [Select]
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub luizimpen
set %luizimingots ENK
set %luizimtinker JTL
set %luizimpen PBG
finditem %luizimingots C_ , %resource
if #findcnt <> -1
   {
   if #findstack > 30
      {
      exevent drag #findid 30
      wait 20
      exevent dropc #backpackid
      wait 20
      }
finditem %luizimtinker C_ , #backpackid
if #findcnt < 0
   {
   return
   }
if #findcnt = 1
   {
   finditem %luizimtinker C_ , #backpackid
   set #lobjectid #findid
   event macro 17
   wait 25
   gosub gumpwait generic_gump
   luizimtinker:
   finditem %luizimtinker C_ , #backpackid
   if #findcnt < 2
      {
      set %luizimx #contposx + 30
      set %luizimy #contposy + 130
      click %luizimx %luizimy f
      gosub gumpwait generic_gump
      set %luizimx #contposx + 235
      set %luizimy #contposy + 130
      click %luizimx %luizimy f
      gosub gumpwait generic_gump
      goto luizimtinker
      }
   }
finditem %luizimtinker C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 25
gosub gumpwait generic_gump
luizimpen:
finditem %luizimpen C_ , #backpackid
if #findcnt < 4
{
set %luizimx #contposx + 30
set %luizimy #contposy + 130
click %luizimx %luizimy f
gosub gumpwait generic_gump
set %luizimx #contposx + 385
set %luizimy #contposy + 270
click %luizimx %luizimy f
gosub gumpwait generic_gump
set %luizimx #contposx + 385
set %luizimy #contposy + 270
click %luizimx %luizimy f
gosub gumpwait generic_gump
set %luizimx #contposx + 235
set %luizimy #contposy + 110
click %luizimx %luizimy f
gosub gumpwait generic_gump
goto luizimpen
}
finditem %luizimpen C_ , #backpackid
exevent drag #findid #findstack
wait 20
exevent dropc %resource
wait 20
finditem %luizimingots C_ , #backpackid
exevent drag #findid #findstack
wait 20
exevent dropc %resource
wait 20
set #menubutton button6
return

;+++++++++++++++++++++++++++++++++++++++++++++++++++++++
sub gumpwait
wait 10
set %timeout #SCNT
waitforgump:
if #contname = %1
{
return
}
if #SCNT > %timeout + 5
{
return
}
goto waitforgump
return
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++

And also change this:
Code: [Select]
sub button2
set #menubutton n/a
menu delete status
menu window color white
menu text status 40 245 PAUSED
while #menubutton = n/a
  wait 10
gosub #menubutton
return

to this:
Code: [Select]
sub button2
set #menubutton n/a
menu delete status
menu window color white
menu text status 40 245 PAUSED
if #menubutton = n/a
{
gosub luizimpen
gosub #menubutton
return
}
gosub #menubutton
return

Hope this can be useful...

I posted this only with the intention of helping others out, as I've been helped a lot here before.

If this post shouldn't exist or if it displeases anyone, please let me know, I will remove it ASAP. Thank you.

699
New member introductions / Re: So, allow me to introduce myself...
« on: May 29, 2011, 03:00:09 PM »
Thank you guys... You're too nice!

Thx a lot for the welcome :)

700
New member introductions / So, allow me to introduce myself...
« on: May 25, 2011, 05:28:27 PM »
Hi everyone... My name is Augusto... I'm 25.

I'm returning to Ultima Online after aprox. 5 years.... It feels great to be back, I love this game...

I guess I should tell you guys what changed in my life since...

Well, for starters, I got married, I got a serious job now... I also go to college here... My course is Statistics, but I'm thinking of changing to some kind of Engineering next year... I'm no sure...

Other then UO, I used to play other games, mostly First Person Shooters... My favorite one was Unreal Tournament... I played several tournaments in Europe and in the US, but unfourtunately I had to "retire" because of my other responsabilities...

Anyway, since my life is a little more stable now, I decided to go back to playing Ultima Online... I hope to get to know lots of people playing, like it was back in the day...

So, it's a pleasure to be here with you...

See you guys around ! ;)


EDIT: I forgot to tell you... I'm currently playing on Atlantic. I have two accounts there so far... Hope to see you guys there as well...

Pages: 1 ... 45 46 [47]