|
You last visited: Today at 09:47
Advertisement
super bosses effects
Discussion on super bosses effects within the CO2 Private Server forum part of the Conquer Online 2 category.
04/25/2012, 00:27
|
#1
|
elite*gold: 0
Join Date: Aug 2008
Posts: 143
Received Thanks: 18
|
super bosses hit me but no any effect is appearing
like TeratoDragon doesn't flame
and ThrillingSpook no any falling rocks appearing
SwordMaster the only one works fine
??????????????????????????????/
|
|
|
04/26/2012, 19:13
|
#2
|
elite*gold: 0
Join Date: Jun 2009
Posts: 611
Received Thanks: 195
|
skills =/ ?
|
|
|
04/26/2012, 23:17
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
|
here the codes
try to use it in ur source or recode them by knowing the ids of skills
Quote:
#region SwordMaster
if (attacker.Name == "SwordMaster")
{
uint rands = (uint)Conquer_Online_Server.ServerBase.Kernel.Rand om.Next(1, 8);
switch (rands)
{
case 1:
attacker.MonsterInfo.SpellID = 10500;
break;
case 2:
attacker.MonsterInfo.SpellID = 10501;
break;
case 3:
attacker.MonsterInfo.SpellID = 10503;
break;
case 4:
attacker.MonsterInfo.SpellID = 10504;
break;
case 5:
attacker.MonsterInfo.SpellID = 10505;
break;
case 6:
attacker.MonsterInfo.SpellID = 10506;
break;
case 7:
if (DateTime.Now > attacker.MonsterInfo.LastBloodRestore.AddMinutes(5 ))
{
attacker.MonsterInfo.SpellID = 7016;
}
break;
}
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;//Calculate.Magic(attacker, attacked, attacker.MonsterInfo.SpellID, 0);
damage = (uint)ServerBase.Kernel.Random.Next(4000, 7000);
damage -= attacked.MagicDefence;
suse.Effect1 = attack.Effect1;
if (damage <= 1)
{
damage = 789;
}
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker.UID);
}
else
{
attacked.Hitpoints -= damage;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.Targets.Add(attacked.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
#endregion
#region ThrillingSpook
if (attacker.Name == "ThrillingSpook")
{
uint rands = (uint)Conquer_Online_Server.ServerBase.Kernel.Rand om.Next(1, 5);
switch (rands)
{
case 1:
attacker.MonsterInfo.SpellID = 10360;
break;
case 2:
attacker.MonsterInfo.SpellID = 10361;
break;
case 3:
attacker.MonsterInfo.SpellID = 10362;
break;
case 4:
attacker.MonsterInfo.SpellID = 10363;
break;
case 5:
attacker.MonsterInfo.SpellID = 10364;
break;
}
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = 0;//Calculate.Magic(attacker, attacked, attacker.MonsterInfo.SpellID, 0);
damage = (uint)ServerBase.Kernel.Random.Next(4000, 7000);
damage -= attacked.MagicDefence;
suse.Effect1 = attack.Effect1;
if (damage <= 1)
{
damage = 789;
}
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker.UID);
}
else
{
attacked.Hitpoints -= damage;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.Targets.Add(attacked.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
#endregion
#region SnowBanhe
if (attacker.Name == "SnowBanshee")
{
uint rands = (uint)Conquer_Online_Server.ServerBase.Kernel.Rand om.Next(1, 5);
switch (rands)
{
case 1:
attacker.MonsterInfo.SpellID = 30010;
break;
case 2:
attacker.MonsterInfo.SpellID = 30011;
break;
case 3:
attacker.MonsterInfo.SpellID = 30012;
break;
case 4:
attacker.MonsterInfo.SpellID = 10001;
break;
case 5:
if (DateTime.Now > attacker.MonsterInfo.LastBloodRestore.AddMinutes(5 ))
{
attacker.MonsterInfo.SpellID = 7016;
}
break;
}
if (attacker.MonsterInfo.SpellID == 7016)
{
if ((attacker.Hitpoints + 5000000) < attacker.MaxHitpoints)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
uint damage = 5000000;
attacker.Hitpoints += damage;
suse.Y = attacked.Y;
attacker.MonsterInfo.LastBloodRestore = DateTime.Now;
suse.Targets.Add(attacker.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
else
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
uint damage = attacker.MaxHitpoints - attacker.Hitpoints;
attacker.Hitpoints += damage;
suse.Y = attacked.Y;
attacker.MonsterInfo.LastBloodRestore = DateTime.Now;
suse.Targets.Add(attacker.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
}
else
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Calculate.BossDam(attacker, attacked, ref attack);
suse.Effect1 = attack.Effect1;
if (damage <= 1)
{
damage = 789;
}
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker.UID);
}
else
{
attacked.Hitpoints -= damage;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.Targets.Add(attacked.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
#region TreatoDragon
if (attacker.Name == "TeratoDragon")
{
uint rands = (uint)Conquer_Online_Server.ServerBase.Kernel.Rand om.Next(1, 7);
switch (rands)
{
case 1:
attacker.MonsterInfo.SpellID = 7013;
break;
case 2:
attacker.MonsterInfo.SpellID = 7012;
break;
case 3:
attacker.MonsterInfo.SpellID = 7013;
break;
case 4:
if (DateTime.Now > attacker.MonsterInfo.LastBloodRestore.AddMinutes(5 ))
{
attacker.MonsterInfo.SpellID = 7016;
}
break;
case 5:
attacker.MonsterInfo.SpellID = 7017;
break;
case 6:
attacker.MonsterInfo.SpellID = 7015;
break;
case 7:
attacker.MonsterInfo.SpellID = 7015;
break;
}
// Console.WriteLine("" + attacker.MonsterInfo.SpellID + "");
if (attacker.MonsterInfo.SpellID == 7016)
{
if ((attacker.Hitpoints + 5000000) < attacker.MaxHitpoints)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
uint damage = 5000000;
attacker.Hitpoints += damage;
suse.Y = attacked.Y;
attacker.MonsterInfo.LastBloodRestore = DateTime.Now;
suse.Targets.Add(attacker.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
else
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
uint damage = attacker.MaxHitpoints - attacker.Hitpoints;
attacker.Hitpoints += damage;
suse.Y = attacked.Y;
attacker.MonsterInfo.LastBloodRestore = DateTime.Now;
suse.Targets.Add(attacker.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
}
else
{
SpellUse suse = new SpellUse(true);
attack = new Attack(true);
attack.Effect1 = Attack.AttackEffects1.None;
uint damage = Calculate.BossDam(attacker, attacked, ref attack);
suse.Effect1 = attack.Effect1;
if (damage <= 1)
{
damage = 789;
}
if (attacked.Hitpoints <= damage)
{
attacked.Die(attacker.UID);
}
else
{
attacked.Hitpoints -= damage;
}
if (attacker.Companion)
attacker.Owner.IncreaseExperience(Math.Min(damage, attacked.Hitpoints), true);
suse.Attacker = attacker.UID;
suse.SpellID = attacker.MonsterInfo.SpellID;
suse.X = attacked.X;
suse.Y = attacked.Y;
suse.Targets.Add(attacked.UID, damage);
attacked.Owner.SendScreen(suse, true);
}
}
#endregion
}
|
|
|
|
04/27/2012, 07:20
|
#4
|
elite*gold: 0
Join Date: Aug 2008
Posts: 143
Received Thanks: 18
|
#done thanks
|
|
|
Similar Threads
|
lvl 255 gear super effects?
12/30/2010 - EO PServer Hosting - 2 Replies
i have all the lvl 255 gear in my DB and Client all works but the 255 warrior sword it shows the sword etc it just doesnt show the super effect any ideas on how to fix or were to fix?
|
Super gem and Lucky time aura effects
08/01/2008 - CO2 Weapon, Armor, Effects & Interface edits - 9 Replies
Well... I'm not a fan of downloading files regardless of what scans say. This lets you play without having to see the giant yellow lucky time aura or super gem effects, but it isn't as drastic as removing all the effects so you can't see anything. (You can tg with less fps issues, and go straight from tg to jail without worrying about not being able to see anything.)
There are tools that do things like this but I would rather just post the file and also show an easy method on how to do it so...
|
All times are GMT +2. The time now is 09:47.
|
|