|
From: slartibartfast <sla...@us...> - 2004-09-30 19:12:23
|
Update of /cvsroot/seq/myseq/client In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1219 Modified Files: Structures.cs myseq.csproj MapCon.cs frmMain.resx frmMain.cs Compile.bat ClientReleaseNotes.htm Classes.cs AssemblyInfo.cs App.ico Added Files: diff_it.bat Log Message: Client Source Updated to 1.16.2 Index: frmMain.resx =================================================================== RCS file: /cvsroot/seq/myseq/client/frmMain.resx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- frmMain.resx 30 Sep 2004 18:53:06 -0000 1.2 +++ frmMain.resx 30 Sep 2004 19:12:12 -0000 1.3 @@ -277,6 +277,60 @@ <data name="mnuIPAddress5.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>Private</value> </data> + <data name="menuItem1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar2.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar2.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar3.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar3.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar4.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar4.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar5.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar5.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar6.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuChar6.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem7.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="menuItem7.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuCharRefresh.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> + <data name="mnuCharRefresh.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>Private</value> + </data> <data name="mnuMapSettings.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>Private</value> </data> Index: App.ico =================================================================== RCS file: /cvsroot/seq/myseq/client/App.ico,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 Binary files /tmp/cvsouJEJJ and /tmp/cvsbMSZyp differ Index: Classes.cs =================================================================== RCS file: /cvsroot/seq/myseq/client/Classes.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Classes.cs 30 Sep 2004 18:53:07 -0000 1.1 +++ Classes.cs 30 Sep 2004 19:12:12 -0000 1.2 @@ -119,4 +119,32 @@ } } #endregion + + public class ProcessInfo + { + private uint mProcessID; + private string msCharName; + public ProcessInfo(uint ProcessID, string sCharName) + { + mProcessID = ProcessID; + msCharName = sCharName; + } + + public uint ProcessID + { + get + { + return mProcessID; + } + } + public string sCharName + { + get + { + return msCharName; + } + } + } + + } Index: Compile.bat =================================================================== RCS file: /cvsroot/seq/myseq/client/Compile.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Compile.bat 30 Sep 2004 18:53:07 -0000 1.1 +++ Compile.bat 30 Sep 2004 19:12:12 -0000 1.2 @@ -1,7 +1,11 @@ @echo off if "%1"=="" Goto Error +del %1.exe echo Compiling %1 -csc /nologo /out:%1.exe /target:winexe /r:Speechlib.dll,folderbrowser.dll,Magiclibrary.dll /win32icon:app.ico Aboutdlg.cs frmMain.cs frmOptions.cs ListViewPanel.cs Structures.cs UtilSocket.cs MapCon.cs MapPane.cs MacroQuestPanel.cs AssemblyInfo.cs +SET PATH=d:\programme\microsoft.net\sdk\v1.1\bin\;%PATH% +del *.resources +resgen /compile AboutDlg.resx frmMain.resx frmOptions.resx ListBoxPanel.resx ListViewPanel.resx MacroQuestPanel.resx MapCon.resx MapPane.resx +csc /nologo /out:%1.exe /target:winexe /r:Speechlib.dll,folderbrowser.dll,Magiclibrary.dll /win32icon:app.ico /recurse:*.cs /res:AboutDlg.resources,myseq.AboutDlg.resources /res:frmMain.resources,myseq.frmMain.resources /res:frmOptions.resources,myseq:frmOptions.resources /res:ListBoxPanel.resources,myseq:ListBoxPanel.resources /res:ListViewPanel.resources,myseq:ListViewPanel.resources /res:MacroQuestPanel.resources,myseq:MacroQuestPanel.resources /res:MapCon.resources,myseq:MapCon.resources /res:MapPane.resources,myseq:MapPane.resources echo Completed. echo Launching %1 %1 @@ -15,4 +19,4 @@ echo Example: %0 MySEQ echo. echo. -:Done \ No newline at end of file +:done \ No newline at end of file --- NEW FILE: diff_it.bat --- @echo off rem This assumes a specific directory layout: rem rem + ... rem | rem +-+ MySeq rem | rem +-- MySeq_Client_1_16_1 rem | rem +-- SomeDirWithCurrentChanges rem rem All differences between SomeDirWithCurrentChanges and MySeq_Client_1_16_1 are created; rem the latter should contain the official sources. Only SomeDirWithCurrentChanges (or whatever) rem can be edited, and diff_it.bat must be run from this directory. rem rem When new sources are released, MySeq_Client_1_16_1 has to be replaced with the new sources, rem of course. diff -x patch.txt -N -x "*.resources" -x "*.exe" -x maps -x "*.xml" -x timers -x filters -x cfg --ignore-file-name-case -w -B ..\MySeq_Client_1_16_1 . > ..\patch.txt diff -q -x patch.txt -N -x "*.resources" -x "*.exe" -x maps -x "*.xml" -x timers -x filters -x cfg --ignore-file-name-case -w -B ..\MySeq_Client_1_16_1 . type ..\patch.txt Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/seq/myseq/client/AssemblyInfo.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- AssemblyInfo.cs 30 Sep 2004 18:53:07 -0000 1.4 +++ AssemblyInfo.cs 30 Sep 2004 19:12:12 -0000 1.5 @@ -26,7 +26,7 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.16.1.*")] +[assembly: AssemblyVersion("1.16.2.*")] // // In order to sign your assembly you must specify a key to use. Refer to the Index: ClientReleaseNotes.htm =================================================================== RCS file: /cvsroot/seq/myseq/client/ClientReleaseNotes.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ClientReleaseNotes.htm 30 Sep 2004 18:53:07 -0000 1.1 +++ ClientReleaseNotes.htm 30 Sep 2004 19:12:12 -0000 1.2 @@ -7,6 +7,27 @@ <H1 align=center><U>MYSEQ Client Release Notes</U></H1> <P> <H2>Changes for next version</H2> +<H2>Release Version 1.16.2</H2> +<p>Dated 28 September 2004</p> +<ol> + <li>Added all missing Con Level Information - please post feedback if any of + the con level data is incorrect. </li> + <li>Fixed the MobInfo panel background color. (Thanks CybMax for spotting it). + </li> + <li>Added the ability to select which character to monitor when multiboxing.</li> +</ol> +<p>Note: The list does not refresh automatically - you must click on the refresh +menu item. (this is an attempt to keep the overhead of this feature to a +minimum).</p> +<p>Also Note that a new server version is required for this to work...</p> +<ol> + <li value="4">Added 42!'s ability to select a point on the map for navigation + purposes. Shift Left-click on the map to toggle the selected point.</li> +</ol> +<p>(I changed 42's code a little to preserve the default behavior for selecting +spawns, also made the line dashed so that it is easy to distinguish from tyhe +selected spawn)</p> +<p> </p> <H2>Release Version 1.16.1</H2> <P>Dated 18 September 2004</P> <OL> Index: myseq.csproj =================================================================== RCS file: /cvsroot/seq/myseq/client/myseq.csproj,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- myseq.csproj 30 Sep 2004 18:53:06 -0000 1.5 +++ myseq.csproj 30 Sep 2004 19:12:11 -0000 1.6 @@ -32,7 +32,7 @@ DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" - IncrementalBuild = "true" + IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" Index: MapCon.cs =================================================================== RCS file: /cvsroot/seq/myseq/client/MapCon.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- MapCon.cs 30 Sep 2004 18:53:06 -0000 1.9 +++ MapCon.cs 30 Sep 2004 19:12:11 -0000 1.10 @@ -16,1729 +16,1782 @@ namespace myseq { - public class MapCon : System.Windows.Forms.UserControl { - private System.ComponentModel.Container components = null; - public System.Windows.Forms.Label lblMobInfo; + public class MapCon : System.Windows.Forms.UserControl { + private System.ComponentModel.Container components = null; + public System.Windows.Forms.Label lblMobInfo; - // Hand relocation variables [...3256 lines suppressed...] + } - public class MapText { - public string text = ""; - public SolidBrush color = null; - public int x = 0; - public int y = 0; - public int z = 0; - } - #endregion + public class MapText { + public string text = ""; + public SolidBrush color = null; + public int x = 0; + public int y = 0; + public int z = 0; + } + #endregion } Index: frmMain.cs =================================================================== RCS file: /cvsroot/seq/myseq/client/frmMain.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- frmMain.cs 30 Sep 2004 18:53:06 -0000 1.2 +++ frmMain.cs 30 Sep 2004 19:12:12 -0000 1.3 @@ -81,6 +81,9 @@ public RegexHelper reHelper = new RegexHelper(); + public System.Collections.ArrayList colProcesses = new ArrayList(); + public ProcessInfo CurrentProcess; + private bool mbGetProcessInfo = false; #region System Components private System.Windows.Forms.Timer timPackets; private System.ComponentModel.IContainer components; @@ -169,6 +172,15 @@ private System.Windows.Forms.MenuItem mnuIPAddress2; private System.Windows.Forms.MenuItem mnuIPAddress3; private System.Windows.Forms.MenuItem mnuIPAddress4; + private System.Windows.Forms.MenuItem menuItem1; + private System.Windows.Forms.MenuItem menuItem7; + private System.Windows.Forms.MenuItem mnuChar1; + private System.Windows.Forms.MenuItem mnuChar2; + private System.Windows.Forms.MenuItem mnuChar3; + private System.Windows.Forms.MenuItem mnuCharRefresh; + private System.Windows.Forms.MenuItem mnuChar4; + private System.Windows.Forms.MenuItem mnuChar5; + private System.Windows.Forms.MenuItem mnuChar6; private System.Windows.Forms.MenuItem mnuIPAddress5; #endregion @@ -614,6 +626,15 @@ this.mnuIPAddress3 = new System.Windows.Forms.MenuItem(); this.mnuIPAddress4 = new System.Windows.Forms.MenuItem(); this.mnuIPAddress5 = new System.Windows.Forms.MenuItem(); + this.menuItem1 = new System.Windows.Forms.MenuItem(); + this.mnuChar1 = new System.Windows.Forms.MenuItem(); + this.mnuChar2 = new System.Windows.Forms.MenuItem(); + this.mnuChar3 = new System.Windows.Forms.MenuItem(); + this.mnuChar4 = new System.Windows.Forms.MenuItem(); + this.mnuChar5 = new System.Windows.Forms.MenuItem(); + this.mnuChar6 = new System.Windows.Forms.MenuItem(); + this.menuItem7 = new System.Windows.Forms.MenuItem(); + this.mnuCharRefresh = new System.Windows.Forms.MenuItem(); this.mnuMapSettings = new System.Windows.Forms.MenuItem(); this.mnuDepthFilter = new System.Windows.Forms.MenuItem(); this.mnuSep5 = new System.Windows.Forms.MenuItem(); @@ -767,6 +788,7 @@ this.mnuRefreshSpawnList, this.mnuSep4, this.mnuServerSelection, + this.menuItem1, this.mnuMapSettings, this.mnuListSettings, this.mnuAlert, @@ -854,9 +876,82 @@ this.mnuIPAddress5.Text = ""; this.mnuIPAddress5.Click += new System.EventHandler(this.mnuIPAddress5_Click); // + // menuItem1 + // + this.menuItem1.Index = 5; + this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.mnuChar1, + this.mnuChar2, + this.mnuChar3, + this.mnuChar4, + this.mnuChar5, + this.mnuChar6, + this.menuItem7, + this.mnuCharRefresh}); + this.menuItem1.Text = "Character Selection"; + // + // mnuChar1 + // + this.mnuChar1.Index = 0; + this.mnuChar1.Shortcut = System.Windows.Forms.Shortcut.CtrlShift1; + this.mnuChar1.Text = "Char 1"; + this.mnuChar1.Visible = false; + this.mnuChar1.Click += new System.EventHandler(this.mnuChar1_Click); + // + // mnuChar2 + // + this.mnuChar2.Index = 1; + this.mnuChar2.Shortcut = System.Windows.Forms.Shortcut.CtrlShift2; + this.mnuChar2.Text = "Char 2"; + this.mnuChar2.Visible = false; + this.mnuChar2.Click += new System.EventHandler(this.mnuChar2_Click); + // + // mnuChar3 + // + this.mnuChar3.Index = 2; + this.mnuChar3.Shortcut = System.Windows.Forms.Shortcut.CtrlShift3; + this.mnuChar3.Text = "Char 3"; + this.mnuChar3.Visible = false; + this.mnuChar3.Click += new System.EventHandler(this.mnuChar3_Click); + // + // mnuChar4 + // + this.mnuChar4.Index = 3; + this.mnuChar4.Shortcut = System.Windows.Forms.Shortcut.CtrlShift4; + this.mnuChar4.Text = "Char 4"; + this.mnuChar4.Visible = false; + this.mnuChar4.Click += new System.EventHandler(this.mnuChar4_Click); + // + // mnuChar5 + // + this.mnuChar5.Index = 4; + this.mnuChar5.Shortcut = System.Windows.Forms.Shortcut.CtrlShift5; + this.mnuChar5.Text = "Char 5"; + this.mnuChar5.Visible = false; + this.mnuChar5.Click += new System.EventHandler(this.mnuChar5_Click); + // + // mnuChar6 + // + this.mnuChar6.Index = 5; + this.mnuChar6.Shortcut = System.Windows.Forms.Shortcut.CtrlShift6; + this.mnuChar6.Text = "Char 6"; + this.mnuChar6.Visible = false; + this.mnuChar6.Click += new System.EventHandler(this.mnuChar6_Click); + // + // menuItem7 + // + this.menuItem7.Index = 6; + this.menuItem7.Text = "-"; + // + // mnuCharRefresh + // + this.mnuCharRefresh.Index = 7; + this.mnuCharRefresh.Text = "Refresh List"; + this.mnuCharRefresh.Click += new System.EventHandler(this.mnuCharRefresh_Click); + // // mnuMapSettings // - this.mnuMapSettings.Index = 5; + this.mnuMapSettings.Index = 6; this.mnuMapSettings.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuDepthFilter, this.mnuSep5, @@ -953,7 +1048,7 @@ // // mnuListSettings // - this.mnuListSettings.Index = 6; + this.mnuListSettings.Index = 7; this.mnuListSettings.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuShowSpawnList, this.mnuSep10, @@ -980,7 +1075,7 @@ // // mnuAlert // - this.mnuAlert.Index = 7; + this.mnuAlert.Index = 8; this.mnuAlert.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuReloadAlerts, this.mnuSep7, @@ -1015,18 +1110,18 @@ // // mnuCollectMobTrails // - this.mnuCollectMobTrails.Index = 8; + this.mnuCollectMobTrails.Index = 9; this.mnuCollectMobTrails.Text = "Collect Mob Trails"; this.mnuCollectMobTrails.Click += new System.EventHandler(this.mnuCollectMobTrails_Click); // // mnuSep11 // - this.mnuSep11.Index = 9; + this.mnuSep11.Index = 10; this.mnuSep11.Text = "-"; // // mnuChangeColor // - this.mnuChangeColor.Index = 10; + this.mnuChangeColor.Index = 11; this.mnuChangeColor.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuGridColor, this.mnuListColor, @@ -1053,7 +1148,7 @@ // // mnuChangeFont // - this.mnuChangeFont.Index = 11; + this.mnuChangeFont.Index = 12; this.mnuChangeFont.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.mnuSpawnListFont, this.mnuTargetInfoFont}); @@ -1073,19 +1168,19 @@ // // mnuSep8 // - this.mnuSep8.Index = 12; + this.mnuSep8.Index = 13; this.mnuSep8.Text = "-"; // // mnuShowTargetInfo // - this.mnuShowTargetInfo.Index = 13; + this.mnuShowTargetInfo.Index = 14; this.mnuShowTargetInfo.Shortcut = System.Windows.Forms.Shortcut.F9; this.mnuShowTargetInfo.Text = "Show Target Info"; this.mnuShowTargetInfo.Click += new System.EventHandler(this.mnuShowTargetInfo_Click); // // mnuAutoSelectEQTarget // - this.mnuAutoSelectEQTarget.Index = 14; + this.mnuAutoSelectEQTarget.Index = 15; this.mnuAutoSelectEQTarget.Text = "Auto Select EQ Target"; this.mnuAutoSelectEQTarget.Click += new System.EventHandler(this.mnuAutoSelectEQTarget_Click); // @@ -1648,12 +1743,21 @@ private void timPackets_Tick(object sender, System.EventArgs e) { + byte[] requestdata; try { if (!RequestPending) { RequestPending = true; - byte[] requestdata = new byte[]{0x23}; + if (mbGetProcessInfo) + { + mbGetProcessInfo = false; + requestdata = new byte[]{0x6}; + } + else + { + requestdata = new byte[]{0x23}; + } SendData(requestdata); } } @@ -1733,6 +1837,7 @@ case SPAWNINFO.PacketType.GroundItem: ProcessGroundItems(si); break; case SPAWNINFO.PacketType.Target: ProcessTarget(si); break; case SPAWNINFO.PacketType.Spawn: ProcessSpawns(si); break; + case SPAWNINFO.PacketType.GetProcessInfo: ProcessProcessInfo(si); break; default: this.Text = "Unknown Packet Type: " + si.Type.ToString(); break; } } @@ -1774,6 +1879,103 @@ } #endregion + #region ProcessProcessInfo + private void ProcessProcessInfo(SPAWNINFO si) + { + ProcessInfo PI = new ProcessInfo(si.SpawnID, si.Name); + if (si.Level==0) + { + CurrentProcess = PI; + } + else + { + while (colProcesses.Count>0 && colProcesses.Count>=si.Level) + { + colProcesses.Remove(colProcesses[colProcesses.Count-1]); + } + colProcesses.Add(PI); + + switch (colProcesses.Count) + { + case 1: + { + mnuChar1.Text = si.Name; + mnuChar1.Visible = true; + mnuChar1.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + case 2: + { + mnuChar2.Text = si.Name; + mnuChar2.Visible = true; + mnuChar2.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + case 3: + { + mnuChar3.Text = si.Name; + mnuChar3.Visible = true; + mnuChar3.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + case 4: + { + mnuChar4.Text = si.Name; + mnuChar4.Visible = true; + mnuChar4.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + case 5: + { + mnuChar5.Text = si.Name; + mnuChar5.Visible = true; + mnuChar5.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + case 6: + { + mnuChar6.Text = si.Name; + mnuChar6.Visible = true; + mnuChar6.Checked = ((CurrentProcess!=null) && (CurrentProcess.ProcessID == PI.ProcessID)); + break; + } + } + switch (colProcesses.Count) + { + case 1: + { + mnuChar2.Visible = false; + goto case 2; + } + case 2: + { + mnuChar3.Visible = false; + goto case 3; + } + case 3: + { + mnuChar4.Visible = false; + goto case 4; + } + case 4: + { + mnuChar5.Visible = false; + goto case 5; + } + case 5: + { + mnuChar6.Visible = false; + break; + } + default: + break; + } + + + } + } + #endregion + #region ProccessMap private void ProcessMap(SPAWNINFO si) { @@ -1995,6 +2197,7 @@ try { SPAWNTIMER stold = (SPAWNTIMER)mapCon.mobsTimer[mob.SpawnLoc]; + stold.KillTime = dt.ToLongTimeString() + " " + dt.ToShortDateString(); TimeSpan Diff = new TimeSpan(0, 0, 0, Convert.ToInt32(stold.SpawnTimer)); @@ -3123,6 +3326,73 @@ StartListening(); } + + private void mnuCharRefresh_Click(object sender, System.EventArgs e) + { + colProcesses.Clear(); + mnuChar1.Visible = false; + mnuChar2.Visible = false; + mnuChar3.Visible = false; + mnuChar4.Visible = false; + if (RequestPending) + { + mbGetProcessInfo = true; + } + else + { + RequestPending = true; + byte[] requestdata = new byte[]{0x6}; + SendData(requestdata); + } + + } + + private void SwitchCharacter(int CharacterIndex) + { + if (colProcesses.Count>=CharacterIndex) + { + ProcessInfo PI = (ProcessInfo) colProcesses[CharacterIndex-1]; + + byte[] requestdata = new byte[5]; + requestdata[0] = 0x7; + //PI.hProcess + //BitConverter.ToDouble + byte[] proc = BitConverter.GetBytes(PI.ProcessID); + Array.Copy(proc,0,requestdata,1,4); + SendData(requestdata); + } + } + private void mnuChar1_Click(object sender, System.EventArgs e) + { + SwitchCharacter(1); + } + + private void mnuChar2_Click(object sender, System.EventArgs e) + { + SwitchCharacter(2); + } + + private void mnuChar3_Click(object sender, System.EventArgs e) + { + SwitchCharacter(3); + } + + private void mnuChar4_Click(object sender, System.EventArgs e) + { + SwitchCharacter(4); + } + + private void mnuChar5_Click(object sender, System.EventArgs e) + { + SwitchCharacter(5); + } + + private void mnuChar6_Click(object sender, System.EventArgs e) + { + SwitchCharacter(6); + } + + } } Index: Structures.cs =================================================================== RCS file: /cvsroot/seq/myseq/client/Structures.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Structures.cs 30 Sep 2004 18:53:06 -0000 1.2 +++ Structures.cs 30 Sep 2004 19:12:11 -0000 1.3 @@ -145,6 +145,8 @@ Target = 1, Zone = 4, GroundItem = 5, + GetProcessInfo = 6, + SetProcess = 7, Player = 253 } |