RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

FULL Diablo 2 Style Socket System =)

LordHogFred

Knight
Ok just a small update. Finally after a lot of mucking around I have managed to serialize the socketed items properly without them having to be deleted on startup. I have done all the weapons so far and will upload all of the items hopeuflly later on today.

Just thought you might like to know :p

Chz :),
 

Rob24

Sorceror
LordHogFred said:
It will only apply one of the attributes that it specifies on the gem to certain items. For example if u put an emerald in a helmet the helmet will get +3 dex BUT if you put the same type of emerald in an axe it will give +5 poison area damage. Hope that helps you.


P.S. sorry for the double post :eek:

Thenk you for the info
But can you make it for me umm that if it show all it say on the gems that can put on the item?
 

killing_zoe

Wanderer
can it use for runuo1.0.0? i test it on runuo 1.0 ,but it doesn't work ,it has a lot of errors,and i think maybe it can use for runuo1.0.0?i relly like this script
 

LordHogFred

Knight
killing_zoe said:
can it use for runuo1.0.0? i test it on runuo 1.0 ,but it doesn't work ,it has a lot of errors,and i think maybe it can use for runuo1.0.0?i relly like this script


I have got it working perfectly on my version of 1.0.0 with no rpbolems at all.

What are your errors?
 

killing_zoe

Wanderer
the problem is : i did everything the installtion says ,but
====================================================
Error: ScriptsMiscLootPack.cs: CS1513: (line 240, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 240, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 240, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 242, column 9) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 242, column 24) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 242, column 42) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1513: (line 250, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 250, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 250, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 252, column 8) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 252, column 23) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 252, column 41) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1520: (line 253, column 8) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 253, column 23) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 253, column 40) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1513: (line 262, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 262, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 262, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 264, column 9) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 264, column 24) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 264, column 42) Invalid token
',' in class, struct, or interface member declaration
======================================================

555555555555~~~~~~ i relly don't know so much about the c# ,so i have no idea to do the problem ,you said you can use it on runuo1.0.0 ,if you changed something of the scripts?i relly hope you can help me to do these problem ,i like this script very much .....
 

LordHogFred

Knight
killing_zoe said:
the problem is : i did everything the installtion says ,but
====================================================
Error: ScriptsMiscLootPack.cs: CS1513: (line 240, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 240, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 240, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 242, column 9) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 242, column 24) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 242, column 42) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1513: (line 250, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 250, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 250, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 252, column 8) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 252, column 23) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 252, column 41) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1520: (line 253, column 8) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 253, column 23) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 253, column 40) Invalid token
',' in class, struct, or interface member declaration
- Error: ScriptsMiscLootPack.cs: CS1513: (line 262, column 55) } expected
- Error: ScriptsMiscLootPack.cs: CS1026: (line 262, column 55) ) expected
- Error: ScriptsMiscLootPack.cs: CS1002: (line 262, column 55) ; expected
- Error: ScriptsMiscLootPack.cs: CS1520: (line 264, column 9) Class, struct,
or interface method must have a return type
- Error: ScriptsMiscLootPack.cs: CS1031: (line 264, column 24) Type expected
- Error: ScriptsMiscLootPack.cs: CS1519: (line 264, column 42) Invalid token
',' in class, struct, or interface member declaration
======================================================

555555555555~~~~~~ i relly don't know so much about the c# ,so i have no idea to do the problem ,you said you can use it on runuo1.0.0 ,if you changed something of the scripts?i relly hope you can help me to do these problem ,i like this script very much .....


I dont know where you got this ScriptsMiscLootPack.cs from it looks like a custom script to me. Post what's in the script and I'll see what I can do :)
 

killing_zoe

Wanderer
you see ,this is "HOW TO" 's
==============================
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]
{
new LootPackEntry( true, Gold, 100.00, "1d10+10" ),
new LootPackEntry( false, MagicItems, 0.02, 1, 5, 0, 90 ),
new LootPackEntry( false, Instruments, 0.02, 1 ),
} );
======================================
and this is my lootpack's
============================================
public static readonly LootPack AosPoor = new LootPack( new LootPackEntry[]
{
new LootPackEntry( true, Gold, 100.00, "1d10+10" ),
new LootPackEntry( false, MagicItems, 0.02, 1, 5, 0, 90 ),
new LootPackEntry( false, Instruments, 0.02, 1 )
} );
================================================
can you find any diffrent?
new LootPackEntry( false, Instruments, 0.02, 1 ), <---------HOW TO have (,)
new LootPackEntry( false, Instruments, 0.02, 1 ) <----------and the original dosen't have

