Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 01:27

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


i have code here for Shackle can you help me

Reply
 
Old   #1
 
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
 
elite*gold: 0
Join Date: Apr 2009
Posts: 749
Received Thanks: 432
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
 
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
 
elite*gold: 0
Join Date: Oct 2009
Posts: 123
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
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Problem solve thanks


marlyandedsel is offline  
Reply



« [Question]Npc selling moonbox. | Slinger Mob Change Attributes »

Similar Threads
Soul Shackle skill ID?
07/28/2011 - CO2 PServer - Discussions / Questions - 13 Replies
Anyone know it's id? I kind of need it atm ^.^
I Want Help For Soul Shackle Skill
06/04/2011 - CO2 PServer - Discussions / Questions - 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 PServer - Discussions / Questions - 5 Replies
Hello everyone, does anyone have the id for the soul shackle effect?



All times are GMT +1. The time now is 01:27.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.