Hello,
So i have been struggling with this all day, and have exhausted all the search engines in pursuit of a fix.
I downloaded a distro that is PREUOR and everythings been great - except stat/skill lock is disabled. When clicking on the arrow you get a message and it doesn't work.
Every page I found references packethandlers.cs which makes sense, because that's where I find this message.
Now where it gets strange: This distro has two packethandlers.cs, one in \server\network and one in the traditional place according to other distros, \scripts\engines\remoteadmin
The first one appears to contain the code that has the undesired effects. Funny thing is though, I can delete the entire packethandlers.cs file that lives in server\network and nothing changes. Compiles with no problems and skill lock is still not functional.
I am way over my head. Please someone help
Edit: I realize now this isn't the correct section of the forum but I cant seem to find a way to move or delete the thread, sorry about that.
Anyway, this is in relation to packet 6017 I think?
(from packethandlers.cs)
So i have been struggling with this all day, and have exhausted all the search engines in pursuit of a fix.
I downloaded a distro that is PREUOR and everythings been great - except stat/skill lock is disabled. When clicking on the arrow you get a message and it doesn't work.
Every page I found references packethandlers.cs which makes sense, because that's where I find this message.
Now where it gets strange: This distro has two packethandlers.cs, one in \server\network and one in the traditional place according to other distros, \scripts\engines\remoteadmin
The first one appears to contain the code that has the undesired effects. Funny thing is though, I can delete the entire packethandlers.cs file that lives in server\network and nothing changes. Compiles with no problems and skill lock is still not functional.
I am way over my head. Please someone help
Edit: I realize now this isn't the correct section of the forum but I cant seem to find a way to move or delete the thread, sorry about that.
Anyway, this is in relation to packet 6017 I think?
Code:
Line 63: private static PacketHandler[] m_6017Handlers;
Line 79: m_6017Handlers = new PacketHandler[0x100];
Line 154: Register6017( 0x08, 15, true, new OnPacketReceive( DropReq6017 ) );
Line 154: Register6017( 0x08, 15, true, new OnPacketReceive( DropReq6017 ) );
Line 182: if ( m_6017Handlers[packetID] == null )
Line 183: m_6017Handlers[packetID] = new PacketHandler( packetID, length, ingame, onReceive );
Line 191: public static void Register6017( int packetID, int length, bool ingame, OnPacketReceive onReceive )
Line 193: m_6017Handlers[packetID] = new PacketHandler( packetID, length, ingame, onReceive );
Line 196: public static PacketHandler Get6017Handler( int packetID )
Line 198: return m_6017Handlers[packetID];
Line 264: ph = Get6017Handler( packetID );
Line 1010: public static void DropReq6017( NetState state, PacketReader pvSrc )
Search "6017" (12 hits in 1 file)
H:\C3.1\Server\Network\PacketHandlers.cs (12 hits)
Line 63: private static PacketHandler[] m_6017Handlers;
Line 79: m_6017Handlers = new PacketHandler[0x100];
Line 154: Register6017( 0x08, 15, true, new OnPacketReceive( DropReq6017 ) );
Line 154: Register6017( 0x08, 15, true, new OnPacketReceive( DropReq6017 ) );
Line 182: if ( m_6017Handlers[packetID] == null )
Line 183: m_6017Handlers[packetID] = new PacketHandler( packetID, length, ingame, onReceive );
Line 191: public static void Register6017( int packetID, int length, bool ingame, OnPacketReceive onReceive )
Line 193: m_6017Handlers[packetID] = new PacketHandler( packetID, length, ingame, onReceive );
Line 196: public static PacketHandler Get6017Handler( int packetID )
Line 198: return m_6017Handlers[packetID];
Line 264: ph = Get6017Handler( packetID );
Line 1010: public static void DropReq6017( NetState state, PacketReader pvSrc )
(from packethandlers.cs)
Code:
public static void ConfigurationFile( NetState state, PacketReader pvSrc )
{
}
public static void LogoutReq( NetState state, PacketReader pvSrc )
{
state.Send( new LogoutAck() );
}
public static void ChangeSkillLock( NetState state, PacketReader pvSrc )
{
Skill s = state.Mobile.Skills[pvSrc.ReadInt16()];
if (s != null)
{
state.Mobile.SendAsciiMessage("You cannot set your skills DOWN or LOCKED. This has been disabled for historical accuracy.");
s.SetLockNoRelay(SkillLock.Up);//((SkillLock)pvSrc.ReadByte());
s.Update();
}
}
public static void HelpRequest( NetState state, PacketReader pvSrc )
{
EventSink.InvokeHelpRequest( new HelpRequestEventArgs( state.Mobile ) );
}
public static void TargetResponse( NetState state, PacketReader pvSrc )
{
int type = pvSrc.ReadByte();
int targetID = pvSrc.ReadInt32();
int flags = pvSrc.ReadByte();
Serial serial = pvSrc.ReadInt32();
int x = pvSrc.ReadInt16(), y = pvSrc.ReadInt16(), z = pvSrc.ReadInt16();
int graphic = pvSrc.ReadUInt16();
if ( targetID == unchecked( (int) 0xDEADBEEF ) )
return;
Mobile from = state.Mobile;
Target t = from.Target;