help with Tranquility skill

07/18/2013 08:29 girgismena#1
hello guys !!
i have a problem in my source i don't know how i fix it
the problem is :
when archer use pathofshadow skill and any1 use Tranquility skill with him
he back normal without his pathofshadow so he cant attack any1
mean Tranquility remove pathofshadow !!!
can any1 help me please ?
07/18/2013 09:32 go for it#2
edit: nvm everything i just said (it's incorrect)
i've had thought about it once more and with common sense figured out that the tranquility removes flags such as poison flag and soul shackle , so yeah you can just add a check to loop on all the flags and not remove the assassin flags and still remove others

just for an easy entiry to what you want to edit, search for the tranquility id at your source, you should find what it does
07/18/2013 10:45 girgismena#3
Quote:
Originally Posted by go for it View Post
edit: nvm everything i just said (it's incorrect)
i've had thought about it once more and with common sense figured out that the tranquility removes flags such as poison flag and soul shackle , so yeah you can just add a check to loop on all the flags and not remove the assassin flags and still remove others

just for an easy entiry to what you want to edit, search for the tranquility id at your source, you should find what it does
1st thanks for your answer
but i don't understand that cuz i'm new with that
i just need the code to add because i really don't know how to do that
thanks
07/18/2013 10:59 go for it#4
well i would love to but what makes you think that i got your source ? i would love to help nonetheless i don't know what source you are using, please provide me with the piece of code for the spell and the ids you want to exclude and i would be more than happy to help you out
but yeah i think you need to learn programming more than getting it done :)
07/18/2013 11:08 girgismena#5
ya i need to learn that that sure
and i use iFranko source
but i dont know witch code u need
PathOfShadow code or Tranquility code ?
thanks again for help
07/18/2013 11:14 go for it#6
well to be honest there is a billions of sources out there as everyone change what's written on the console and rerelease the source, and the question here is, are you expecting me to search for all of them to know what ifranko source is?
and about the skills, which one that bug the other ? yes then get me tranquility source and ill take care of the ids myself
or a better idea is to link me with the source and download it and do everything for you
07/18/2013 11:32 girgismena#7
1st that the skill
PHP Code:
//Tranquility
                                    
case 10425:
                                        {
                                            if (
attacked == null) return;

                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
PrepareSpell(spellattacker.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;
                                                
suse.Y;


                                                
suse.Targets.Add(attacked.UID1);

                                                
attacked.ToxicFogLeft 0;
                                                
attacked.ShackleTime 0;
                                                
attacked.NoDrugsTime 0;
                                                
attacked.RemoveFlag2(Update.Flags2.SoulShackle);
                                                if (
attacked.EntityFlag == EntityFlag.Player)
                                                {
                                                    
SyncPacket packet3 = new SyncPacket
                                                    
{
                                                        
Identifier attacked.UID,
                                                        
Count 2,
                                                        
Type ShekoProject.Network.GamePackets.SyncPacket.SyncType.StatusFlag,
                                                        
StatusFlag1 = (ulong)attacked.StatusFlag,
                                                        
StatusFlag2 = (ulong)attacked.StatusFlag2,
                                                        
Unknown1 0x36,
                                                        
StatusFlagOffset 0x6f,
                                                        
Time 0,
                                                        
Value 0,
                                                        
Level spell.Level
                                                    
};
                                                    
attacked.Owner.Send((byte[])packet3);
                                                }
                                                if (
attacked.EntityFlag == EntityFlag.Player)
                                                    
attacked.Owner.SendScreen(susetrue);
                                                else
                                                    
attacked.MonsterInfo.SendScreen(suse);
                                            }
                                            
attacker.AttackPacket null;
                                            break;
                                        } 
2nd i will upload the source for now and link it after 5 min

this is the source and thanks alot for help bro
[Only registered and activated users can see links. Click Here To Register...]

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

this is the 2nd skill
PHP Code:
case 11620:
                                        {
//pathofshadow
                                            
if (CanUseSpell(spellattacker.Owner))
                                            {
                                                
PrepareSpell(spellattacker.Owner);
                                                if (
attacker.ContainsFlag3(Update.Flags3.PathOfShadow))
                                                {
                                                    
attacker.RemoveFlag3(Update.Flags3.PathOfShadow);
                                                    break;
                                                }
                                                
_String str = new _String(true);
                                                
str.UID attacker.UID;
                                                
str.TextsCount 1;
                                                
str.Type _String.Effect;
                                                
str.Texts.Add("superxp2");
                                                
attacker.Owner.SendScreen(strtrue);
                                                
attacker.AddFlag3(Update.Flags3.PathOfShadow);
                                                
SpellUse spellUse = new SpellUse(true);
                                                
spellUse.Attacker attacker.UID;
                                                
spellUse.SpellID spell.ID;
                                                
spellUse.SpellLevel spell.Level;
                                                
spellUse.X;
                                                
spellUse.Y;
                                                
spellUse.Targets.Add(attacker.UID0);
                                                
attacker.Owner.SendScreen(spellUsetrue);
                                            }
                                            break;
                                        } 
i dont know in whitch one u will edit but its ok
btw i upload the source and add link and i will add it again in that post
[Only registered and activated users can see links. Click Here To Register...]
07/18/2013 11:57 go for it#8
Quote:
Originally Posted by girgismena View Post
well lets try something at first (it was to be way easier if i got a client)
first ill assume that sync packet (as he call it) or the entity packet 10017 is structured right and that flag3 at the packet is uint and not ulong
try this


and incase it did not work and it wasn't structured right then you have to go to the packet at syncpacket.cs
and change the following
to

then use the following code

i guess that should work just fine but in case it doesn't ill still be here, goodluck and please learn programming
07/18/2013 12:12 girgismena#9
thanks alot for help bro
and that code work very good
PHP Code:
case 10425:
                                        {
                                            if (
attacked == null) return;

                                            if (
CanUseSpell(spellattacker.Owner))
                                            {
                                                
PrepareSpell(spellattacker.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;
                                                
suse.Y;


                                                
suse.Targets.Add(attacked.UID1);

                                                
attacked.ToxicFogLeft 0;
                                                
attacked.ShackleTime 0;
                                                
attacked.NoDrugsTime 0;
                                                
attacked.RemoveFlag2(Update.Flags2.SoulShackle);
                                                if (
attacked.EntityFlag == EntityFlag.Player)
                                                {
                                                    
SyncPacket packet3 = new SyncPacket
                                                    
{
                                                        
Identifier attacked.UID,
                                                        
Count 2,
                                                        
Type ShekoProject.Network.GamePackets.SyncPacket.SyncType.StatusFlag,
                                                        
StatusFlag1 = (ulong)attacked.StatusFlag,
                                                        
StatusFlag2 = (ulong)attacked.StatusFlag2,
                                                        
StatusFlag3 = (uint)attacked.StatusFlag3,
                                                        
Unknown1 0x36,
                                                        
StatusFlagOffset 0x6f,
                                                        
Time 0,
                                                        
Value 0,
                                                        
Level spell.Level
                                                    
};
                                                    
attacked.Owner.Send((byte[])packet3);
                                                }
                                                if (
attacked.EntityFlag == EntityFlag.Player)
                                                    
attacked.Owner.SendScreen(susetrue);
                                                else
                                                    
attacked.MonsterInfo.SendScreen(suse);
                                            }
                                            
attacker.AttackPacket null;
                                            break;
                                        } 
now can i ask u how can i learn programming ?
have any sites for that ?
thanks again bro <3
07/18/2013 12:24 go for it#10
well first of all i'm really happy it worked out for you because it's been a year since i've touched a source and it was to be super awkward if i couldn't help you out :P
and there is a plenty of resources out there, i would recommend some
first some video series of new Boston (just briefly explaining the language with examples and it would be really useful on the long run for creating applications and stuff, you may quit the graphical parts and other parts you may find irrelevant, better watch them full hd with headset, i've finished them twice already)
[Only registered and activated users can see links. Click Here To Register...]
second there is a good tutorial released by member of epvp jacob if i recall correctly
[Only registered and activated users can see links. Click Here To Register...]
then there is more books i read
including C# 5.0 in a nullshell , c# step by step, and more that i can't remember for now
you may google c# resources and you would find alot
just one more advice, never give up because the easy way is always there to wash you away :)
goodluck and notice there is a thank button out there :)

edit: just one last advice, you may not always understand something with the author way of explaining, so you either give up or go to google to figure it out :)
07/18/2013 12:34 girgismena#11
Quote:
Originally Posted by go for it View Post
well first of all i'm really happy it worked out for you because it's been a year since i've touched a source and it was to be super awkward if i couldn't help you out :P
and there is a plenty of resources out there, i would recommend some
first some video series of new Boston (just briefly explaining the language with examples and it would be really useful on the long run for creating applications and stuff, you may quit the graphical parts and other parts you may find irrelevant, better watch them full hd with headset, i've finished them twice already)
[Only registered and activated users can see links. Click Here To Register...]
second there is a good tutorial released by member of epvp jacob if i recall correctly
[Only registered and activated users can see links. Click Here To Register...]
then there is more books i read
including C# 5.0 in a nullshell , c# step by step, and more that i can't remember for now
you may google c# resources and you would find alot
just one more advice, never give up because the easy way is always there to wash you away :)
goodluck and notice there is a thank button out there :)

edit: just one last advice, you may not always understand something with the author way of explaining, so you either give up or go to google to figure it out :)
i'm really happy to meet some 1 like you
thanks alot bro and thanks for all of your advice
i will start to learn programming from now
god bless you and thanks again