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

Pages: 1 ... 3 4 [5] 6 7 ... 9
61
Inactive Submissions / Re: Auto Item Buyer 3.5!
« on: December 03, 2009, 07:55:26 AM »
found 2 errors. Sorry... First one.. Change the location of the vendor button after it is done line 806

menu Button vendor 256 24 99 25 Done
and if you have bottles or probbaly gems any of the 1 gold piece item in your inventory list you will only grab 1 gold not enough to buy other items like regs....

Good find, Thanks

Updated 12/03/09
-Fixed menu button error.
-Fixed Gold selection issue when buying instant respawn and non instant respawn items together.

62
Inactive Submissions / Re: Auto Item Buyer 3.5!
« on: December 02, 2009, 01:59:57 PM »
You are THE MAN.  Nice work Gen, I will give it a try!

Thanks!  ;D

I kinda rushed it so I hope it works ok. Let me know what ya think.

63
Inactive Submissions / Re: Auto Item Buyer 3.5!
« on: December 02, 2009, 11:37:01 AM »
Updated to version 3.5

New to version 3.5

-Buy Rules
 In previous version you would select a pre-determined list of items to buy.
 Now you can make your own list!

-Total Amounts
 You now choose how many of each item you want to buy!
 (default 1000000)

-Manual
 For vendors that you can't recall to, you can use Manual and the script won't recall!

-Stats
 You can now monitor total gold  spent and total of each item you've bought!

64
Inactive Submissions / Re: Auto Item Buyer 3.0!
« on: December 02, 2009, 07:31:28 AM »
Gen,

I don't know if I mentioned this before, but another feature to consider would be a manual NPC selection feature to buy from Gypsies in Ilsh.  They pop around, so you have to walk to them, but it would be cool if there was a mode that didn't do anything until you found the NPC you want to buy from, and then allowed you to run your buy by hitting a button and targetting the NPC. 

Just a thought.

-P

I think I could do that. Let me see if I can get that added before I upload the new version

65
Inactive Submissions / Re: Auto Item Buyer 3.0!
« on: December 01, 2009, 11:48:15 PM »
might take me a day or two to backwards engineer the script, before I start writing anything... I like to get an understanding where everything is coming from before I start messing with vars, ect.  

I've about got an updated version ready.

Added: List box so you can add all the items individually.
Added: Total amount to buy per item.
Added: Stats box to monitor gold spend and how much of each items has been bought.

I'll upload it tomorrow after I get it all cleaned up.

66
Inactive Submissions / Re: Auto Item Buyer 3.0!
« on: November 30, 2009, 04:32:04 PM »
awesome.. I was gonna start tinkering around with 3.0 and see what I can come up with...

ok, let me know if ya what ya come up with

67
Inactive Submissions / Re: Auto Item Buyer 3.0!
« on: November 30, 2009, 03:23:12 PM »
Hey there Gen, I posted on your EUO Link I thought I'd post it over here as well.  I set the script to purchase Bottles at a Max of 40 Per. the script worked great though he would only buy one set of bottles (500) put them on my bug, recall to the Bank and Return to the vendor to purchase another set.  I would have thought that I could fit at least 2 sets (1000) bottles before Recalling to the bank.  Other than that the Script worked better than my Modded 2.0 Version.  On another Note, I thought it would be great if you added a Max Number, and Possible an Add Button for the Misc. Section.

I've been thinking about making it so you can add everything you want to buy to a list(kinda like rule list in TM's Claw), instead of pre-set options. I could add a max count, but my brains not working atm.. ha! So I'll have to do some figuring on that. Would be easy if your only buying one item, but if you buying alot of different things it could get technical. and I'll see if I can figure out something for the bottles thingy..

68
General UO Chat / Re: Current GMs
« on: November 29, 2009, 10:52:11 PM »
You could always just write a script to page for help and then record who comes.

 :P

LOL!

69
Script development tools / Re: TrailMyx's Master Rail Engine/Developer
« on: November 27, 2009, 09:11:45 PM »
When I run a rail using Server mode the rail is perfectly smooth, but when I don't use the server and just load a rail in memory and run it in Subroutine mode the rail is choppy. The char will pause for a split sec after each waypoint.

During server mode, the rail engine will crank up the LPC a bit in order to keep the rail smooth.  If you are running in subroutine mode, you need to do this yourself.  So before you call the run rail function, put the #LPC up to something over 100.  That should smooth things out and make your subroutine calls as smooth as the server calls.

I'm glad to see others starting to use this rail engine.  It's really a very powerful tool.  There's just nothing else out there like it (or even close to it).  :)

Cool Thanks! I'll give that at try.

70
Script development tools / Re: TrailMyx's Master Rail Engine/Developer
« on: November 27, 2009, 11:53:39 AM »
and something else I did.. I love playing around with this thing btw!  ;)

I'm using vista so I can't put all my rail files into a Rails folder. So I got all these rail files in my easyuo folder with all my script.
I hate cluter! So I modified the Rail Engine so I could have more than one rail in a Rails.txt file and use something like this..

