Quote:
World.Action(this, Packets.ItemPacket(EntityID, 255, 26).Get);
Quote:
I feel so darn` to found out this late... in Character.cs there is a pre-made void/method called SendScreen() which has a code that would send packets to any nearby players from the executor player.
With this we may able now to use SendScreen instead of using AddSend method to any Effect code that we want... example in my previous CoolEffect UPDATE I used to have this code:
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NewestCOServer.PacketHandling { class CoolEffect { public static void ActiveCool(Main.GameClient MyClient) { byte counter = 0; for (byte i = 1; i < 9; i++) { if (i == 7) i++; Game.Item I = MyClient.MyChar.Equips.Get(i); if (I.ID != 0) { Game.ItemIDManipulation Q = new CoPinoy.Game.ItemIDManipulation(I.ID); if (Q.Quality == Game.Item.ItemQuality.Super) counter += 1; } } if (MyClient.MyChar.Job >= 100) if (counter == 6) counter = 7; if (MyClient.MyChar.Job >= 40 && MyClient.MyChar.Job <= 45) if (counter == 6) { Game.Item I = MyClient.MyChar.Equips.Get(5); I.ID = MyClient.MyChar.Equips.LeftHand.ID; if (I.ID == 0) counter = 7; } [B]new Thread(delegate() { ... }).Start(); [/B] } } }
this thread is not for CoolEffect ... i only added it as an example...Quote:
I can't understand why would you need a new thread to do this thing....
with this thread I'm not suggesting nor forcing anyone to change there existing code. I only intend to inform you guys that there is an existing code for it.Quote:
Why change it?