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

Pages: 1 [2]
16
Scripting Chat / serching for gumps
« on: May 01, 2009, 11:31:53 AM »
Can you search for a container moreover a gump

Can I search or find stuff like bufficons_gump or spellicongump?

Thanks

17
Script Snippets / PG_Travel Work In Progress
« on: April 30, 2009, 06:57:46 PM »
*** 7/2/2009 version 1.07
new sub that returns the version

Updated.  The gate travel now works.  It evaluates the journal to react, Thanks TM.

It's setup now to do a cheesy demo.


While I am still putting in error trapping and more validation this kinda works.  I want to laugh at the caller when they say try to gate but have magery of 0.  
I do check for rune and runebook
  I check in pack first but then will check ground for 2tiles (I lock down runes on my porch)

I'm using the NameSpace snippet from earlier

This is supposed to be an all-in-one traveller
Move by Walk, Recall, Scroll, Gate or Sacred Journey
Use a Rune by itself, Rune in a book, the default rune for a book (one and three are for the faster needs)
If gating you can chose to use or not use it
And even more geekly you can dispel it once you use it.

My snippet includes a small test
There are two variables at the top. One for a rune one for a runebook.

Try it out.  Kick the tire take it around the block.  Let me know how dumb or semi-clever it is.

Thanks

18
Feedback / Feature request for SUO - Ctrl-F
« on: April 30, 2009, 08:41:15 AM »
Can we(moreover, you) set Ctrl-F to the Find/Replace menu?

19
Script Snippets / PG_Namespace Initialization
« on: April 30, 2009, 06:50:17 AM »
I'm trying to write a number of routines that will leverage managed namespaces

There are two files here;  one is just the sub the other is the sub with a test.

This is very boring, but my next "library" is the travel routines

Not sure this belongs here just but some future snippets will need it

20
Off Topic / Does anyone here have DirecTv?
« on: April 30, 2009, 05:30:09 AM »
Not a sales pitch!

DirecTv has a new tool in beta that used to be called widgets but now is called TVApps.  They are just a frame work to put a 400x300 image on your screen, but a clever fellow can do fairly cool things with this.  It does not yet allow for interactivity, but it has an auto-refresh rate.  One cool thing to do is to gather some information and then create your own dynamic image that's 400X300 and send it.

I said that to say this.  I have a few published widgets and I understand their plumbing fairly well so I can hijack my own widget to display stuff only I want to see.  I built a widget to report on my miner.  Last night while my miner was out and about he woudl update that silly database thing that I started playing with.  Then every 15 seconds my directv widget updates and shows me what he's up to.

I do a little image manipulation so that teh vast majority of teh 400x300 image is transaparent then I write a one liner about the status that is transalucent.  So I can still watch TV upstairs while the miner runs downstairs.

If you're a geek, this is kinda cool.

If you're in a guild you can have your guildies run a macro when they log in and then you can push that info to your DirecTv tuner.  If you wish then you can go to the computer and play.

21
Scripting Chat / namespace question
« on: April 29, 2009, 09:35:59 AM »
I think I understand the use of namespaces.

I am at work with no UO Client so I can't execute my theories, but can I get some validation on this?

I have a problem with my developers when they don't use the correct scope and i don't want to bloat the global namsespace so I try to write without using %VarName.  That said, here is my scenario...

I am in a sub
sub CoolTestNameOfSubToUseForPurposeOfExample
namespace push
namsespace local SomeRandomOrStaticString

  set !ReturnVariableName MyArray
  set ! . !ReturnVariableName . 1 Value1 ; <-- i'd use an index
  set ! . !ReturnVariableName . 2 Value2 ; <-- i'd use an index

Now I want to return this to a specific namespace (to me, more along the lines of returning from a function)

  set !NSType local
  set !NSName TargetNamespace
  namespace copy !ReturnVariableName , * To !NSType !NSName

Will this return the array of !MyArray1 and !MyArray2 to a namespace called local TargetNamespace?

**love the editor

Thanks,
Paul

22
Scripting Chat / Keeping track of persistent data...
« on: April 28, 2009, 06:24:11 AM »
Feel free to move this if I posted in the wrong forum...

Now I recall the day when there was that goofy *variablename and that went to the registry I believe, which I hate that.  Philosophically, stay out of my registry.  Practically it's no fun to try and extract data from when using external apps.

So then folks started writing to files and who does love the DOS flash and the sweet speed of that process.  I didn't like this either.

I then recall someone starting to exec stuff like exe or vbs files, but then you had to either code the receiver app to accept a bajillion commands or you had to concatenate the send then unbundle the concatenation at the receiver.

I always hated most of those, because it was not easy to keep track of changes and the like.

I'm a Application Architect and Database Programmer.  So I like stuff stored in relational databases.  What I did was leverage the send HTTPPost and a localhost website that interacts with a database.  I like this because I can quickly create data repositories and I have front-ends to look at the database and change settings or analyze data, etc.

As an example.  I am mostly stealing CyperPopes radar and Papua Rune Wall Mining.  No code is reused but I did use their code as my study guide.  My mining routine will find all the rune books in your pack with a keyword in them.  It will then start the day by mining all the spots in those books.  Similar to Papua.  I mine all spots the first time around.  I modified it to pick one tile in each resource grid within my reach.  Once I hit ore i log the x,y,z,tile,facet as a mineable location.  So on future visits we only mine the mineable spots.  I log all ore that is extracted (by color) as well as granite and gems.  After the first loop of the day (visiting each book and rune within) it sends me all the ores that were found and then I tell it which spots to mine that day.  I have only run this two days so far, but imagine I could analyze the data to possible determine if there is a pattern to how they spawn the ore.  But how I use the data is not the topic.

Btw, this works really well for storing different settings for different characters.

Since I like this method of persistent data and assume not everyone is sitting at home with a SQL server and IIS or the ability to code IIS.  How do I really post useful scripts? 

And besides it being less portable, what other gotcha do you think I'm in for?

23
Resource Extraction / When do resources get randomized...
« on: April 28, 2009, 05:52:25 AM »
I asked at EUO and it said every time you visit it's random, but then does the server keep track of my visit versus larry's visit versus TrailMyx's visit.  My guess is that it's a server uptime randomizer but then stays that way all day.  Can anyone confirm this?

Thanks

24
New member introductions / Howdy, Hello, Hi Y'all
« on: April 27, 2009, 08:13:13 AM »
Where are the Heartwood scripts?

btw, what is heartwood?

please note tongue firmly planted in my cheek.

I too left UO for many a year and recently found more time to play.
I'm currently modifying my mining to work a little better with what I presume to be a server uptime randomizer.  <-- If anyone wants to confirm this please do so.

Hopefully I can spend time here as well as in my EUO editor.

Editted:

I play on OSI Atlantic mostly.  I float in and out of guilds as they often ebb and flow.  I have a few PvP chars a few social chars and a boatload of mules.

Pages: 1 [2]