well am working on Impulse Based Sources and have just Made Simple Method to send player message and items Too ( gears & Normal Items)
Message Methods
Code:
public void SendMessageBox(string Message) // sending player MessageBox Message { Send(new NpcReply(6, Message) { OptionID = 87 }); } public void SendMessage(string Message, byte Type) // this is used to send Message Depending on Message type { Send(new Message(Message, Color.DimGray, Type)); }
Code:
public void SendItem(uint ID, byte Count, byte StackSize) // Sending A player just normal Items As Dbs, Moonbox ..etc { Send(new ConquerItem(true) { ID = ID, StackSize = StackSize }); Inventory.Add(ID, 0, Count); } public void SendGear(uint ID, byte Plus, byte Socketone, byte SocketTwo, byte Bless, byte Enchant) // Sending gears to player { var ItemInformation = Database.ConquerItemInformation.BaseInformations[ID]; Send(new ConquerItem(true) { ID = ID, Plus = Plus, SocketOne = (Enums.Gem)Socketone, SocketTwo = (Enums.Gem)SocketTwo, Bless = Bless, Enchant = Enchant, MaximDurability = ItemInformation.Durability, Durability = ItemInformation.Durability }); }
regards
Shadowman123