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

Pages: 1 2 [3]
31
Scripting Chat / Dealing with NCP vendors...
« on: January 15, 2009, 04:36:51 PM »
I'm working on my shopper vendor and I'm having problems scrolling through the shop list to find the items I want to buy.  Randomly usually every other click on the down arrow than highlighting an item and using the getshopinfo or whatever command sometimes adds the item to my buy list.  Then I have to make it click the minus to get rid of it.

Anyone have any stable sample code I can compare mine to?  this is what I got atm.

Code: [Select]
set #RESULT
repeat
   {
   gosub TM_HandleContextMenu %currentnpc %CONTEXT_Buy #TRUE
   gosub contwait bill_gump 283_248 30
   }
until #RESULT = CONTINUE
getshopinfo
set %vendorstatus EMPTY
for %a 1 #SHOPCNT
   {
   gosub clickmod -42 -137
   click %x %y f ;click top item in list
   wait 2
   getshopinfo
   if #shopitemtype = DPF
      {
      click %x %y d
      wait 10
      set %amount 1600 - %beetleweight
      if #shopitemmax > %amount
         {
         setShopItem #shopItemID %amount
         set %vendorstatus STOCKED
         }
      else
         {
         setShopItem #shopItemID #shopItemMax
         set %vendorstatus EMPTY
         }
      wait 10
      gosub clickmod 47 208
      click %x %y f ;click the accept button
      wait 2s
      break
      }
   gosub clickmod 73 -17
   click %x %y f ;click down arrow
   wait 2
   gosub clickmod 228 86
   click %x %y f ;click minus arrow
   wait 2
   }
return %vendorstatus

32
Scripting Chat / Going to write a new script. Need some ideas.
« on: December 05, 2008, 05:48:09 PM »
It's going to be a script that buys things from npcs.  Most likely resources (Reagents, Boards, Ingots, Arrows, Bolts, Boards, etc).  Just wanted to look for more input to make it as good as possible.  I want it to be able to buy anything from an npc while afk. 

So far these are the following options and a very basic idea on how itll go:

Have a list of items/resources to buy that is customizable (Add/Remove/Save) (Set max buy price)
Have a list of vendors to buy from that is customizable (Add/Remove/Save)
Drop off at bank or house
Recall via chiv or magery
Auto stop on gold spent, time, etc.
Requires giant beetle (Better carrying 1600 stones a trip than a lousy 300 or so)
Support multiple runebooks



1. check for gold and withdraw at least 2000
2. recall to next rune location
3. find vendor from list
4. open vendor
5. scroll through list & add items to cart on your shopping list
6. do a weight calculation on your beetle and the item weight database to determine how much your beetle can still hold
7. buy as much as possible in one deal
8. check beetle weight.  if it's 1600stones or the bank weight specified then bank and return to vendor.  if the vendors were empty recall to next location rather then comming back.
9. repeat over and over until X amount of gold is spent or time passed

