Serenity Monk Skill

10/18/2012 02:23 meshoshow#1
Frist Big Thx For elhermanos For Helping

Second : Source 5620 The Monk Skill Serenity Don't Remove poisonstar And I want this skill to remove it !!
This Is Pic The Skill of my source

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
10/18/2012 04:28 pro4never#2
You've already found where the skill is being handled... now simply have it remove the effect you want it to.

It's literally 1 line of basic scripting involved to make the changes you want.


Example..

target.RemoveFlag(Effects.PoisonStar);

Note, this is totally pseudo code and you'll have to write it how your source handles effect removal.
10/18/2012 05:10 meshoshow#3
Really i didn't understand what u mean !!
so if u can edit it and send it again the i will be thanks !!!

Quote:
//Serenity
case 10400:
{
if (CanUseSpell(spell, attacker.Owner))
{
PrepareSpell(spell, attacker.Owner);

if (attacker == 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(attacker.UID, 1);

attacker.ToxicFogLeft = 0;
//attacker.RemoveFlag(Update.Flags.SoulShackle);
attacker.Owner.SendScreen(suse, true);
}
attacker.AttackPacket = null;
break;
}
10/18/2012 07:58 Spirited#4
Quote:
Originally Posted by meshoshow View Post
Really i didn't understand what u mean !!
so if u can edit it and send it again the i will be thanks !!!
Wow. You have two examples. One from pro4never telling you what to generally look for, and one staring you in the face. If you don't want to even try, why should we?
10/18/2012 09:32 Novakhan#5
Try to add this under attacker.ToxicFogLeft = 0;

Code:
attacker.RemoveFlag(Update.Flags.PoisonStar);
Or

Code:
attacker.PoisonStarLeft = 0;
If it doesn't work try what pro4never said

Code:
attacker.RemoveFlag(Effects.PoisonStar);
10/18/2012 18:54 sonofskeletor#6
I thought it was remove flag no pots too ? but okay try what they said,
i think its 2 effects tho poisenstar and no pots
10/18/2012 21:07 meshoshow#7
Doesn't Work :((

What I have to do now !!
10/18/2012 21:31 shadowman123#8
Quote:
Originally Posted by elhermanos View Post
Try to add this under attacker.ToxicFogLeft = 0;

Code:
attacker.RemoveFlag(Update.Flags.PoisonStar);
Or

Code:
attacker.PoisonStarLeft = 0;
If it doesn't work try what pro4never said

Code:
attacker.RemoveFlag(Effects.PoisonStar);
poison Star isnt a Flag so this isnt going to work ..
10/18/2012 21:53 Novakhan#9
Replace your code with this one. I tested it and it works perfect.

Code:
                                case 10400:
                                    {
                                        if (CanUseSpell(spell, attacker.Owner))
                                        {
                                            PrepareSpell(spell, attacker.Owner);

                                            if (attacker == 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(attacker.UID, 1);

                                            attacker.ToxicFogLeft = 0;
                                            attacker.NoDrugsTime = 0;
                                            attacker.Owner.SendScreen(suse, true);
                                        }
                                        attacker.AttackPacket = null;
                                        break;
                                    }
10/18/2012 23:08 shadowman123#10
attacker.NoDrugsTime = 0; // thats what he need to fix that
10/18/2012 23:30 Novakhan#11
Quote:
Originally Posted by shadowman123 View Post
attacker.NoDrugsTime = 0; // thats what he need to fix that
Yeah but I gave him the whole code so he don't get disappointed :)
10/18/2012 23:51 meshoshow#12
Its Working Thx elhermanos !!!
10/19/2012 00:05 Novakhan#13
You are welcome :)
10/19/2012 00:07 shadowman123#14
Quote:
Originally Posted by meshoshow View Post
Its Working Thx elhermanos !!!
u shouldnt depend on taking codes / asking for them
10/19/2012 00:28 Novakhan#15
Quote:
Originally Posted by shadowman123 View Post
u shouldnt depend on taking codes / asking for them
You are right, But as you can see, He's kinda noob in C# so getting some help would be grateful for him^^ He will learn in that way, As he can learn in coding himself and not asking for codes.

Almost every people at their beginning in C# ask for codes and help.