Scripting Resources & Utilities > General Discussion

Idea for SUO. New script "templates"?

(1/3) > >>

OMGBurgers:
I've been writing a lot of scripts lately and a lot of them I have been using the following subs:

contwait
clickmod
TM's recall
craft subs
pathfind sub

Basically I'm using the same subs over and over again, but each time I have to copy & paste them in.

Was thinking it would be cool if you could have a like user built library where you add in those useful universal subs. Then when you create a new script you could either choose a predefined template that chooses which of those subs to include from your library, or you could be prompted with a list of subs in your universal subs library, and you check which ones you want added and when the script is created they are already added in there.

I know it means extra work I just thought of the idea lol.  Thought it would be possibly cool and something to just throw out there.

TrailMyx:
Sure, we can do that.  I can also add my call header so they can be called or gosub-ed. 

So if people want to post up other ideas and possibly specific code, we can catalog and document it.  I have a wiki started and we can document it there too.

Internally, I have a whole bunch of subs cut out and pasted into a vast library I use, but when I release a script, I like to have the code self supporting.

OMGBurgers:
Yeah I'm the same way lol.

I just wrote a lot of subs that I have found really to be kinda universal to a lot of my scripts.  Then some scripts have part, and the others have part, so I gota open em all up and pull the prewritten subs to use in the new script.  It just seems to be a repeating process for me as of late lol.

It just hit me tonight that It COULD be easier.  Heck I could make it easier on myself by having a txt file with my universal subs and just copy & paste it each time, but I think i'd have a lot unused depending on the type of script.

I think it's just that i've been working again with Solidworks and I created a bunch of new file templates so I don't have to set a buncha settings and stuff each time.  Thought it would be cool for users to create and populate a library of their own for script development, either their own subs, or the vast variety of public bullet proof subs that are prewritten.

I got side tracked with my late projects because of sickness & work.  Now that I'm spending a buncha time at work I wanted to script mining again.  Well I had this crazy idea I wanted to do and decided to find the last version of my miner I started a long time back and modify it lol.  I read through it and decided the container/gump wait sub was too long, so I used my newest one, the recall sub was junk, so I used your recall handling routines, the scanjournal was before I knew about #jindex, so that had to go, the crafting subs I improved on etc.  So I started having to pull all those subs from my other scripts to get em lol.

If anyones interested in what I'm doing I'm revamping my old recall miner I started a long time back on UOC.  I'm just keeping the miner the same overall but reading through it and improving a LOT.  I can only imagine what 12x had to change with it when he took over it haha, I saw so many weird things I did!  So I made basic improvements like #jindex usage, TM's recall subs, got rid of unneeded gotos and did while/repeat loops for the most part.  Things were running good and I got sick of the no metal to mine message after digging a vein dry.  So I went to a cave and learned how the 8x8 resource grids worked and coded it that once it digs a vein dry, it ignores all other tiles in that 8x8 resource square for that cycle (Once it moves to the next rune location, it resets that temp ignore list).  It's REALLY sped it up a LOT and I'm extremely happy.  I don't want to post the script publicly cause I'm not making a fancy menu and all, just wanted it for personal use but I'm going to forward it to 12x if he wants to see what I did on the resource gridpart if he hasent done so yet that way he can throw it in his.

But really the main reason I'm editing it is because I'm going to have it mine all day while I work/sleep.  There will be a hourly timer where it recalls to luna and grabs the cloth/iron bods, then logs out and gets the bods for the remaining 5 characters.  Once it gets the other bods it'll log back on and mine!  It's a crazy weird thing I have going on which is exactly why I'm not posting it haha.  I'm sure ppl would go to try it and be like hey wtf is all these other settings!  But I can't wait to come home to a crap pile of ingots, and a buncha bods to fill and try my luck on :P  Let's see how long till I get banned again though LOL.

PS:  sorry for writing so much.  I get sidetracked a LOT.

TrailMyx:
Ohhhh, I was going to ask you about that miner!  Uber cool script that one was!

Tidus:
i like how it will grab bods..  I would love that!  That way i can gather resources and do my BOD gathering ALL IN ONE!!!!  :)  i hope you release it so i can use it atleast :)

Navigation

[0] Message Index

[#] Next page

Go to full version