|
|
المشاركات 2,515 |
+التقييم 1.28 |
تاريخ التسجيل Jul 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 358 |
case Revive:
case Revive:
{
if (client.Entity.ContainFlag(MsgUpdate.Flags.SoulShackle))
return;
if (client.InTeamQualifier())
return;
client.Entity.OnDeath = null;
bool ReviveHere = Info.dwParam == 1;
bool Rev = Info.dwParam == 0;
if (client.Entity.StraightLife && !ReviveHere && !Rev)
{
client.Entity.BringToLife();
client.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y, false);
var spell = Database.SpellTable.GetSpell(1095, 4);
client.Entity.AddFlag(MsgUpdate.Flags.Stigma, (int)spell.Duration, true);
var spell1 = Database.SpellTable.GetSpell(1090, 4);
client.Entity.AddFlag(MsgUpdate.Flags.MagicShield, (int)spell1.Duration, true);
client.Entity.StraightLife = false;
}
else
{
if (Time32.Now >= client.Entity.DeathStamp.AddSeconds(18))
{
//
client.Entity.Action = Rayzo.Game.Enums.ConquerAction.None;
client.ReviveStamp = Time32.Now;
client.Attackable = false;
client.Entity.TransformationID = 0;
client.Entity.RemoveFlag(MsgUpdate.Flags.Dead);
client.Entity.RemoveFlag(MsgUpdate.Flags.Ghost);
client.Entity.Hitpoints = client.Entity.MaxHitpoints;
#region quike mount rune
//riderrunes
foreach (var item in client.Entity.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4031401 && item.ID <= 4031409)
{
if (client != null)
{
if (client.Entity.Owner.Entity.EntityFlag == EntityFlag.Entity)
{
if (client.InQualifier())
{
return;
}
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
if (Kernel.Rate((Level / 10) + 2))
client.Entity.AddFlag(MsgUpdate.Flags.Ride, Role.StatusFlagsBigVector32.PermanentFlag, true, 1);
}
}
}
}
#endregion
public void BringToLife(bool isArena = false)
public void BringToLife()
ClearFlags();
#region quike mount rune
//riderrunes
foreach (var item in Owner.Entity.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4031401 && item.ID <= 4031409)
{
if (Owner != null)
{
if (Owner.Entity.Owner.Entity.EntityFlag == EntityFlag.Entity)
{
if (Owner.InQualifier())
{
return;
}
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
if (Kernel.Rate((Level / 10) + 2))
Owner.Entity.AddFlag(MsgUpdate.Flags.Ride, Role.StatusFlagsBigVector32.PermanentFlag, true, 1);
}
}
}
}
#endregion
public static void OnMonster(
Physical.cs
if (monster.Boss == 0 || monster.Boss == 1)
{
if (player.ContainFlag(MsgUpdate.Flags.Superman))
SpellObj.Damage *= 10;
}
#region bosskiller
//riderrune
foreach (var item in player.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4030901 && item.ID <= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
SpellObj.Damage += (uint)(SpellObj.Damage * ((Level / 10) + 2));
}
}
}
}
}
#endregion
SpellObj.Damage += player.Owner.Entity.MagicDamageIncrease;
#region bosskiller
//riderrune
foreach (var item in player.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4030901 && item.ID <= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
SpellObj.Damage += (uint)(SpellObj.Damage * ((Level / 10) + 2));
}
}
}
}
}
#endregion
if (monster.Boss == 0 || monster.Boss == 1)
{
if (player.ContainFlag(MsgUpdate.Flags.Superman))
SpellObj.Damage *= 5;
}
#region bosskiller
//riderrune
foreach (var item in player.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4030901 && item.ID <= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
SpellObj.Damage += (uint)(SpellObj.Damage * ((Level / 10) + 2));
}
}
}
}
}
#endregion
public static void Onnpcs(
Physical.cs
SpellObj.Damage = Calculate.Base.CalculateExtraAttack(SpellObj.Damage, player.Owner.Entity.PhysicalDamageIncrease, 0);
#region breakdown
//rider runes
foreach (var item in player.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
if (item.ID >= 4031501 && item.ID >= 4031509)
{
if (target != null)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
SpellObj.Damage += (uint)(SpellObj.Damage * ((Level / 10) + 2));
}
}
}
#endregion
private void loadItemStats(ConquerItem item)
Database.ConquerItemInformation dbi = new Database.ConquerItemInformation(item.ID, item.Plus);
if (dbi != null)
{
#region Sharpness rune
//riderrunes
foreach (var itemo in Entity.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
uint hmm = 0;
if (item.ID >= 4032701 && item.ID <= 4032709)
{
if (Entity != null)
{
if (Entity.Owner.Entity.EntityFlag == EntityFlag.Entity)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
hmm=Level+100;
ConquerItem hamtaro;
if (Entity.Owner.Equipment.TryGetItem(ConquerItem.RightWeapon, out hamtaro))
{
if (!PacketHandler.IsTwoHand(hamtaro.ID))
{
Entity.Owner.Entity.BaseMaxAttack = Entity.Owner.Entity.BaseMaxAttack * hmm / 100;
Entity.Owner.Entity.BaseMinAttack = Entity.Owner.Entity.BaseMinAttack * hmm / 100;
}
}
}
}
}
}
#endregion
private void loadItemStats(ConquerItem item)
Database.ConquerItemInformation dbi = new Database.ConquerItemInformation(item.ID, item.Plus);
if (dbi != null)
{
#region WideSwipe rune
//riderrunes
foreach (var itemo in Entity.RuneItem.Values.Where(x => x.Position >= 101 && x.Position <= 105))
{
uint Level = 0;
uint hmm = 0;
if (item.ID >= 4032501 && item.ID <= 4032509)
{
if (Entity != null)
{
if (Entity.Owner.Entity.EntityFlag == EntityFlag.Entity)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
hmm = Level + 100;
ConquerItem hamtaro;
ConquerItem hamtaroleft;
if (Entity.Owner.Equipment.TryGetItem(ConquerItem.RightWeapon, out hamtaro))
{
if (PacketHandler.IsTwoHand(hamtaro.ID))
{
Entity.Owner.Entity.BaseMaxAttack = Entity.Owner.Entity.BaseMaxAttack * hmm / 100;
Entity.Owner.Entity.BaseMinAttack = Entity.Owner.Entity.BaseMinAttack * hmm / 100;
}
}
if (Entity.Owner.Equipment.TryGetItem(ConquerItem.LeftWeapon, out hamtaroleft))
{
if (PacketHandler.IsTwoHand(hamtaroleft.ID))
{
Entity.Owner.Entity.BaseMaxAttack = Entity.Owner.Entity.BaseMaxAttack * hmm / 100;
Entity.Owner.Entity.BaseMinAttack = Entity.Owner.Entity.BaseMinAttack * hmm / 100;
}
}
}
}
}
}
#endregion
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Rayzo V2 EpicPirate Runes ThunderStrike [Beta] نسخه تجريبيه | Tefa | سورسات كونكر | 235 | 2024-11-20 03:54 PM |
Runes 2 | Tefa | تطوير سيرفرات كونكر | 19 | 2020-04-30 07:49 AM |
npc يجيب Runes | Hassan Emprator | تطوير سيرفرات كونكر | 10 | 2019-10-24 12:49 AM |