|
أفضل جواب - كتبه mohamedabdo |
#region Sell MOney case 54200: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hi Friend " + client.Player.Name + " Iam CPS Seller and i Sell GOLD For CPS ); dialog.Option("2kk CPS -> 100 kk GOLD", 1); dialog.Option("2.5kk CPS -> 250 kk GOLD", 2); dialog.Option("5kk CPS -> 500 kk GOLD", 3); dialog.Option("8kk CPS -> 800 kk GOLD", 4); dialog.Option("10kk CPS -> 1.5 kkk GOLD", 5); dialog.Option("15kk CPS -> 2 kkk GOLD", 6); dialog.Option("I don't care.", 255); dialog.Send(); break; } case 6: { if (client.Player.ConquerPoints >= 15000000) { client.Player.ConquerPoints -= 15000000; client.Player.Money += 2000000000; } else { dialog.Text("you have 15 kk cps"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } case 5: { if (client.Player.ConquerPoints >= 10000000) { client.Player.ConquerPoints -= 10000000; client.Player.Money += 1500000000; } else { dialog.Text("you have 10kk CPSs"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } case 4: { if (client.Player.ConquerPoints >= 8000000) { client.Player.ConquerPoints -= 8000000; client.Player.Money += 800000000; } else { dialog.Text("you have 8kk CPS"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } case 3: { if (client.Player.ConquerPoints >= 5000000) { client.Player.ConquerPoints -= 5000000; client.Player.Money += 500000000; } else { dialog.Text("you have 5kk CPS"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } case 2: { if (client.Player.ConquerPoints >= 2500000) { client.Player.ConquerPoints -= 2500000; client.Player.Money += 250000000; } else { dialog.Text("you have 2.5kk CPS"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } case 1: { if (client.Player.ConquerPoints >= 2000000) { client.Player.ConquerPoints -= 2000000; client.Player.Money += 100000000; } else { dialog.Text("you have 2kk CPS"); dialog.Option("NO.", 255); dialog.Send(); break; } break; } } break; } #endregion |
Calculate
public static int CalculateCriticalStrike
public static int CalculateBreaktrough
public static int CalculateSkillCStrike
public static int CalculateSkillCStrike(Entity AttackerClient, Entity AttackedClient, int damage)
{
if (AttackerClient.SkillCStrike == AttackedClient.Immunity)
return damage;
if (AttackerClient.SkillCStrike > AttackedClient.Immunity)
{
int Power = (int)(AttackerClient.SkillCStrike - AttackedClient.Immunity);
damage = (int)((double)damage * 1.100);
}
return damage;
}
public static int CalculateCriticalStrike(Entity AttackerClient, Entity AttackedClient, int damage)
{
if (AttackerClient.CriticalStrike == AttackedClient.Immunity)
return damage;
if (AttackerClient.CriticalStrike > AttackedClient.Immunity)
{
damage = (int)((double)damage * 1.100);
}
return damage;
}
public static int CalculateBreaktrough(Entity AttackerClient, Entity AttackedClient, int damage)
{
if ((AttackerClient.Breaktrough == AttackedClient.Counteraction) || AttackerClient.Class >= 130 && AttackerClient.Class <= 135)
return damage;
if (AttackerClient.Breaktrough > AttackedClient.Counteraction)
{
int Power = (int)(AttackerClient.Breaktrough - AttackedClient.Counteraction);
damage = (int)((double)damage * 0.900);
}
return damage;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
عندي مشكله عاوز حل بسرعه في صفحه | TiTo1 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-29 11:01 PM |
اسكلة النينجا الى بتطلع من الارض عالية اوي فى الضرب | lofyCo | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-25 02:17 PM |
لو سمحتوا عاوز كونكت سوكت علشان اللي عندي مبوظ السورس | سمير | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-08 11:57 PM |
طلب التعديل علي الاستريك | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-27 03:03 PM |
عندى مشكلة ف ضربة الفيزيكال بتاعت الوريار | nova | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-07-14 02:40 AM |