call %railsubs TM_LoadRail c:\rails.txt railname

Code: [Select]
if %3 <> N/A                ;======================
  {
     set !filename %3       <----    Added this..
     set %filename %3
  }                             ;=======================
  else
  {
      set !filename %2
      set %filename %2
  }
  set !temp_LPC #LPC
  
  set !idx 0
  while !filename . !idx <> N/A
  {
    set !filename . !idx N/A
    set !idx !idx + 1
  }

  set #LPC 10000
  set %fileout0 N/A
  if %3 <> N/A           ;===============================
     call %2 %3            <---    and this...
  else                       ;===============================
     call !filename
  if %fileout0 = N/A

Now Instead of loading a bunch of different rails from different files I use one file

Cotton_Rails.txt
Code: [Select]
gosub %1
exit

sub Bank2Cotton
 set %fileout0 Bank2Cotton3710446611710?0NONE-1011446211680?0NONE-1012445811650?0NONE-1013445811600?0NONE-1014445811540?0NONE-1015445811480?0NONE-1016445811430?0NONE-1017445811370?0NONE-1018445811320?0NONE-101044581124000None0019445611240Teleporter_Gate40NONE-10110445111260?0NONE-10111445111300?0NONE-10112444611310?0NONE-10113444211310?0NONE-10114443711340?0NONE-10115443411390?0NONE-10116443911400?0NONE-10117444311400?0NONE-10118444311375?40NONE-10119449014780?0NONE-10120449414840?0NONE-10121450014860?0NONE-10122450514860?0NONE-10123451114860?0NONE-10124451714860?0NONE-10125452214860?0NONE-10126452814860?0NONE-10127453314860?0NONE-10128453814861?0NONE-10129454314900?0NONE-10130454814860?0NONE-10131455314850?0NONE-10132455814860?0NONE-10133456414860?0NONE-10134457014860?0NONE-10135457014820Cotton_Gate40NONE-10136457014770?0NONE-10
 set %callbackfunctions c:\easyuo\callbacks.txt
return

sub Cotton2Bank
 set %fileout0 Cotton2Bank3610457014770?0NONE-1011457014800?40NONE-1012457014850?0NONE-1013456514860?0NONE-1014456014860?0NONE-1015455414860?0NONE-1016455014860?0NONE-1017454614900?0NONE-1018454114930?0NONE-1019453614930?0NONE-10110452914930?0NONE-10111452414930?0NONE-10112451914930?0NONE-10113451414930?0NONE-10114450914880?0NONE-10115450514840?0NONE-10116450014840?0NONE-10117449614840?0NONE-10118449614803?0NONE-10119449614798?0NONE-101204496147511?40NONE-10123443911280?0NONE-10124444211320?0NONE-10125444711320?0NONE-10126445111300?0NONE-10127445411240?40NONE-10128445811240?0NONE-10129446111290?0NONE-10130446111340?0NONE-10131446111390?0NONE-10132446111430?0NONE-10133445611480?0NONE-10134445611530?0NONE-10135445611590?0NONE-10136445611640?0NONE-10137446111700?0NONE-10138446611720?0NONE-10
 set %callbackfunctions c:\easyuo\callbacks.txt
return

Now when I got to load my rails I just use this..

Code: [Select]
set %railsubs TM_RailEngine_Server.txt  ;Had to do some renaming.. Ha!
set %railfile Cotton_Rails.txt
set %rail1 Bank2Cotton
set %rail2 Cotton2Bank
set %rails 2
gosub SetupRailServer

;============================
code..
;============================

sub SetupRailServer
call %railsubs TM_GetServerMode ; SERVER, SUBROUTINE, or *blank*
if #RESULT = SERVER
{
   call %railsubs TM_PingServer
   if #RESULT = PONG ; server is alive, must reset it and were good to go.
   {
      call %railsubs TM_ServerInitialize ; still need to break a move if in progress....
   }
   else
   {
       display ok Namespace is initialized, but server is not running. Please restart server.
       call %railsubs TM_Close
       stop
   }
   goto skipsetupcheck
}
if #RESULT = SUBROUTINE
{
   display ok You were running in Subroutine mode, please start a server.
   call %railsubs TM_Close
   stop
}
display ok No server was found, please start a server session.
call %railsubs TM_Close
stop

skipsetupcheck:
for %i 1 %rails
{
    call %railsubs TM_LoadRail %railfile %rail . %i
    if #RESULT = #TRUE
    {
       display ok Error loading , #SPC , %rail . %i
       stop
    }
    wait 2s
}
return

I still have to copy and paste my rails into the Rails.txt file, but after that I can delete them and just have one Rails file per scipt.

EDIT:

I'm sure most people figure this out, but you can put your rails at the bottom of your script, and add this to the top. That way you don't even have to use a separate rail file. Just call the script it's self.. 

Code: [Select]
if %1 <> N/A
{
   gosub %1
   exit
}

;=========================
script...
;=========================