i did everything with the HOW TO,so .....

and now i add a (,) into my lootpack's "new LootPackEntry( false, Instruments, 0.02, 1 ) "
the problem was did~

:)
 

LordHogFred

Knight
Ok much later than I had hoped but here are the updated socketed items to support the Augmentlist properly even after a restart.

Just backup your old Socketed Shields, Socketed Armor and Socketed Weapons folders just in case then just unzip these new items and stick them in your sockets folder.

Enjoy :)


EDIT: Use download below
 

KillerBeeZ

Knight
LordHogFred said:
Ok much later than I had hoped but here are the updated socketed items to support the Augmentlist properly even after a restart.

Just backup your old Socketed Shields, Socketed Armor and Socketed Weapons folders just in case then just unzip these new items and stick them in your sockets folder.

Enjoy :)

OMG thank you, I've been putting this off for a while, glad I did..

question tho, are these the originals? as in the same as the 1st ones you posted but with the added function to the de/serialization?

or are these edited for the newer version of runUO?
 

LordHogFred

Knight
KillerBeeZ said:
OMG thank you, I've been putting this off for a while, glad I did..

question tho, are these the originals? as in the same as the 1st ones you posted but with the added function to the de/serialization?

or are these edited for the newer version of runUO?

Yeah I been meaning to do these for ages as well, sorry they're so late :p

These are the old ones but with the added AugmentList, however these work for the new RUO 1.0.0, at least they are working perfectly for me and I have updated. I don't think there are any differences in the changes that need to be made between the original version and RUO 1.0.0, however if there is anything I'll get some documentation up on how to install it under the new RUO. :D


Edit: Oops, the SocketedHelmet.cs had some extra }'s in it. Download from this link to get working one. Sorry :eek:
 

Attachments

  • Updated Augment List Items.zip
    63.4 KB · Views: 55

KillerBeeZ

Knight
LordHogFred said:
Yeah I been meaning to do these for ages as well, sorry they're so late :p

These are the old ones but with the added AugmentList, however these work for the new RUO 1.0.0, at least they are working perfectly for me and I have updated. I don't think there are any differences in the changes that need to be made between the original version and RUO 1.0.0, however if there is anything I'll get some documentation up on how to install it under the new RUO. :D

you must be using an edited version lol

I fixed this

SocketedHelmet.cs in socketed armor (you had 2 extra } at the end)

PHP:
using System;
using Server.Network;
using Server.Items;

namespace Server.Items
{
	public class SocketedHelmet : Helmet
	{
		[Constructable]
		public SocketedHelmet()
		{
			UsedSockets = 0;

			switch ( Utility.Random( 6 ) ) 
			{ 
			case 0: MaxSockets = 1; break;
			case 1: MaxSockets = 1; break;
			case 2: MaxSockets = 1; break;
			case 3: MaxSockets = 2; break;
			case 4: MaxSockets = 2; break;
			case 5: MaxSockets = 3; break;
			}
		}
		
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties(list);
			
			SocketLabel = "Sockets: " + UsedSockets + "/" + MaxSockets + AugmentList;
			list.Add( 1042971, SocketLabel );
		}

		public SocketedHelmet( Serial serial ) : base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 1 ); // version

			writer.Write( (int) UsedSockets );
			writer.Write( (int) MaxSockets );

			int i=0;

			writer.Write( (string) AugmentList );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			UsedSockets = reader.ReadInt();
			MaxSockets = reader.ReadInt();

			if ( version >=1 )
			{
			AugmentList = reader.ReadString();
			}
		}
	}
}
 

LordHogFred

Knight
KillerBeeZ said:
you must be using an edited version lol

I fixed this

SocketedHelmet.cs in socketed armor (you had 2 extra } at the end)

