|
خش علي
كود:
public class booth
ابحث عن
كود:
public uint Garment
حط تحته ده
كود:
public uint Money;
بعد كدا ابحث عن
كود:
else if (split[0] == "BotMessage")
{
booth.BotMessage = split[1];
}
حط تحتيه ده
كود:
else if (split[0] == "Money")
{
booth.Money = uint.Parse(split[1]);
}
بعد كدا تبحث عن
كود:
item.Cost_Type = Game.ConquerStructures.BoothItem.CostType.ConquerPoints;
هتشيلو وتحط مكانو ده
كود:
if (bo.Money == 1)
{
item.Cost_Type = Game.ConquerStructures.BoothItem.CostType.Silvers;
}
else
{
item.Cost_Type = Game.ConquerStructures.BoothItem.CostType.ConquerPoints;
}
كدا الاضافه خلصت بالنسبه للسي شارب كل الي عليك الشوب الي عايز يشتغل ب money روح للتكست بتاع booths وانزل لحد الشوب وضيف فيه السطر ده تحت سطر y
كود:
Money=1
case 925:
case 926:
case 927:
case 928:
case 929:
case 930:
case 931:
case 932:
case 933:
case 934:
case 935:
case 936:
case 937:
case 938:
case 939:
case 940:
case 942:
case 943:
case 944:
case 945:
if (client.Inventory.Contains(729691, 1))
{
client.Inventory.Remove(729691, 1);
729691
#region Lottery
case 700:
{
switch (client.ActiveNpc)
{
#region LuckyBox
case 925:
case 926:
case 927:
case 928:
case 929:
case 930:
case 931:
case 932:
case 933:
case 934:
case 935:
case 936:
case 937:
case 938:
case 939:
case 940:
case 942:
case 943:
case 944:
case 945:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Inventory.Contains(729691, 1))
{
client.Inventory.Remove(729691, 1);
if (client.LotteryEntries < 255)
{
int rand = Kernel.Random.Next(Fighter.Database.LotteryTable.LotteryItems.Count);
var item = Fighter.Database.LotteryTable.LotteryItems[rand];
var tobesent = new newLottery(true);
tobesent.boxid = 3;//npcRequest.NpcID;// 0x10103;
tobesent.ItemID = item.ID;
client.Player.LOTOITEM = item;
if (item.Sockets > 0)
tobesent.SocketGem1 = 255;
if (item.Sockets > 1)
tobesent.SocketGem2 = 255;
client.Player.AddJade = 0;
tobesent.JadesAdded = client.Player.AddJade;
tobesent.plus = item.Plus;
client.LotteryEntries += 1;
client.Send(tobesent);
}
else
{
dialog.Text("Sorry, your LotteryEntries has finished come tomorrow.");
dialog.Option("Okay", 255);
}
}
else
{
dialog.Text("Sorry You need NewLottery to draw from the lottery in the lottery Center.");
dialog.Option("Okay", 255);
}
break;
}
}
break;
}
#endregion
#region CollecterZhao
case 3952:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello mate, i can help you to change Amulets and LifeFruitBasket for 10 cps what you have?.");
dialog.Option("LifeFruitBasket", 1);
dialog.Option("PenitenceAmulet.", 2);
dialog.Option("DisguiseAmulet.", 3);
dialog.Option("Nothing thank you.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(723725, 1))
{
client.Inventory.Remove(723725, 1);
client.Player.ConquerPoints += 10;
}
else
{
dialog.Text("Sorry you dont Have Any LifeFruitBaskets.");
dialog.Option("Alright Thanks", 255);
dialog.Send();
}
break;
}
case 2:
{
if (client.Inventory.Contains(723727, 1))
{
client.Inventory.Remove(723727, 1);
client.Player.ConquerPoints += 10;
}
else
{
dialog.Text("Sorry you dont Have Any PenitenceAmulet.");
dialog.Option("Alright Thanks", 255);
dialog.Send();
}
break;
}
case 3:
{
if (client.Inventory.Contains(723724, 1))
{
client.Inventory.Remove(723724, 1);
client.Player.ConquerPoints += 10;
}
else
{
dialog.Text("Sorry you dont Have Any DisguiseAmulet.");
dialog.Option("Alright Thanks.", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
#region Clear
case 59522:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello my bro . I can clear your items for 10 Cps");
dialog.Option("Okay.Clear", 51);
dialog.Option("Just passing by.", 255);
dialog.Avatar(80);
dialog.Send();
break;
}
case 51:
{
dialog.Text("Are you sure ?");
dialog.Option("Yes,Clear", 1);
dialog.Send();
break;
}
case 1:
{
{
if (client.Player.ConquerPoints >= 10)
{
client.Player.ConquerPoints -= 10;
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
client.Inventory.Objects.CopyTo(inventory, 0);
foreach (ConquerItem item in inventory)
{
client.Inventory.Remove(item, Fighter.Game.Enums.ItemUse.Remove);
}
}
else
{
dialog.Text("Sorry you don't have 10 Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
}
break;
}
}
break;
}
#endregion
}
break;
}
#endregion