Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 06-27-2006, 01:16 PM   #1 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default My First Semi-Useful Script...

It's Not Much Now. But I Am WOrking On A MUCH Larger Version That Will Include An ItemID Picker And SOme Other Nifty Toys, But I Gotta Wrap My Brain Around A Few Things.... Right Now I Am Releasing This As Sort of A Prequal Of THings To Come, And Also To Get Feedback And Suggestions On Things People Would Like Wrapped Into One Thing.. It's Really Simple, But Here It Is...

I call it a deco helper.. its basically a gump that can raise and lower objects, get certain properties and change certain properties.. (first time doin' this bare with please, I just learned gumps yesterday) It is meant for 2.0 but easily can be made to work for 1.0 as well. here is a screen shot, and of course the script... biggest problem is it doesnt stay open after using the buttons.... i will fix that in the next revision... but the command is short so i fgured that would compensate... plug and play (obviously) and then just type [dh to activate the gump.

btw... any links or tips for complex gump editing would be useful.. again thanx to Beyond and A_LiN for their patience with my EXTREME newbieism.

New revision posted further down in thread... POSTED NEW REVISION WITH ITEM PICKER FURTHER DOWN IN THREAD
Attached Images
File Type: jpg DecoHelper1.JPG (61.4 KB, 458 views)
Attached Files
File Type: cs DecoHelper.cs (4.9 KB, 79 views)
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)

Last edited by AnomolyVincentStarbuck; 06-29-2006 at 09:27 AM.
AnomolyVincentStarbuck is offline  
Old 06-27-2006, 01:49 PM   #2 (permalink)
Newbie
 
Join Date: Apr 2006
Location: Barcelona, Spain
Age: 22
Posts: 50
Default

Hey, it looks great. Thanks!
__________________
A.K.A. Ansalon

Our project to a roleplaying spanish shard

http://www.UltimoReducto.com
Alain Delocke is offline  
Old 06-27-2006, 02:00 PM   #3 (permalink)
Forum Expert
 
Join Date: Sep 2004
Age: 31
Posts: 677
Default

It looks like a great tool, even for GMs. Can't wait to see what you come up with to supplement it.

Some things you might want to include would be a hue picker (using the hue picker gump?) and a flip selection. Just a thought, but right now it looks functional and quite well thought out.
Vhaerun is offline  
Old 06-27-2006, 02:12 PM   #4 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

You shouldnt be so negative on your script... just tell in the topic what it is and you'll be fine... the script looks promising and is far away what anyone would call semi-useful. Not mentioning how easy to edit it is.
Kamuflaro is offline  
Old 06-27-2006, 02:36 PM   #5 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default

sorry.. first time posting... not really sure how good at this i should be (scripting stuff i mean) i appreciate all the positive feedback, and suggestions i didnt realy mean to be too negative.. its just that compared to most of the things i see flosting around, it might as well be an artifact.. :P but again thanx for the marks guys.. the hue picker thing.. i like that idea. right now i am working on a script that allows you to scroll through the items (like inside uo only ingame) but much more user friendly, but the way i have it now, i didnt post it because like this one, the calls are all separate, no nifty bits to shorten the script, for as big as its getting.. well... you could probably get away with pandoras box... except i have elven stuff. i wish arya were still around

... oh and the i dont want to step too far into custom command because i dont wanna step on Alpha Command ToolBar... i love that script and i think the author does great work, just wish i had a decorating tool for outside (and easy access to item values at least.)
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)

Last edited by AnomolyVincentStarbuck; 06-27-2006 at 02:39 PM.
AnomolyVincentStarbuck is offline  
Old 06-27-2006, 05:07 PM   #6 (permalink)
Forum Expert
 
Join Date: Jul 2005
Age: 31
Posts: 410
Default yes this script could be useful to many people

including myself i like this script from what i seen ill try it out right away and thanks for the submission keep up the good work
__________________
LoveTheGame...ClickHere.
Owner Of SecretsOfClones
Feel free to check it out so far...
wulf monat is offline  
Old 06-27-2006, 06:24 PM   #7 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

You could shorten the script by adding a private static string[] m_CommandStrings = new string[]{"0", "1", "2", "3", "[m inc y -1", "[m inc x 1", all the others strings in numeric correct order};

And then call the commands that way: Mobile from = state.Mobile; if (info.ButtonID > 3 && info.ButtonID < m_CommandStrings.Length)CommandSystem.Handle( from, String.Format( m_CommandStrings[info.ButtonID] ) );
just to give you an idea how to shorten the lines of code used.
Kamuflaro is offline  
Old 06-27-2006, 06:32 PM   #8 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Thumbs up

Nice job for your first script. Many thanks.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline  
Old 06-27-2006, 10:47 PM   #9 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default

@ Kamuflaro *smiles and nods* .... actually i think i get that.. i saw in one of the scripts i was looking at for help... but if i do that, where exactly do i put the string? i mean do i put it in after the OnResponse or in the gump itself, after the buttons themselves and such? i have always been horrible with order....

