Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 09:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



i have code here for Shackle can you help me

Discussion on i have code here for Shackle can you help me within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
i have code here for Shackle can you help me

i don't know whats wrong on this i cant see the effect can you help me please someone here....

here is the code
Quote:
case 10405:
{
if (!attacked.ContainsFlag2((ushort)Enums.SkillIDs.So ulShackle))
{
PrepareSpell(spell, attacker.Owner);
if (attacked == null) return;
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = SpellID;
suse.SpellLevel = attacker.Owner.Spells[SpellID].Level;
suse.X = X;
suse.Y = Y;
suse.Targets.Add(attacked.UID, 1);
attacked.AddFlag(Update.Flags.SoulShackle);
if (attacked.EntityFlag == EntityFlag.Player)
attacked.Owner.SendScreen(suse, true);
else
attacked.MonsterInfo.SendScreen(suse);
}
else
{
attacker.Owner.Send(new Message("You can't use on that target, it is already with soul shackle!", System.Drawing.Color.Red, Message.TopLeft));
return;
}

break;
}
marlyandedsel is offline  
Old 06/06/2011, 16:46   #2
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
first:
Code:
else
attacked.MonsterInfo.SendScreen(suse);
you can't use soulshackle at monsters...

second, change:
Code:
attacked.AddFlag(Update.Flags.SoulShackle);
to:
Code:
attacked.AddFlag2(Update.Flags.SoulShackle);
maybe that works...
12tails is offline  
Thanks
2 Users
Old 06/07/2011, 01:35   #3
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
i will try

edit:

here is what i've done but still doesnt work

case 10405:
{
if (!attacked.ContainsFlag2((ushort)Enums.SkillIDs.So ulShackle))
{
PrepareSpell(spell, attacker.Owner);
if (attacked == null) return;
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = SpellID;
suse.SpellLevel = attacker.Owner.Spells[SpellID].Level;
suse.X = X;
suse.Y = Y;
suse.Targets.Add(attacked.UID, 1);
attacked.ShackleTime = 0;
//attacked.AddFlag2(Update.Flags.SoulShackle);
attacked.AddFlag2((ushort)Enums.SkillIDs.SoulShack le);
attacked.AddFlag2(Update.Flags2.Shackled);
attacked.ShackleTime = (byte)spell.Duration;
if (attacked.EntityFlag == EntityFlag.Player)
attacked.Owner.SendScreen(suse, true);
else
{
attacker.Owner.Send(new Message("You can't use SoulShackle on Monster", System.Drawing.Color.Red, Message.TopLeft));
return;
}
}
else
{
attacker.Owner.Send(new Message("You can't use on that target, it is already with soul shackle!", System.Drawing.Color.Red, Message.TopLeft));
return;
}

break;
}
marlyandedsel is offline  
Old 07/02/2011, 04:08   #4
 
elite*gold: 0
Join Date: Apr 2011
Posts: 2
Received Thanks: 0
Where this code placed ؟
mido elord is offline  
Old 07/02/2011, 07:04   #5
 
thesamuraivega's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 125
Received Thanks: 21
Quote:
Originally Posted by mido elord View Post
Where this code placed ؟
"here is what i've done but still doesnt work"

thesamuraivega is offline  
Old 07/03/2011, 03:11   #6
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Problem solve thanks
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
Soul Shackle skill ID?
07/28/2011 - CO2 Private Server - 13 Replies
Anyone know it's id? I kind of need it atm ^.^
I Want Help For Soul Shackle Skill
06/04/2011 - CO2 Private Server - 0 Replies
I Want Help For Soul Shackle Skill , I'm try program it but it didn't work, I'm beginner C# Coder.... any professional coder can help me:handsdown: i use phoenix source and i need help
request soul shackle effect id
04/10/2011 - CO2 Private Server - 5 Replies
Hello everyone, does anyone have the id for the soul shackle effect?



All times are GMT +2. The time now is 09:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.