PHP:
using System;
using Server.Network;
using Server.Items;

namespace Server.Items
{
	public class SocketedHelmet : Helmet
	{
		[Constructable]
		public SocketedHelmet()
		{
			UsedSockets = 0;

			switch ( Utility.Random( 6 ) ) 
			{ 
			case 0: MaxSockets = 1; break;
			case 1: MaxSockets = 1; break;
			case 2: MaxSockets = 1; break;
			case 3: MaxSockets = 2; break;
			case 4: MaxSockets = 2; break;
			case 5: MaxSockets = 3; break;
			}
		}
		
		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties(list);
			
			SocketLabel = "Sockets: " + UsedSockets + "/" + MaxSockets + AugmentList;
			list.Add( 1042971, SocketLabel );
		}

		public SocketedHelmet( Serial serial ) : base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 1 ); // version

			writer.Write( (int) UsedSockets );
			writer.Write( (int) MaxSockets );

			int i=0;

			writer.Write( (string) AugmentList );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			UsedSockets = reader.ReadInt();
			MaxSockets = reader.ReadInt();

			if ( version >=1 )
			{
			AugmentList = reader.ReadString();
			}
		}
	}
}


Hehe just noticed that :p
Added a new download :),
 

KillerBeeZ

Knight
LordHogFred said:
Hehe just noticed that :p
Added a new download :),

cool, well so far it seems to be working, will continue testing... was worried about items being deleted but it seems you did your homewerk with the versioning

yes I know I misspelled homework, I have gotten so used to spelling it homewerkz cause of my new site lol

anyway, great job and well done.
 

LordHogFred

Knight
KillerBeeZ said:
cool, well so far it seems to be working, will continue testing... was worried about items being deleted but it seems you did your homewerk with the versioning

yes I know I misspelled homework, I have gotten so used to spelling it homewerkz cause of my new site lol

anyway, great job and well done.

Hehe, I was well pleased when I finally started my server and it didn't try to delete the items :),
 

KillerBeeZ

Knight
LordHogFred said:
Hehe, I was well pleased when I finally started my server and it didn't try to delete the items :),

I have yet to be able to do it. but looking at your code will help a great deal...

most of the time I would edit the serialize, reboot then edit the deserialize then reboot again (I may have that backwards)

that becomes hell with lots of scripts lol
 

Manix

Wanderer
Need Help Please

I couldn't find this in the BaseCreature:

private int m_WeaponSocketRoll = Utility.Random( 50 );
private int m_ArmorSocketRoll = Utility.Random( 50 );
private int m_ShieldSocketRoll = Utility.Random( 50 );

*In the "How To" document it didn't say where to add this, and the files didn't come with a replacment BaseCreature file.

Thanks,
Your Friend,
Manix
 

LordHogFred

Knight
Manix said:
I couldn't find this in the BaseCreature:

private int m_WeaponSocketRoll = Utility.Random( 50 );
private int m_ArmorSocketRoll = Utility.Random( 50 );
private int m_ShieldSocketRoll = Utility.Random( 50 );

*In the "How To" document it didn't say where to add this, and the files didn't come with a replacment BaseCreature file.

Thanks,
Your Friend,
Manix


LootPacks are used to distribute items now.
 

Manix

Wanderer
Still Can't get them to Spawn

Do I have to add them in manually? I can't find that code inside the LootPack either. I have set an efreet to ultrarich, and killed like 50 of them, and not one gem spawned, not even a chipped.

Thanks for the Help.
Hope to see your reply.
Manix
 

LordHogFred

Knight
Manix said:
Do I have to add them in manually? I can't find that code inside the LootPack either. I have set an efreet to ultrarich, and killed like 50 of them, and not one gem spawned, not even a chipped.

Thanks for the Help.
Hope to see your reply.
Manix


YOu may want to alter the drop rates. They were very low because thats what suited my server. To change them change the red number:
Code:
new LootPackEntry( false, ChippedGems,	  [COLOR=Red]2.00[/COLOR], 1 ),
There it is 2% chance so if you put 5.00 it will be 5% and if you put 10.65 it will be 10.65% should be able to alter it to get higher drop rates. :D

Hope that helps :),
 
Top