;=========================
; Rails
;=========================
sub Bank2Cotton
 set %fileout0 Bank2Cotton3710446611710?0NONE-1011446211680?0NONE-1012445811650?0NONE-1013445811600?0NONE-1014445811540?0NONE-1015445811480?0NONE-1016445811430?0NONE-1017445811370?0NONE-1018445811320?0NONE-101044581124000None0019445611240Teleporter_Gate40NONE-10110445111260?0NONE-10111445111300?0NONE-10112444611310?0NONE-10113444211310?0NONE-10114443711340?0NONE-10115443411390?0NONE-10116443911400?0NONE-10117444311400?0NONE-10118444311375?40NONE-10119449014780?0NONE-10120449414840?0NONE-10121450014860?0NONE-10122450514860?0NONE-10123451114860?0NONE-10124451714860?0NONE-10125452214860?0NONE-10126452814860?0NONE-10127453314860?0NONE-10128453814861?0NONE-10129454314900?0NONE-10130454814860?0NONE-10131455314850?0NONE-10132455814860?0NONE-10133456414860?0NONE-10134457014860?0NONE-10135457014820Cotton_Gate40NONE-10136457014770?0NONE-10
 set %callbackfunctions c:\easyuo\callbacks.txt
return

sub Cotton2Bank
 set %fileout0 Cotton2Bank3610457014770?0NONE-1011457014800?40NONE-1012457014850?0NONE-1013456514860?0NONE-1014456014860?0NONE-1015455414860?0NONE-1016455014860?0NONE-1017454614900?0NONE-1018454114930?0NONE-1019453614930?0NONE-10110452914930?0NONE-10111452414930?0NONE-10112451914930?0NONE-10113451414930?0NONE-10114450914880?0NONE-10115450514840?0NONE-10116450014840?0NONE-10117449614840?0NONE-10118449614803?0NONE-10119449614798?0NONE-101204496147511?40NONE-10123443911280?0NONE-10124444211320?0NONE-10125444711320?0NONE-10126445111300?0NONE-10127445411240?40NONE-10128445811240?0NONE-10129446111290?0NONE-10130446111340?0NONE-10131446111390?0NONE-10132446111430?0NONE-10133445611480?0NONE-10134445611530?0NONE-10135445611590?0NONE-10136445611640?0NONE-10137446111700?0NONE-10138446611720?0NONE-10
 set %callbackfunctions c:\easyuo\callbacks.txt
return

71
Script development tools / Re: TrailMyx's Master Rail Engine/Developer
« on: November 27, 2009, 11:32:47 AM »
When I run a rail using Server mode the rail is perfectly smooth, but when I don't use the server and just load a rail in memory and run it in Subroutine mode the rail is choppy. The char will pause for a split sec after each waypoint.

72
Inactive Submissions / Re: Cupids SA looter
« on: November 23, 2009, 07:33:24 AM »
wow..

73
Scripting Chat / Re: pho send?
« on: November 18, 2009, 04:36:39 PM »
Honestly, I'd advise against using EasyUO's http commands. EUO has a nasty habit of timing out while using that command and locking up the script.

What I use is a script to store data as a persistent var and a small app that I wrote to scan the registry for changes and update a mysql database accordingly.

 

I agree completely.  You'll find it's faster too.  Super easy application written in VB or C# works wonders for that.

Could you give some pointers on this? I've just started trying to learn c#, and hadn't got that far yet. haha!

74
Script development tools / Re: TrailMyx's Master Rail Engine/Developer
« on: November 12, 2009, 12:10:50 AM »
Just pause the script.. ;)

I got it to stop and start recording the rail from the last waypoint by changing one line!!
You can even load a saved rail, walk to the end or anywhere, hit record and start recording more!

changed this..

Code: [Select]
mainloop1:
  if #MENUBUTTON = EUOButton1   ; start recording
  {
    set #MENUBUTTON N/A
    set %main_index 0

to this..

Code: [Select]
mainloop1:
  if #MENUBUTTON = EUOButton1   ; start recording
  {
    set #MENUBUTTON N/A
    set %main_index %main_index - 1
Made a world of difference for me! and that snipplet worked! Thanks for the help.  ;)


75
Script development tools / Re: TrailMyx's Master Rail Engine/Developer
« on: November 11, 2009, 10:11:31 PM »
Don't forget this little snippet to restart a rail that you stopped:

Code: [Select]
    call %railsubs TM_GotoClosestGlobalWaypoint
    repeat
      call %railsubs TM_GetStatus
    until #RESULT = IDLE
    wait 5
    call %railsubs TM_DetermineCurrentRailIndex
    call %railsubs TM_GetRailNameForIndex #RESULT
    set %temprail #RESULT
    call %railsubs TM_DetermineCurrentWaypointIndex
    set %temp #RESULT + 1
    call %railsubs TM_RunRail %temprail %temp END FW  ; finish running this rail from the present position to the end

You have to wait until the action is done before you restart and continue.

Still need to track down some sample code that doesn't give away too many secrets of the strange game-breaking things I have implemented.  ;)

Give it away! ha! I've yet to find anything game-breaking, unless you mean overpowered.. and I've got a few scripts that I would put in that section..

I'll give that snipplet a try. thanks  ;)

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