|
المشاركات 50 |
+التقييم 0.03 |
تاريخ التسجيل Jul 2019 |
الاقامة زعـلأان منـكك !! |
نظام التشغيل مبـرشـم ♥ |
رقم العضوية 448 |
static void AcceptTrade(Trade trade, Client.GameState client)
if (_client.Inventory.ContainsUID(item.UID))
Program.AddTradeLog(client.Trade, client.Entity.Name, _client.Trade, _client.Entity.Name, client.Account.IP, _client.Account.IP);
AddGMcommand
public static void AddTradeLog( KhaledMohamed.Game.ConquerStructures.Trade first, String firstN, KhaledMohamed.Game.ConquerStructures.Trade second, String secondN, String firstip, String secondip)
{
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month,
Path = "gmlogs\\tradelogs\\",
NewPath = System.IO.Path.Combine(Path, folderN);
if (!File.Exists(NewPath + folderN))
{
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN));
}
if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
fs.Close();
}
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true))
{
file.WriteLine("************************************************************************************");
file.WriteLine("**************************Gived***********************");
file.WriteLine("First Person TradeLog ( {0} ) -", firstN);
file.WriteLine("First Person TradeLog and his ip ( {0} ) -", firstip);
file.WriteLine("Gold Traded: " + first.Money);
file.WriteLine("Conquer Points Traded: " + first.ConquerPoints);
for (int i = 0; i < first.Items.Count; i++)
{
file.WriteLine("------------------------------------------------------------------------------------");
file.WriteLine("Item : " + first.Items[i].ToLog());
if (first.Items[i].item_id / 1000 == 202)
file.WriteLine("Tower ");
if (first.Items[i].item_id / 1000 == 201)
file.WriteLine("Fan ");
if (first.Items[i].item_id / 1000 == 500)
file.WriteLine("Bow ");
if (first.Items[i].item_id / 1000 == 900)
file.WriteLine("Shield ");
if (first.Items[i].item_id / 1000 == 620)
file.WriteLine("EpicBackSword ");
if (first.Items[i].item_id / 1000 == 421)
file.WriteLine("BackSword ");
if (first.Items[i].item_id / 1000 == 410)
file.WriteLine("Blade ");
if (first.Items[i].item_id / 1000 == 204)
file.WriteLine("Wing ");
if (first.Items[i].item_id / 1000 == 420)
file.WriteLine("Sword ");
if (first.Items[i].item_id / 1000 == 601)
file.WriteLine("Katana-Ninja ");
if (first.Items[i].item_id / 1000 == 610)
file.WriteLine("Monk-Beeds ");
if (first.Items[i].item_id / 1000 == 203)
file.WriteLine("Crop ");
if (first.Items[i].item_id / 1000 == 181 || first.Items[i].item_id / 1000 == 182)
file.WriteLine("Germant ");
if (first.Items[i].item_id / 1000 == 2100)
file.WriteLine("Cup ");
if (first.Items[i].item_id / 1000 == 150)
file.WriteLine("Ring ");
if (first.Items[i].item_id / 1000 == 160)
file.WriteLine("Boot");
if (first.Items[i].item_id / 1000 == 200)
file.WriteLine("Mount ");
if (first.Items[i].item_id / 1000 == 120)
file.WriteLine("Necklace ");
if (first.Items[i].item_id / 1000 == 152)
file.WriteLine("Bracelet ");
if (first.Items[i].item_id / 1000 == 350 || first.Items[i].item_id / 1000 == 360 || first.Items[i].item_id / 1000 == 370 || first.Items[i].item_id / 1000 == 380)
file.WriteLine("Accessory ");
if (first.Items[i].item_id / 1000 == 152)
file.WriteLine("Bag ");
if (first.Items[i].item_id / 1000 == 622)
file.WriteLine("EpicMonk ");
if (first.Items[i].item_id / 1000 == 616)
file.WriteLine("EpicNinja ");
if (first.Items[i].item_id / 1000 == 619)
file.WriteLine("Hossu ");
if (first.Items[i].item_id / 1000 == 136)
file.WriteLine("Armor-Monk ");
if (first.Items[i].item_id / 1000 == 138)
file.WriteLine("Armor-Dragonwarrior ");
if (first.Items[i].item_id / 1000 == 139)
file.WriteLine("Armor-Pirate ");
if (first.Items[i].item_id / 1000 == 141)
file.WriteLine("Hat-Warrior ");
if (first.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (first.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
if (first.Items[i].item_id / 1000 == 144)
file.WriteLine("Hat-Pirate ");
if (first.Items[i].item_id / 1000 == 145)
file.WriteLine("Hat-Pirate ");
if (first.Items[i].item_id / 1000 == 148)
file.WriteLine("Hat-DragonWarrior ");
if (first.Items[i].item_id / 1000 == 170)
file.WriteLine("Hat-WindWalker ");
if (first.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (first.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
file.WriteLine("------------------------------------------------------------------------------------");
}
file.WriteLine("**************************Gived***********************");
file.WriteLine("Second Person TradeLog ( {0} ) -", secondN);
file.WriteLine("Second Person TradeLog and his ip ( {0} ) -", secondip);
file.WriteLine("Gold Traded: " + second.Money);
file.WriteLine("Conquer Points Traded: " + second.ConquerPoints);
for (int i = 0; i < second.Items.Count; i++)
{
file.WriteLine("------------------------------------------------------------------------------------");
file.WriteLine("Item : " + second.Items[i].ToLog());
if (second.Items[i].item_id / 1000 == 202)
file.WriteLine("Tower ");
if (second.Items[i].item_id / 1000 == 201)
file.WriteLine("Fan ");
if (second.Items[i].item_id / 1000 == 500)
file.WriteLine("Bow ");
if (second.Items[i].item_id / 1000 == 900)
file.WriteLine("Shield ");
if (second.Items[i].item_id / 1000 == 620)
file.WriteLine("EpicBackSword ");
if (second.Items[i].item_id / 1000 == 421)
file.WriteLine("BackSword ");
if (second.Items[i].item_id / 1000 == 410)
file.WriteLine("Blade ");
if (second.Items[i].item_id / 1000 == 204)
file.WriteLine("Wing ");
if (second.Items[i].item_id / 1000 == 420)
file.WriteLine("Sword ");
if (second.Items[i].item_id / 1000 == 601)
file.WriteLine("Katana-Ninja ");
if (second.Items[i].item_id / 1000 == 610)
file.WriteLine("Monk-Beeds ");
if (second.Items[i].item_id / 1000 == 203)
file.WriteLine("Crop ");
if (second.Items[i].item_id / 1000 == 181 || second.Items[i].item_id / 1000 == 182)
file.WriteLine("Germant ");
if (second.Items[i].item_id / 1000 == 2100)
file.WriteLine("Cup ");
if (second.Items[i].item_id / 1000 == 150)
file.WriteLine("Ring ");
if (second.Items[i].item_id / 1000 == 160)
file.WriteLine("Boot");
if (second.Items[i].item_id / 1000 == 200)
file.WriteLine("Mount ");
if (second.Items[i].item_id / 1000 == 120)
file.WriteLine("Necklace ");
if (second.Items[i].item_id / 1000 == 152)
file.WriteLine("Bracelet ");
if (second.Items[i].item_id / 1000 == 350 || second.Items[i].item_id / 1000 == 360 || second.Items[i].item_id / 1000 == 370 || second.Items[i].item_id / 1000 == 380)
file.WriteLine("Accessory ");
if (second.Items[i].item_id / 1000 == 152)
file.WriteLine("Bag ");
if (second.Items[i].item_id / 1000 == 622)
file.WriteLine("EpicMonk ");
if (second.Items[i].item_id / 1000 == 616)
file.WriteLine("EpicNinja ");
if (second.Items[i].item_id / 1000 == 619)
file.WriteLine("Hossu ");
if (second.Items[i].item_id / 1000 == 136)
file.WriteLine("Armor-Monk ");
if (second.Items[i].item_id / 1000 == 138)
file.WriteLine("Armor-Dragonwarrior ");
if (second.Items[i].item_id / 1000 == 139)
file.WriteLine("Armor-Pirate ");
if (second.Items[i].item_id / 1000 == 141)
file.WriteLine("Hat-Warrior ");
if (second.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (second.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
if (second.Items[i].item_id / 1000 == 144)
file.WriteLine("Hat-Pirate ");
if (second.Items[i].item_id / 1000 == 145)
file.WriteLine("Hat-Pirate ");
if (second.Items[i].item_id / 1000 == 148)
file.WriteLine("Hat-DragonWarrior ");
if (second.Items[i].item_id / 1000 == 170)
file.WriteLine("Hat-WindWalker ");
if (second.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (second.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
file.WriteLine("------------------------------------------------------------------------------------");
}
file.WriteLine("************************************************************************************");
}
}
Trade.cs
static void AcceptTrade(
_client.Entity.ConquerPoints += client.Trade.ConquerPoints;
Program.AddTradeLog(client.Trade, client.Entity.Name, _client.Trade, _client.Entity.Name, client.Account.IP, _client.Account.IP);
static void AcceptTrade(Trade trade, Client.GameState client)
if (_client.Inventory.ContainsUID(item.UID))
Program.AddTradeLog(client.Trade, client.Entity.Name, _client.Trade, _client.Entity.Name, client.Account.IP, _client.Account.IP);
AddGMcommand
public static void AddTradeLog( KhaledMohamed.Game.ConquerStructures.Trade first, String firstN, KhaledMohamed.Game.ConquerStructures.Trade second, String secondN, String firstip, String secondip)
{
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month,
Path = "gmlogs\\tradelogs\\",
NewPath = System.IO.Path.Combine(Path, folderN);
if (!File.Exists(NewPath + folderN))
{
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN));
}
if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
fs.Close();
}
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true))
{
file.WriteLine("************************************************************************************");
file.WriteLine("**************************Gived***********************");
file.WriteLine("First Person TradeLog ( {0} ) -", firstN);
file.WriteLine("First Person TradeLog and his ip ( {0} ) -", firstip);
file.WriteLine("Gold Traded: " + first.Money);
file.WriteLine("Conquer Points Traded: " + first.ConquerPoints);
for (int i = 0; i < first.Items.Count; i++)
{
file.WriteLine("------------------------------------------------------------------------------------");
file.WriteLine("Item : " + first.Items[i].ToLog());
if (first.Items[i].item_id / 1000 == 202)
file.WriteLine("Tower ");
if (first.Items[i].item_id / 1000 == 201)
file.WriteLine("Fan ");
if (first.Items[i].item_id / 1000 == 500)
file.WriteLine("Bow ");
if (first.Items[i].item_id / 1000 == 900)
file.WriteLine("Shield ");
if (first.Items[i].item_id / 1000 == 620)
file.WriteLine("EpicBackSword ");
if (first.Items[i].item_id / 1000 == 421)
file.WriteLine("BackSword ");
if (first.Items[i].item_id / 1000 == 410)
file.WriteLine("Blade ");
if (first.Items[i].item_id / 1000 == 204)
file.WriteLine("Wing ");
if (first.Items[i].item_id / 1000 == 420)
file.WriteLine("Sword ");
if (first.Items[i].item_id / 1000 == 601)
file.WriteLine("Katana-Ninja ");
if (first.Items[i].item_id / 1000 == 610)
file.WriteLine("Monk-Beeds ");
if (first.Items[i].item_id / 1000 == 203)
file.WriteLine("Crop ");
if (first.Items[i].item_id / 1000 == 181 || first.Items[i].item_id / 1000 == 182)
file.WriteLine("Germant ");
if (first.Items[i].item_id / 1000 == 2100)
file.WriteLine("Cup ");
if (first.Items[i].item_id / 1000 == 150)
file.WriteLine("Ring ");
if (first.Items[i].item_id / 1000 == 160)
file.WriteLine("Boot");
if (first.Items[i].item_id / 1000 == 200)
file.WriteLine("Mount ");
if (first.Items[i].item_id / 1000 == 120)
file.WriteLine("Necklace ");
if (first.Items[i].item_id / 1000 == 152)
file.WriteLine("Bracelet ");
if (first.Items[i].item_id / 1000 == 350 || first.Items[i].item_id / 1000 == 360 || first.Items[i].item_id / 1000 == 370 || first.Items[i].item_id / 1000 == 380)
file.WriteLine("Accessory ");
if (first.Items[i].item_id / 1000 == 152)
file.WriteLine("Bag ");
if (first.Items[i].item_id / 1000 == 622)
file.WriteLine("EpicMonk ");
if (first.Items[i].item_id / 1000 == 616)
file.WriteLine("EpicNinja ");
if (first.Items[i].item_id / 1000 == 619)
file.WriteLine("Hossu ");
if (first.Items[i].item_id / 1000 == 136)
file.WriteLine("Armor-Monk ");
if (first.Items[i].item_id / 1000 == 138)
file.WriteLine("Armor-Dragonwarrior ");
if (first.Items[i].item_id / 1000 == 139)
file.WriteLine("Armor-Pirate ");
if (first.Items[i].item_id / 1000 == 141)
file.WriteLine("Hat-Warrior ");
if (first.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (first.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
if (first.Items[i].item_id / 1000 == 144)
file.WriteLine("Hat-Pirate ");
if (first.Items[i].item_id / 1000 == 145)
file.WriteLine("Hat-Pirate ");
if (first.Items[i].item_id / 1000 == 148)
file.WriteLine("Hat-DragonWarrior ");
if (first.Items[i].item_id / 1000 == 170)
file.WriteLine("Hat-WindWalker ");
if (first.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (first.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
file.WriteLine("------------------------------------------------------------------------------------");
}
file.WriteLine("**************************Gived***********************");
file.WriteLine("Second Person TradeLog ( {0} ) -", secondN);
file.WriteLine("Second Person TradeLog and his ip ( {0} ) -", secondip);
file.WriteLine("Gold Traded: " + second.Money);
file.WriteLine("Conquer Points Traded: " + second.ConquerPoints);
for (int i = 0; i < second.Items.Count; i++)
{
file.WriteLine("------------------------------------------------------------------------------------");
file.WriteLine("Item : " + second.Items[i].ToLog());
if (second.Items[i].item_id / 1000 == 202)
file.WriteLine("Tower ");
if (second.Items[i].item_id / 1000 == 201)
file.WriteLine("Fan ");
if (second.Items[i].item_id / 1000 == 500)
file.WriteLine("Bow ");
if (second.Items[i].item_id / 1000 == 900)
file.WriteLine("Shield ");
if (second.Items[i].item_id / 1000 == 620)
file.WriteLine("EpicBackSword ");
if (second.Items[i].item_id / 1000 == 421)
file.WriteLine("BackSword ");
if (second.Items[i].item_id / 1000 == 410)
file.WriteLine("Blade ");
if (second.Items[i].item_id / 1000 == 204)
file.WriteLine("Wing ");
if (second.Items[i].item_id / 1000 == 420)
file.WriteLine("Sword ");
if (second.Items[i].item_id / 1000 == 601)
file.WriteLine("Katana-Ninja ");
if (second.Items[i].item_id / 1000 == 610)
file.WriteLine("Monk-Beeds ");
if (second.Items[i].item_id / 1000 == 203)
file.WriteLine("Crop ");
if (second.Items[i].item_id / 1000 == 181 || second.Items[i].item_id / 1000 == 182)
file.WriteLine("Germant ");
if (second.Items[i].item_id / 1000 == 2100)
file.WriteLine("Cup ");
if (second.Items[i].item_id / 1000 == 150)
file.WriteLine("Ring ");
if (second.Items[i].item_id / 1000 == 160)
file.WriteLine("Boot");
if (second.Items[i].item_id / 1000 == 200)
file.WriteLine("Mount ");
if (second.Items[i].item_id / 1000 == 120)
file.WriteLine("Necklace ");
if (second.Items[i].item_id / 1000 == 152)
file.WriteLine("Bracelet ");
if (second.Items[i].item_id / 1000 == 350 || second.Items[i].item_id / 1000 == 360 || second.Items[i].item_id / 1000 == 370 || second.Items[i].item_id / 1000 == 380)
file.WriteLine("Accessory ");
if (second.Items[i].item_id / 1000 == 152)
file.WriteLine("Bag ");
if (second.Items[i].item_id / 1000 == 622)
file.WriteLine("EpicMonk ");
if (second.Items[i].item_id / 1000 == 616)
file.WriteLine("EpicNinja ");
if (second.Items[i].item_id / 1000 == 619)
file.WriteLine("Hossu ");
if (second.Items[i].item_id / 1000 == 136)
file.WriteLine("Armor-Monk ");
if (second.Items[i].item_id / 1000 == 138)
file.WriteLine("Armor-Dragonwarrior ");
if (second.Items[i].item_id / 1000 == 139)
file.WriteLine("Armor-Pirate ");
if (second.Items[i].item_id / 1000 == 141)
file.WriteLine("Hat-Warrior ");
if (second.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (second.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
if (second.Items[i].item_id / 1000 == 144)
file.WriteLine("Hat-Pirate ");
if (second.Items[i].item_id / 1000 == 145)
file.WriteLine("Hat-Pirate ");
if (second.Items[i].item_id / 1000 == 148)
file.WriteLine("Hat-DragonWarrior ");
if (second.Items[i].item_id / 1000 == 170)
file.WriteLine("Hat-WindWalker ");
if (second.Items[i].item_id / 1000 == 142)
file.WriteLine("Hat-Archer ");
if (second.Items[i].item_id / 1000 == 143)
file.WriteLine("Hat-Monk ");
file.WriteLine("------------------------------------------------------------------------------------");
}
file.WriteLine("************************************************************************************");
}
}
Trade.cs
static void AcceptTrade(
_client.Entity.ConquerPoints += client.Trade.ConquerPoints;
Program.AddTradeLog(client.Trade, client.Entity.Name, _client.Trade, _client.Entity.Name, client.Account.IP, _client.Account.IP);
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ملف سيستم اتاك فكسد | shkaoa | تطوير سيرفرات كونكر | 83 | اليوم 12:32 AM |
طلب سيستم | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 14 | 2023-10-12 04:34 PM |
لو سمحت محتاج مساعدة انا محتاج اتعلم ازاى اعدل على سورسات كونكر وافكسدها | fersony | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-09 01:46 PM |
محتاج سيستم الورود | ابو مروان | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-10-04 10:45 AM |
محتاج سيستم الشي والجنج لسورس mr banda | kotb | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-07-25 03:19 AM |