|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Me and my staff team got together to work out a way to have totally custom ObjectPropertyLists.
Using an array, and the cliloc value for ~1_NOTHING~, we were able to create a list that you can add ANYTHING to... All you need to do is replace your old ObjectPropertyList override method with this one, and edit it to suit your needs ![]() Code:
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
ArrayList strings = new ArrayList();
if ( EXAMPLE != null )
strings.Add("This text will show");
string toAdd = "";
int amount = strings.Count;
int current = 1;
foreach(string str in strings)
{
toAdd += str;
if ( current != amount )
toAdd += "\n";
++current;
}
if(toAdd != "")
list.Add(1070722, toAdd);
}
You can repeat this part as many times as you like: Code:
if ( EXAMPLE != null )
strings.Add("This text will show");
*Not a tested theory, but this was tested using client 501j, so maybe the cliloc's were updated recently, since there is 2 ~1_NOTHING~ cliloc's now. And, of course, it ONLY work when the OPL is Enabled. Have fun! ![]()
__________________
![]() WWW.RPK-UO.COM - The WoW-UO Cross-Over Shard Last edited by Admin Vorspire; 05-08-2006 at 08:24 PM. |
|
|
|
|
#5 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
First off, this is very good
Bout time someone made this.Quote:
Code:
public override void GetProperties( ObjectPropertyList list )
{
base.GetProperties( list );
ArrayList strings = new ArrayList();
strings.Add( (Race == null ? "Race : Generic Race" : "Race : " + Race) );
strings.Add( (Class == null ? "Class : Generic Class" : "Class : " + Class) );
strings.Add( "Level : " + Level.ToString() );
string toAdd = "";
int amount = strings.Count;
int current = 1;
foreach(string str in strings)
{
toAdd += str;
if ( current != amount )
toAdd += "\n";
++current;
}
if(toAdd != "")
list.Add(1070722, toAdd);
}
A_Li_N Race : Alien Class : Bringer of Death Level : 11
__________________
|
|
|
|
|
|
#6 (permalink) |
|
Save the Mongbats!
Join Date: Mar 2003
Location: Mongbatville
Age: 33
Posts: 1,042
|
Clever little trick. I'm sure I can make use of this. I just wish I'd thought of it.
__________________
One day, we mongbats shall rise up and unleash our fury on all of mankind... And on that fateful day, humanity shall tremble, and they shall know despair... |
|
|
|
|
#7 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
A_Li_N actually thought of (and used) this method long ago, with his spellbooks. He helped me with object property lists on my Command Toolbar Stone
![]() Vorspire made an easy-to-use method, though. Again, this rocks. Good job man. |
|
|
|
|
#8 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Age: 34
Posts: 7
|
Quote:
yah he thought of it but did he make it? |
|
|
|
|
|
#9 (permalink) | ||
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
Quote:
Quote:
|
||
|
|
|
|
#11 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
Technically, I did
![]() It was part of my Full Spellbook script...not a standalone. I, however, take no sort of credit for this as it's a prety generic 'idea' that just takes some thinking to put together. Thanks for the release again!
__________________
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|