33
Script Debug / OMGBurgers' Dexy Controller (For Wammys/Sampires)
« on: September 03, 2008, 08:46:42 PM »
Code: [Select]
;=======================================================================
;        UU      UU   OOOOOOO
;        UU      UU  OOOOOOOOO
;        UU      UU  OO     OO
;    ### #### ###  ##### ### #####
;    #   #    #  #   #   # #   #
;    ### #    ###    #   ###   #
;      # #    # #    #   #     #
;    ### #### #  # ##### #     #
;        UU      UU  OO     OO
;         UU    UU   OOOOOOOOO
;          UUUUUU     OOOOOOO
; Script downloaded from scriptuo.com
;=======================================================================
; Script Name: OMGBurgers' Dexy Controller
; Author: OMG_Burgers
; Version: 1.0
; Shard OSI / FS: OSI / FS(???)
; Revision Date: 9/04/08
; Purpose: To make playing your dexy a bit easier, and require less
;             attention
;
; Features: 10 stage customizable routine
;           Current routine list:  Lightning strike, Primary ability,
;              Secondary ability, Consecrate weapon
;           Auto cure weapon (User specified intervals)
;           Auto divine fury (User specified stamina point)
;           Auto enemy of one check (After each new attach when using
;              the auto hunting feature, or by a user specified interval
;           Auto honor of enemy (If using the auto hunting feature)
;           Customizable spell delays
;           Savable options
;=======================================================================

Read!!
Not everything currently works, and there are some obvious wierd things happening lol.

What currently works:
Saving of options
Routine toggling/setting
Enemy of one check
Auto hunting
Auto honor (When auto hunting)
All spell delays (Set them to work with your faster casting on your character)
Special move toggle delay (This is the pause after toggling a special/lightning strike before it scans to see if it's still armed (red).  Make this larger if it isn't waiting for your special to actually be performed before moving to the next step in your routine)


For now I would limit the use to just the auto hunting.  Where you basically are farming one monster in a set location.  Each time the monster spawns it will honor it (If checked).  After honoring and attacking it it will do a check to make sure it is the current target of your enemy of one spell (If checked).  If will start from the beginning of your routine and continue until the end or until it reaches the first inactive routine step, then it will start over.

When using it in passive mode it will "timeout" in steps in it's routine if you're not fightning things, and move onto the next part of the routine.  I'm still debating on how to change passive mode.  To either retry the routine it timed out on, or to just stop running the routine if there is no #ENEMYID (I would think that would be best...).

Before pressing start
Make sure you have your spell icons out for the spells of lightning strike, primary ability, secondary ability, momentum strike.  Put them in a part of your screen that will not be blocked (I use the very left edge so I can just browse the net while i hunt "afk").  From there press the "reset" buttons for each "spell/special".  A targetcursor will appear on your uo screen.  Move the cursor over the correct spell icon and press escape to set the pixel scan location.  (Make sure the special/spell is not armed(red) before doing so).

Be sure that no specials/spells are current toggled(red) before starting your routine.

When changing weapons the spell icons may need to be reset (Simply Stopping/Starting the scripts routine will reset them)

34
Scripting Chat / My newest "creation" lol...
« on: September 02, 2008, 08:00:15 PM »
Well since I started hunting peerless solo I've noticed they are quite repeatative once setup.  The same goes for farming karma/honor.

Well I had about 4 seperate scripts I used to control everything and I got SICK of opening them all up just to do it lol.  So what I did was made this fancy little "controller" script!

It's pretty self explainatory what it does for the most part.  The top section is your "routine".  Which you toggle by pressing the number buttons next to each status label.  Depending on the mode you enter (Auto/Passive) the routine will be done a slightly different way.

When in auto mode (Mostly farming one creature over and over) it will restart the routine from the start after each kill of the monster.
When in passive mode (Fightning bigger bosses such as doom bosses, peerless bosses, etc.) it will just start from the beginning of the routine, and work it's way until the end.  Once it hits the end it will reset the status indicators, and restart at the beginning.  Fightning different types of creatures, different bosses, etc. have no effect on this.

The settings are not really saved at the moment with the exception of the pixel locations for your special moves, lightning strike, and momentum strike.

When using auto momentum strike, if the script detects two creatures that are in the universal monster list, it will stop the flow of the routine, and momentum strike until you are back to one creature.  I find that helpful for reverants and other creatures the darkfather may summon.  Since you hit twice, and the second hit from momentum strike is usually harder, you leech much better and stay alive much, much easier.

No real crazy customization as I've been "trying" lately, but I'm going to see what a few people think about it.  I just finished the routine handling part and all, auto honor, and auto hunting part.  I still have to finish all those other goodies.

If anyone has any ideas or if you're interested let me know!  I'll try to get a rough copy of it up for testing shortly.

(Sorry I mad to MSPaint the title bar cause I had my uo "alias" in it instead of my scripting one by accident haha)

35
General UO Chat / Peerless! Peerless! Peerless! Peerless!
« on: August 30, 2008, 11:02:37 AM »
lol.

Okay I've been really trying to hammer out peerless in my spare time to rebuild a decent account.  I've found info for doing shimmering & dreadhorn solo so far, but none on the rest really.

I'd love to give shimmering a shot but god keys are a bitch to get.  Especially without stacked SDI like I used to, no peacer etc.

Was wondering if anyone had any resources on completeing Travesty solo for now.  I know it can be done as I used to know someone who did like 8 a day, he used a sampire but I would much rather use a wammy (spiritspeak/~50 necro).  Not much difference in damage.  I went to try it and I totally got owned pretty bad lol.  I'm not sure why either ;(

I'm bored of doing Dreadhorns as I've done about 20 yesterday haha.  I did get 3 totem of the voids, so I guess it was not a total waste.

36
Ok we have a cable connection here w/ wireless router.  Everything is wireless except our playstation.  We connect through the router & i have configured two PC's to use the same workgroup name, allow file sharing so I can access files between the two.  With zonealarm off everything works fine.  With zonealarm on I cant access the other computer, nor access the one running zonealarm.  It's a pain to shut off zonealarm every time I want to access my script library ;(

Anyone know what program/proccess I need to set the proper access to?  Or is it another setting I need to adjust?

Thanks!

37
.NET Programming / Looking for quick help haha.
« on: August 13, 2008, 09:28:50 PM »
I'm following this C# tutorial for doing some user roles setting in my database and it gives me the following code:
(Line 13 is the trouble line)
Code: [Select]
1     private void CheckRolesForSelectedUser()
2     {
3          // Determine what roles the selected user belongs to
4          string selectedUserName = UserList.SelectedValue;
5          string[] selectedUsersRoles = Roles.GetRolesForUser(selectedUserName);
6     
7          // Loop through the Repeater's Items and check or uncheck the checkbox as needed
8          foreach (RepeaterItem ri in UsersRoleList.Items)
9          {
10               // Programmatically reference the CheckBox
11               CheckBox RoleCheckBox = ri.FindControl("RoleCheckBox") as CheckBox;
12               // See if RoleCheckBox.Text is in selectedUsersRoles
13               if (selectedUsersRoles.Contains<string>(RoleCheckBox.Text))
14                    RoleCheckBox.Checked = true;
15               else
16                    RoleCheckBox.Checked = false;
17          }
18     }

Well I punch it in and run it and I get a error "'System.Array' does not contain a definition for 'Contains'" (Line 13)

Well the tutorial then says:
Quote
Note: The selectedUserRoles.Contains<string>(...) syntax will not compile if you are using ASP.NET version 2.0. The Contains<string> method is part of the LINQ library, which is new to ASP.NET 3.5. If you are still using ASP.NET version 2.0, use the Array.IndexOf<string> method instead.

So I click the link to that array.indexof thing and I just can't figure it out haha.

I've changed that line 13 to something like:
Code: [Select]
if (Array.IndexOf<string>(selectedUsersRoles, RoleCheckBox.Text))

But I know it's still not right.  I haven't really covered much of the C# itself yet, I just realized that I didn't complete a few pages of this tutorial in asp.net & want to do it haha.

38
Scripting Chat / Movement with cancelation.
« on: August 13, 2008, 07:49:35 AM »
Just looking for some random ideas on the best way to do this really while I'm testing out ideas as they come to me haha.

I wanted to create just a 'basic' script for now, that I can really expand upon later depending on what it needs to do.  Right now this is all I want it to do:

Just start a movement to a location, while the movement is being done, execute a sub that does a check, if returning a certian value stop movement.  It keeps doing the check the whole time during the movement until it reaches the destination.

Now the only ways for movement are the move & pathfind commands.  Move will try to move somewhere for a specified time, once that time is done, carry execution of the script.  Pathfinding will start the pathfind and directly after keep executing the script.

I thought pathfinding would be the best way to go, since you can really just start doing your check but canceling the pathfind is 'wierd' for me lol.

I don't really use too many scripts of other peoples, so im sure someone else allready mastered it haha.  I just would like to make my scripts not appear so much as a 'scripter' to others who may see someone running a script (Ie:  moving to points, then running to a creature you passed up on the way to that point).

I've tried a few things but I suck at it basically lol.

39
Well I downloaded the microsoft visual web developer express edition and decided to go with the ASP.NET w/ C#.  Create a SQL database, add a table, add some entries and I feel like I'm getting somewhere.  Then I start reading all these tutorials & crap and I get all confused and frusturated and give up hahaha.

Stupid computers.

I think I'll stick to just uo scripting for now & maybe find some better tutorials or easier ones later on lol.

40
Scripting Chat / So I started this new taming script...
« on: July 24, 2008, 01:28:28 AM »
I wanted to make it badass, well I have one screen completely done & functional!  I think this was more so the harder part IMO lol.

The screenshot at the bottom shows the rail options/creation screen.  Basically when you enter the rail options it loads up all saved rails in that combo box.  You can then choose one to delete it, create a new rail, or restore default rails (If you deleted them).  If you deleted a default rail and hit the restore button it will just cycle through all the default rails, check if they exist, if not then add them back in.

If you choose to create a rail you punch in the rail name first, then you click set waypoint to create the "start" location.  After that as you walk the two distances will change from green/red (Greed-valid, red-invalid).  If it is valid you hit set waypoint again.  If it is close enough to the first waypoint it will ask if you want to make it the final waypoint (Then you have a completed rail that is loopable).  If you choose no it makes it a standard waypoint and you continue creating it (I guess if you want to make a figure 8 lol?).  If you choose to close it it saves, hides the rail creater part, refreshes the list, and you can remove it if you dont want it for some reason, create another, or go back to main menu.

My goal with this script is to basically make it fully customizable for training animal taming.  The user isn't really limited to just want the script already has & can create more rails, more animals (Will have ability to edit the animal database) along with custom routines for killing the animals (meele/archery, magery, necromancy etc.) & custom healing routines (Bandages, magery, spiritspeak, chivalry).

So far it is a pretty fun project, I hope I feel like completing it :X

41
Off Topic / Web development help (I want to learn a little more)
« on: June 18, 2008, 10:48:10 AM »
Hey all,

I was just helping my brother do his website for all his artwork and stuff before he goes back to college.  I'm pretty good with just using something like frontpage/dreamweaver & i'm pretty good with flash, but there is still a lot I could do, but I can't because I don't know which direction to take.

I started programming in basic back in my middle school days, and slowly got into c++ for a bit.  I have yet to do any programming of any sort really in about 4 years.

I'm wondering what would be best to start to learn, or pick up on a little so I can do some 'neat' little things on my web pages when I need.  Last night I got into some javascripting to do some basic things like moving/resizing/hiding layers and doing opacity changes and fade in/outs on components.  I'd like to be able to create some nice popup-menus and all if the occasion arrives, and I would hate to use someone elses generic 'free code' when I could do it myself with a bit of study & practice.  Is javascript the way to go, or is there a better language I could learn that has a bit more power?

I don't know much about web scripting/programming at all really lol, just html & flash, and I'm not 'that that' amazing at flash ;x.

Would be good if anyone has any input :).

I can get ahold of most software pretty cheap if I need any.  My brother has a lot from school that he don't even use, and gets it pretty cheap.

42
New member introductions / *bark*
« on: June 17, 2008, 03:32:09 PM »
*bark*

Hey all,

I figured I would register and all, despite not really playing UO at the moment. :P

Gota say that scriptuo alpha looks pretty hot.  I'll keep an eye on things to see the progress and all as time goes by.

Not sure if scripts are being posted here, but I could always add my 'watcher' script here also even though it still needs a few things finished in it.

Take care all, I'll check back every so often :)

Pages: 1 2 [3]