|
You last visited: Today at 10:45
Advertisement
BladeTempest Error
Discussion on BladeTempest Error within the CO2 Private Server forum part of the Conquer Online 2 category.
10/05/2012, 13:47
|
#1
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
BladeTempest Error
Code:
#region BladeTempest
case 11110:
if (CanUseSpell(spell, this.attacker.Owner))
{
if (spell.ID == 11110)
{
spell.UseStamina = 20;
spell.Range = 20;
}
PrepareSpell(spell, this.attacker.Owner);
InLineAlgorithm algorithm = new InLineAlgorithm(this.attacker.X, x, this.attacker.Y, y, (byte)spell.Range, InLineAlgorithm.Algorithm.DDA);
use = new SpellUse(true)
{
Attacker = this.attacker.UID,
SpellID = damage,
SpellLevel = this.attacker.Owner.Spells[damage].Level,
X = x,
Y = y
};
if (spell.Level < 4)
{
this.attacker.Owner.Spells[damage].Level++;
this.attacker.Owner.Spells[damage].Experience = 0; ;
this.attacker.Owner.Spells[damage].Send(this.attacker.Owner);
}
if (this.attacker.Owner.Map.Floor[use.X, use.Y, MapObjectType.Player, this.attacker] == true)
{
this.attacker.X = x;
this.attacker.Y = y;
foreach (IMapObject obj3 in this.attacker.Owner.Screen.Objects)
{
if (obj3 != null)
{
if ((obj3.MapObjType == MapObjectType.Monster) || (obj3.MapObjType == MapObjectType.Player))
{
attacker = obj3 as Entity;
if (algorithm.InLine(attacker.X, attacker.Y) && CanAttack(this.attacker, attacker, spell, this.attack.AttackType == 2))
{
if (attacker.BlackSpot == false)
{
if (this.attacker.Owner.Spells.ContainsKey(11120))
{
{
if (this.attacker.Owner.Spells[11120].Level < 4)
{
this.attacker.Owner.Spells[11120].Level++;
this.attacker.Owner.Spells[11120].Experience = 0; ;
this.attacker.Owner.Spells[11120].Send(this.attacker.Owner);
}
Update ud = new Update(true);
ud.Blackspot(attacker, true);
attacker.BlackSpot = true;
attacker.BlackSpottime = 12;
attacker.BlackSpotStamp = Time32.Now;
}
}
}
this.attack.Effect1 = Attack.AttackEffects1.None;
power = Calculate.Melee(this.attacker, attacker, spell, ref this.attack);
use.Effect1 = this.attack.Effect1;
this.attack.Damage = power;
ReceiveAttack(this.attacker, attacker, this.attack, power, spell);
use.Targets.Add(attacker.UID, power);
}
}
else if (obj3.MapObjType == MapObjectType.SobNpc)
{
sob = obj3 as SobNpcSpawn;
if (algorithm.InLine(sob.X, sob.Y) && CanAttack(this.attacker, sob, spell))
{
this.attack.Effect1 = Attack.AttackEffects1.None;
power = (uint)(Calculate.Melee(this.attacker, sob, ref this.attack) * spell.PowerPercent);
this.attack.Damage = power;
ReceiveAttack(this.attacker, sob, this.attack, power, spell);
use.Targets.Add(sob.UID, power);
}
}
}
}
this.attacker.Owner.SendScreen(use, true);
this.attacker.Owner.Screen.Reload(use);
}
}
goto Label_C19A;
#endregion
|
|
|
10/05/2012, 22:05
|
#2
|
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
|
And, What is the error?.. I only see a code and a screenshot, Which doesn't really say the error you have.
|
|
|
10/05/2012, 22:40
|
#3
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by elhermanos
And, What is the error?.. I only see a code and a screenshot, Which doesn't really say the error you have.
|
Are u sure you are C# Coder as u said in your title ? ..havent u seen that there is a player outside arena map bounds ?
|
|
|
10/06/2012, 03:27
|
#4
|
elite*gold: 0
Join Date: Nov 2009
Posts: 32
Received Thanks: 1
|
Use
if (attacker.Owner.Map.IsDynamic() == false)
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
break;
#region BladeTempest
case 11110:
if (CanUseSpell(spell, this.attacker.Owner))
{
if (attacker.Owner.Map.IsDynamic() == false)
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
break;
if (spell.ID == 11110)
{
spell.UseStamina = 20;
spell.Range = 20;
}
PrepareSpell(spell, this.attacker.Owner);
InLineAlgorithm algorithm = new InLineAlgorithm(this.attacker.X, x, this.attacker.Y, y, (byte)spell.Range, InLineAlgorithm.Algorithm.DDA);
use = new SpellUse(true)
{
Attacker = this.attacker.UID,
SpellID = damage,
SpellLevel = this.attacker.Owner.Spells[damage].Level,
X = x,
Y = y
};
if (spell.Level < 4)
{
this.attacker.Owner.Spells[damage].Level++;
this.attacker.Owner.Spells[damage].Experience = 0; ;
this.attacker.Owner.Spells[damage].Send(this.attacker.Owner);
}
if (this.attacker.Owner.Map.Floor[use.X, use.Y, MapObjectType.Player, this.attacker] == true)
{
this.attacker.X = x;
this.attacker.Y = y;
foreach (IMapObject obj3 in this.attacker.Owner.Screen.Objects)
{
if (obj3 != null)
{
if ((obj3.MapObjType == MapObjectType.Monster) || (obj3.MapObjType == MapObjectType.Player))
{
attacker = obj3 as Entity;
if (algorithm.InLine(attacker.X, attacker.Y) && CanAttack(this.attacker, attacker, spell, this.attack.AttackType == 2))
{
if (attacker.BlackSpot == false)
{
if (this.attacker.Owner.Spells.ContainsKey(11120))
{
{
if (this.attacker.Owner.Spells[11120].Level < 4)
{
this.attacker.Owner.Spells[11120].Level++;
this.attacker.Owner.Spells[11120].Experience = 0; ;
this.attacker.Owner.Spells[11120].Send(this.attacker.Owner);
}
Update ud = new Update(true);
ud.Blackspot(attacker, true);
attacker.BlackSpot = true;
attacker.BlackSpottime = 12;
attacker.BlackSpotStamp = Time32.Now;
}
}
}
this.attack.Effect1 = Attack.AttackEffects1.None;
power = Calculate.Melee(this.attacker, attacker, spell, ref this.attack);
use.Effect1 = this.attack.Effect1;
this.attack.Damage = power;
ReceiveAttack(this.attacker, attacker, this.attack, power, spell);
use.Targets.Add(attacker.UID, power);
}
}
else if (obj3.MapObjType == MapObjectType.SobNpc)
{
sob = obj3 as SobNpcSpawn;
if (algorithm.InLine(sob.X, sob.Y) && CanAttack(this.attacker, sob, spell))
{
this.attack.Effect1 = Attack.AttackEffects1.None;
power = (uint)(Calculate.Melee(this.attacker, sob, ref this.attack) * spell.PowerPercent);
this.attack.Damage = power;
ReceiveAttack(this.attacker, sob, this.attack, power, spell);
use.Targets.Add(sob.UID, power);
}
}
}
}
this.attacker.Owner.SendScreen(use, true);
this.attacker.Owner.Screen.Reload(use);
}
}
goto Label_C19A;
#endregion
|
|
|
10/06/2012, 11:38
|
#5
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
y dont u learn how to use either spoilers or CODE
|
|
|
10/06/2012, 14:50
|
#6
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
Quote:
Originally Posted by johan orlando
Use
if (attacker.Owner.Map.IsDynamic() == false)
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
break;
#region BladeTempest
case 11110:
if (CanUseSpell(spell, this.attacker.Owner))
{
if (attacker.Owner.Map.IsDynamic() == false)
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
break;
if (spell.ID == 11110)
{
spell.UseStamina = 20;
spell.Range = 20;
}
PrepareSpell(spell, this.attacker.Owner);
InLineAlgorithm algorithm = new InLineAlgorithm(this.attacker.X, x, this.attacker.Y, y, (byte)spell.Range, InLineAlgorithm.Algorithm.DDA);
use = new SpellUse(true)
{
Attacker = this.attacker.UID,
SpellID = damage,
SpellLevel = this.attacker.Owner.Spells[damage].Level,
X = x,
Y = y
};
if (spell.Level < 4)
{
this.attacker.Owner.Spells[damage].Level++;
this.attacker.Owner.Spells[damage].Experience = 0; ;
this.attacker.Owner.Spells[damage].Send(this.attacker.Owner);
}
if (this.attacker.Owner.Map.Floor[use.X, use.Y, MapObjectType.Player, this.attacker] == true)
{
this.attacker.X = x;
this.attacker.Y = y;
foreach (IMapObject obj3 in this.attacker.Owner.Screen.Objects)
{
if (obj3 != null)
{
if ((obj3.MapObjType == MapObjectType.Monster) || (obj3.MapObjType == MapObjectType.Player))
{
attacker = obj3 as Entity;
if (algorithm.InLine(attacker.X, attacker.Y) && CanAttack(this.attacker, attacker, spell, this.attack.AttackType == 2))
{
if (attacker.BlackSpot == false)
{
if (this.attacker.Owner.Spells.ContainsKey(11120))
{
{
if (this.attacker.Owner.Spells[11120].Level < 4)
{
this.attacker.Owner.Spells[11120].Level++;
this.attacker.Owner.Spells[11120].Experience = 0; ;
this.attacker.Owner.Spells[11120].Send(this.attacker.Owner);
}
Update ud = new Update(true);
ud.Blackspot(attacker, true);
attacker.BlackSpot = true;
attacker.BlackSpottime = 12;
attacker.BlackSpotStamp = Time32.Now;
}
}
}
this.attack.Effect1 = Attack.AttackEffects1.None;
power = Calculate.Melee(this.attacker, attacker, spell, ref this.attack);
use.Effect1 = this.attack.Effect1;
this.attack.Damage = power;
ReceiveAttack(this.attacker, attacker, this.attack, power, spell);
use.Targets.Add(attacker.UID, power);
}
}
else if (obj3.MapObjType == MapObjectType.SobNpc)
{
sob = obj3 as SobNpcSpawn;
if (algorithm.InLine(sob.X, sob.Y) && CanAttack(this.attacker, sob, spell))
{
this.attack.Effect1 = Attack.AttackEffects1.None;
power = (uint)(Calculate.Melee(this.attacker, sob, ref this.attack) * spell.PowerPercent);
this.attack.Damage = power;
ReceiveAttack(this.attacker, sob, this.attack, power, spell);
use.Targets.Add(sob.UID, power);
}
}
}
}
this.attacker.Owner.SendScreen(use, true);
this.attacker.Owner.Screen.Reload(use);
}
}
goto Label_C19A;
#endregion
|
thanks for ur help but i got Error
Code:
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
Error 20 The name 'Y' does not exist in the current context
|
|
|
10/06/2012, 14:55
|
#7
|
elite*gold: 0
Join Date: Nov 2009
Posts: 32
Received Thanks: 1
|
Quote:
Originally Posted by magnon
thanks for ur help but i got Error
Code:
if (attacker.Owner.Map.Floor[X, Y, MapObjectType.InvalidCast, null])
Error 20 The name 'Y' does not exist in the current context

