|
||
|
|||||||
| Network Modifications This forum is for modifications to the networking code of RunUO |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Age: 47
Posts: 4,755
|
Props to our friends over at POL who are maintaining a current UO Packet Guide where I found the needed packet info to enable the slot.
1. SCRIPT MODS In Scripts\Accounting\Account.cs: Line 590, Change: Code:
m_Mobiles = new Mobile[6]; Code:
m_Mobiles = new Mobile[7]; Code:
Mobile[] list = new Mobile[6]; Code:
Mobile[] list = new Mobile[7]; Code:
public int Limit
{
get { return ( Core.AOS ? 6 : 5 ); }
}
Code:
public int Limit
{
get { return ( Core.AOS ? 7 : 5 ); }
}
2. CORE MODS: In Server\Network\Packet.cs: Line 2522, Change: Code:
if ( acct != null && acct.Limit >= 6 )
{
flags |= 0x8020;
flags &= ~0x004;
}
Code:
if ( acct != null && acct.Limit == 7 )
{
flags |= 0x9000;
flags &= ~0x004;
}
else if ( acct != null && acct.Limit == 6 )
{
flags |= 0x8020;
flags &= ~0x004;
}
Code:
if ( count >= 6 ) flags |= 0x40; // 6th character slot else if ( a.Limit == 1 ) flags |= 0x14; // Limit characters & one character Code:
if ( count == 7 ) flags |= 0x1000; // 7th character slot else if ( count == 6 ) flags |= 0x40; // 6th character slot else if ( a.Limit == 1 ) flags |= 0x14; // Limit characters & one character NOTES: I believe the first version of the client to support 7th character slot was v6.0.4.0 (18 Oct 07) - this version of the client came out the same day OSI announced that 7th character slots could be purchased from the UO store. DISCLAIMER: One thing that should be done in the SVN is to allow extra character slots to be enabled or disabled independently from other expansion features. Right now the 6th character slot is tied to AOS - see the change to the line: Code:
get { return ( Core.AOS ? 6 : 5 ); }
Nevertheless, it doesn't really affect anything since only clients that support the extra client slot(s) will be able to use them anyway. Hope you find this helpful! |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
|
Quote:
__________________
![]() |
|
|
|
|
|
|
#4 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 36
Posts: 3,974
|
Thank you for providing this detailed information, worked like a charm!
PS) Don't bother flaming me for Res'ing an old Thread. I've been gone a while so it's new to me.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
|
|
|
|
|
|
#5 (permalink) |
|
Master of the Internet
|
not going to flame you fro rezing an old thread
going to flame you for taking over 6 months off of RunUO ![]() Shame on you ![]() ![]()
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 36
Posts: 3,974
|
One acronym sums it up Nicely ... WoW
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
|
|
|
|
|
|
#8 (permalink) |
|
Forum Novice
Join Date: Apr 2008
Location: Messina, Sicily, Italy
Age: 26
Posts: 536
|
search for Character slots (or something like that), i believe it was a RoninGT or ArteGordon script... that allows to set (or give as reward) any different number of char slots (or housing slots)... Mod it a little, and it will work easy with this
![]() I am not using this (yet), but i'm using the char slots mod on the latest SVN and it is working more than fine... |
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: Nov 2008
Age: 23
Posts: 199
|
Been wanting to do this on my shard for a while but I'm not really good at reverse engineering packets. I knew exactly where I was looking, just did not know what to set it to. :P Got it working now, thanks for posting!
__________________
Acronis :: Don't let data disasters kill you. Backup! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|