|
#region LuckyBox
case 925:
case 926:
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(711504, 3))
{
if (client.LotteryEntries < 500)
{
client.Inventory.Remove(711504, 3)
int rand = Kernel.Random.Next(MrHassan.Database.LotteryTable.LotteryItems.Count);
var item = MrHassan.Database.LotteryTable.LotteryItems[rand];
var tobesent = new newLottery(true);
tobesent.boxid = 3;//npcRequest.NpcID;// 0x10103;
tobesent.ItemID = item.ID;
client.Entity.LOTOITEM = item;
if (item.Sockets > 0)
tobesent.SocketGem1 = 255;
if (item.Sockets > 1)
tobesent.SocketGem2 = 255;
client.Entity.AddJade = 0;
tobesent.JadesAdded = client.Entity.AddJade;
tobesent.plus = item.Plus;
client.LotteryEntries += 1;
client.Send(tobesent);
MrHassan.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " won " + item.Name + " in lottery.", System.Drawing.Color.Black, Message.Talk), MrHassan.Program.Values);
}
else
{
dialog.Text("Sorry, your LotteryEntries has finished come tomorrow.");
dialog.Option("Okay", 255);
}
}
else
{
dialog.Text("You need to pay 50 cps to draw from the lottery in the lottery Center.");
dialog.Option("Okay", 255);
}
break;
}
}
break;
}
#endregion
public static void Refinary
if (magic)
{
if (attacker.SkillCStrike > 0)
{
if (attacker.SkillCStrike > attacked.Immunity)
{
double Power = (double)(attacker.SkillCStrike - attacked.Immunity);
Power = (double)(Power / 100);
if (MyMath.Success(Power))
{
Damage += Damage * 50 / 100;
if (isburntforst)
Damage -= Damage * 1 / 5;
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
}
else
Immu(attacked);
}
else
Immu(attacked);
}
}
public static void Refinary
if (magic)
{
if (attacker.SkillCStrike > 0)
{
if (attacker.SkillCStrike > attacked.Immunity)
{
double Power = (double)(attacker.SkillCStrike - attacked.Immunity);
Power = (double)(Power / 100);
if (MyMath.Success(Power))
{
Damage += Damage * 50 / 100;
if (isburntforst)
Damage -= Damage * 1 / 5;
Packet.Effect1 |= Attack.AttackEffects1.CriticalStrike;
}
else
Immu(attacked);
}
else
Immu(attacked);
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل اي مشكله تخص سورس خالد محمد v4 | SourceDanger | تطوير سيرفرات كونكر | 30 | 2024-10-26 06:30 AM |
سورس خالد محمد | SourceDanger | سورسات كونكر | 129 | 2024-10-26 02:16 AM |
طلب صغير فى سورس خالد محمد | essamarpi1 | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-05-09 02:38 PM |
شرح التعديل في سورس خالد محمد 6 | ابو حمزه9 | تطوير سيرفرات كونكر | 4 | 2020-03-05 12:59 PM |
سورس خالد محمد | bebo100 | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-07-26 11:36 PM |