|
send me a private message
|
|
|
10/06/2012, 15:10
|
#8
|
elite*gold: 0
Join Date: Oct 2008
Posts: 708
Received Thanks: 46
|
Quote:
Originally Posted by johan orlando
send me a private message
|
i'm already send to u private message
|
|
|
10/06/2012, 18:42
|
#9
|
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
|
Quote:
Originally Posted by shadowman123
Are u sure you are C# Coder as u said in your title ? ..havent u seen that there is a player outside arena map bounds ?
|
Yes, I noticed that the player is outside of the map. But do you see any skill being used? No.
|
|
|
10/06/2012, 19:00
|
#10
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
Quote:
Originally Posted by elhermanos
Yes, I noticed that the player is outside of the map. But do you see any skill being used? No.
|
Its already mention Blade Tempest  Read up dude.
|
|
|
10/06/2012, 21:28
|
#11
|
elite*gold: 15
Join Date: Dec 2008
Posts: 332
Received Thanks: 137
|
Quote:
Originally Posted by marlyandedsel
Its already mention Blade Tempest  Read up dude.
|
Blade Tempest is a pirate skill. Check his screen, Do you see any skill or blade tempest being used there?
|
|
|
10/06/2012, 23:47
|
#12
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
Quote:
Originally Posted by elhermanos
Blade Tempest is a pirate skill. Check his screen, Do you see any skill or blade tempest being used there?
|
i dont see any used spell cuz its already been used by the player who is outside the map bounds .. y u no use ur brain ?
|
|
|
10/08/2012, 03:19
|
#13
|
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
|
Quote:
Originally Posted by elhermanos
Blade Tempest is a pirate skill. Check his screen, Do you see any skill or blade tempest being used there?
|
I see you are C# Coder below your name lol! common sense dude!!!
|
|
|
10/08/2012, 11:41
|
#14
|
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
|
btw the codes looks pathetic & Aweful
|
|
|
 |
Similar Threads
|
ERROR: GAME DB INIT ERROR : [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL serv
08/06/2013 - Rappelz Private Server - 5 Replies
Hallo :D:D
ich habe ein Problem, und zwar kommt bei mir immer diese Fehlermeldung wenn ich den CaptainHerlockServer starte ,,ERROR: GAME DB INIT ERROR : Ungültige Autorisierungsangab." Ich habe zwar schon etwas darüber gelesen, doch nur auf englisch und die meinte etwas über die DB files :confused::confused::confused: doch ich habe keine ahnung wo ich diese Files herbekomme, bitte um schnelle Hilfe Danke! :):)
|
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :)
Most people trying to ibot but in my computer İbot not working.
Declared out this error everywhere but I do not get answers
Here's the error Video
http://youtu.be/q0fK09v-K3c
|
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100
API Error Description: Invalid parameter
Error Message: redirect_uri URL is not properly formatted
Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe..
was heisst das? redirect_uri URL is not properly formatted
|
All times are GMT +1. The time now is 10:51.
|
|