Code:

		public RandomGump( Mobile owner )
			: base( 0, 0 )
		{
			this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
private static string[] m_CommandStrings = new string[]{"0", "1", "2", "3", "[m inc y -1", "[m inc x 1", all the others strings in numeric correct order};

}


		public override void OnResponse( NetState state, RelayInfo info )
		{
			Mobile from = state.Mobile;
if (info.ButtonID > 3 && info.ButtonID < m_CommandStrings.Length)CommandSystem.Handle( from, String.Format( m_CommandStrings[info.ButtonID] ) );
Like this?
with some blank filling in and well... buttons..(just as an example of placement)
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)
AnomolyVincentStarbuck is offline  
Old 06-27-2006, 11:22 PM   #10 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

you put it inside the class. That means above public RandomGump( Mobile owner )
You could put it in any other class too, for example in the Bag class, but then you would have to make it public not private and call it like Bag.m_CommandStrings.
Kamuflaro is offline  
Old 06-27-2006, 11:28 PM   #11 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default

thank you so very much.. one more wuestionn... treading arent i... can i use it something like this:

private static string[] m_CommandStrings = new string[]{"[add ", "[tile "};

Mobile from = state.Mobile;
if (info.ButtonID > 3 && info.ButtonID < m_CommandStrings.Length)CommandSystem.Handle( from, String.Format( m_CommandStrings[info.ButtonID] ) );

and then add the switch method and the command event and tell it to use command something like:

("{1} itemid xxxx")

???
so it would call the same itemid in the cases but use a different command based on say a radio button? (or visa versa if i wanna put that many miles on my mouse)
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)
AnomolyVincentStarbuck is offline  
Old 06-28-2006, 12:12 AM   #12 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

Quote:
Originally Posted by AnomolyVincentStarbuck
thank you so very much.. one more wuestionn... treading arent i... can i use it something like this:

private static string[] m_CommandStrings = new string[]{"[add ", "[tile "};

Mobile from = state.Mobile;
if (info.ButtonID > 3 && info.ButtonID < m_CommandStrings.Length)CommandSystem.Handle( from, String.Format( m_CommandStrings[info.ButtonID] ) );

and then add the switch method and the command event and tell it to use command something like:

("{1} itemid xxxx")

???
so it would call the same itemid in the cases but use a different command based on say a radio button? (or visa versa if i wanna put that many miles on my mouse)
I'm not 100% sure what you want to do, but you best try. It should be possible to get a string or something else from the gump in adition to the pressed button ID. but you don't do that "{1} item" thing, but string{1}represents + " itemid xxxx" - yes you can combine strings that way.
Kamuflaro is offline  
Old 06-28-2006, 12:42 AM   #13 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default

thanx. i will give it a go a few times and post my finished results probably in the next couple of days.. again, thank you everyone for being my books :P i hope i can contribute stuff half as nifty as half of you have
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)
AnomolyVincentStarbuck is offline  
Old 06-29-2006, 02:14 AM   #14 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Lightbulb New Revisions...

I will post new revisions here.

New revision
1.0b - smaller gump (not much, but i figured i'd post it since most people have told me the gump needed to be smaller.) Screenshot below
Stays open. (also not much)
next revision will have the wall picker in it. should be ready tonight or tommorrow.

1.1 - Now Includes Item picker. Only Walls Right Now, But It Includes ALL Walls ( minus the curved ones )
Note: This Script Is Written For RunUO 2.0 but can easily be converted for 1.0 (If you need help with this,
just ask.) No Need To Download The DecoHelperRevB.cs File, The New Revision Includes An Updated Version of This File. Only Left That File For People Who Didn't Want/Need The Wall picker. (but it's mighty useful )
Attached Images
File Type: jpg DecoHelper[1.1]DecoToolNWallIndex.JPG (132.7 KB, 58 views)
File Type: jpg DecoHelper[1.1]WallIndex.JPG (85.8 KB, 62 views)
Attached Files
File Type: cs DecoHelperRevB.cs (5.4 KB, 29 views)
File Type: zip DecoHelper [1.1].zip (44.8 KB, 42 views)
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)

Last edited by AnomolyVincentStarbuck; 06-29-2006 at 10:40 AM. Reason: New Revision
AnomolyVincentStarbuck is offline  
Old 06-29-2006, 12:44 PM   #15 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Interesting concept. If you have AIM or gTalk, I'd like to talk to ya bout it a bit more and maybe get ya a little more streamlined.
A_Li_N is offline  
Old 06-29-2006, 01:16 PM   #16 (permalink)
Forum Newbie
 
Join Date: Apr 2006
Location: Ohio... (You Can Tell Can't You?)
Age: 25
Posts: 96
Send a message via MSN to AnomolyVincentStarbuck
Default

if you are still on... kuroineku@aol.com msn messenger always on... would love to get streamlined, you wouldn't believe how long that took!!!! plus i realized, way to late mind you, that if i would have set the button id's to the item values and then told the thing that a string = buttonid then only did the command once, it would been ALOT easier.... same with item in gump.... but anyways, yes, please do message me, this is third or fourth day learning gumps, need more!
__________________
"I Made You A Pony And It Only Took Four Million Lines Of BASIC!!!"

"There's only one real big difference between programmers and God..... God doesn't think He's a programmer."

My Shard: Baslyn (2.0)
AnomolyVincentStarbuck is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5