Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-20-2004, 06:49 PM   #1 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default Character Control, Delete & Move/swap Characters around between accounts In-game!

Allows you to Delete/Move/Swap characters between accounts! Type [charControl then enter the account names in the gump!



Just plop into scripts folder and type [charControl ! Report any bugs & feel free to suggest stuffs! Thank Ryan for the idea for htis and asking me to do it!
Attached Files
File Type: cs CharSwap.cs (12.6 KB, 799 views)
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline   Reply With Quote
Old 07-20-2004, 07:07 PM   #2 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default Holyshit

Now that completely redifines the definition of a good script. I was just thinking about this the other day only i thought about shard transfers but then i remembered i only have one shard hahaha.
evil lord kirby is offline   Reply With Quote
Old 07-20-2004, 08:02 PM   #3 (permalink)
Newbie
 
Join Date: Aug 2003
Location: www.shatteredsosaria.com
Age: 20
Posts: 13
Send a message via AIM to Thrion
Default

Great Script Idea havn't tested it yet but I will tonight
__________________
Fear my novice scripting abilities!! :D

Please don't flame me...
Thrion is offline   Reply With Quote
Old 07-20-2004, 08:03 PM   #4 (permalink)
Newbie
 
Join Date: Jun 2004
Posts: 81
Default

Awesome script, havn't tested it but a great idea!
Heftiger is offline   Reply With Quote
Old 07-20-2004, 08:19 PM   #5 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 19
Posts: 272
Default

Just a suggestion, I'm not sure if your system contains this or not, but woudn't a copy mobile option be a nice addon?? It seems this is the only thing missing.. theres swap, delete, and move, shoudn't copy be a nice addition??

I'm not sure if this is already possible in this system, but just a suggestion.

It may not be an option used too much, but of course it will add more versatility to your script.

By the way, I havn't tested this yet but it looks great!

Keep up the awesome scripts.
krazeykow is offline   Reply With Quote
Old 07-20-2004, 09:14 PM   #6 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

That would be possible.. although you get into the same thing that happened when poeple asked for an exact [dupe command. And that is that there are many properties, including ones that are readonly (and set internally when the mobile is created), which will defeat the idea that its an exact clone (if thats what you are getting at). I wonder how far you can go with that idea Asayre.
XxSP1DERxX is offline   Reply With Quote
Old 07-20-2004, 09:29 PM   #7 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

This rocks! And believe me, I am very picky about the scripts I download and use. Definatly this is on the must have list!
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 07-20-2004, 10:41 PM   #8 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 19
Posts: 272
Default

I have the strange feeling it may be included within the next distro.

It would after all, be a great addition to everyone's use.
krazeykow is offline   Reply With Quote
Old 07-21-2004, 06:59 AM   #9 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

wow....two great scripts in a day or so....good job

but i have a problem with this one...im not getting the green gems to allow me to swap or delete or anything
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-21-2004, 11:44 AM   #10 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Did you enter an account name in the box at the top? When you do it should show all the characters on that account with the gems.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 07-21-2004, 12:52 PM   #11 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

i have an account in each with the characters i was going to test swap.....no gems
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-21-2004, 10:03 PM   #12 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 19
Posts: 272
Default

My guess... it could be a gump ID problem with the button... if the ID of the button is invalid to your client it woudn't show up... just a guess.

-Did you try just clicking in the empty space to which the button would usually be?
krazeykow is offline   Reply With Quote
Old 07-21-2004, 11:01 PM   #13 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default

I won't be including a copy, just cause of the potential problems. Anyways, Pyro, are you able to reproduce it on a fresh server? from step 1?
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline   Reply With Quote
Old 07-22-2004, 12:37 AM   #14 (permalink)
 
Join Date: Oct 2003
Location: Ankara / Turkey
Age: 42
Posts: 125
Default

Another great script from you, thanks for sharing.
WebSiter is offline   Reply With Quote
Old 07-22-2004, 02:36 PM   #15 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

Quote:
Originally Posted by ASayre8
Pyro, are you able to reproduce it on a fresh server? from step 1?
I dunno....i will try it later when i am back on my computer and see what happens

and when i click where the button is supposed to be, it doesn't do anything
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-22-2004, 03:32 PM   #16 (permalink)
 
Join Date: Jun 2004
Age: 23
Posts: 30
Default Nice!

This is an incrediably useful tool, Very Nice work.
RayneXV is offline   Reply With Quote
Old 09-19-2004, 02:41 PM   #17 (permalink)
Forum Novice
 
Join Date: Aug 2004
Age: 19
Posts: 149
Default

Very nice indeed.
Bobert is offline   Reply With Quote
Old 09-19-2004, 03:13 PM   #18 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default Sweet!!!

Cool indeed...a script to be proud of. Seems to be working fine.
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 09-19-2004, 03:16 PM   #19 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default Sweet!!!

Sweet ass sweet!!! This a cool script...one to be proud of.
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 09-19-2004, 03:19 PM   #20 (permalink)
Not a Lurker
 
Suffering's Avatar
 
Join Date: Jun 2004
Location: USA
Age: 34
Posts: 63
Default

Sweet ass sweet!!! Great script... one to be proud of.
__________________
Quote:
"If you want to build a ship, don't herd people together to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea." --Antoine de Saint-Exupery
Suffering is offline   Reply With Quote
Old 11-29-2004, 07:54 PM   #21 (permalink)
Forum Newbie
 
Join Date: Jan 2004
Posts: 55
Default

Thanks man! great script..
Hegge is offline   Reply With Quote
Old 12-16-2004, 02:48 PM   #22 (permalink)
 
Join Date: Apr 2004
Location: Brasil
Age: 42
Posts: 28
Default I think I found something

This is wrong, isnīt it?

Code:
 			public bool SwapEm()
			{
				if( a1 == null || a2 == null )
					return false;

				Mobile mob = (Mobile)a1[a1CharIndex];
				Mobile mob2 = (Mobile)a2[a2CharIndex];

	----------->			a1[a1CharIndex] = mob2;
	----------->			a2[a2CharIndex] = mob;

				if( mob == null || mob2 == null )
					return false;

				mob.Say( "I've been Swapped to another Account!" );
	---->		      mob.Say( "I've been Swapped to another Account!" );

				if( mob.NetState != null )
					mob.NetState.Dispose();

				if( mob2.NetState != null )
					mob2.NetState.Dispose();

				return true;
Buggler is offline   Reply With Quote
Old 12-16-2004, 03:02 PM   #23 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default

Quote:
Originally Posted by Buggler
This is wrong, isnīt it?

Code:
 			public bool SwapEm()
			{
				if( a1 == null || a2 == null )
					return false;

				Mobile mob = (Mobile)a1[a1CharIndex];
				Mobile mob2 = (Mobile)a2[a2CharIndex];

	----------->			a1[a1CharIndex] = mob2;
	----------->			a2[a2CharIndex] = mob;

				if( mob == null || mob2 == null )
					return false;

				mob.Say( "I've been Swapped to another Account!" );
	---->		      mob.Say( "I've been Swapped to another Account!" );

				if( mob.NetState != null )
					mob.NetState.Dispose();

				if( mob2.NetState != null )
					mob2.NetState.Dispose();

				return true;
The only 'error' is just the extra "mob.Say( "I've been Swapped to another Account!" );" which jsut means that the 2nd mobile does't say it was swapped when swapped. AS far as the other lines you pointde out.. they're fine and working as they should.
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline   Reply With Quote
Old 12-17-2004, 10:43 AM   #24 (permalink)
Forum Expert
 
jaynigs's Avatar
 
Join Date: Mar 2003
Location: England
Age: 35
Posts: 986
Default

Cool idea!

A question though please if i may..

I notice on the script is the standard warning for deleting characters regarding housing but what happens when the character you transfer is the character the house belongs to? does the house become condemned?
jaynigs is offline   Reply With Quote
Old 12-17-2004, 04:29 PM   #25 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default

Quote:
Originally Posted by jaynigs
Cool idea!

A question though please if i may..

I notice on the script is the standard warning for deleting characters regarding housing but what happens when the character you transfer is the character the house belongs to? does the house become condemned?
No, the house still belongs with that character and whatever account the character's account is. It'll just end up with an account having > 1 house. You can already do the same by getting the props of the house itself ( [area interface where BaseHouse ) And settign the owner to any character allowing you to bypass the 1 house/acct rule.
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline   Reply With Quote
Reply

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