[Release] Interactions 5165

06/11/2010 00:46 JacobSmith#1
#Removed
06/11/2010 00:53 xScott#2
If this works, goodjob.
06/11/2010 02:18 pro4never#3
... you mean to tell me that ppl have been begging for and selling interaction 'packets' for this long and it's just a fucking attack type?...

Wow... just wow...

That's almost as bad as coemu not having fatal strike/counter kill done properly... wtf is with people and not running through test values for diff packets? God knows i have more than enough logged just from trying to find stuff for fs.
06/11/2010 02:47 koko425#4
i got 7 error Error

The name 'dmg' does not exist in the current context
06/11/2010 05:18 pedro93#5
i only get this error dmg dont exist in the actual context
06/11/2010 05:21 pro4never#6
Quote:
Originally Posted by pedro93 View Post
i only get this error dmg dont exist in the actual context
... then define it...

Code:
d.InteractionType = dmg;
that is saying that the interaction type is the same as dmg... so simply set dmg to = w/e interaction you want.

int dmg = 1;//where 1 is whatever interaction number you are using.
06/11/2010 12:46 Sp!!ke#7
I got erroar at
Quote:
dmg
how can I fix that ?
06/11/2010 13:40 dodolinobobo#8
I deleted
Code:
d.InteractionType = dmg;
and changed from
Code:
d.MyClient.AddSend(Packets.AttackPacket(GC.MyChar.EntityID, TargetUID, d.Loc.X, d.Loc.Y, dmg, 46));
to
Code:
d.MyClient.AddSend(Packets.AttackPacket(GC.MyChar.EntityID, TargetUID, d.Loc.X, d.Loc.Y, d.InteractionType, 46));
and there are no more error if you edit like me to 46,47 and 48(i think that are the 3 numbers)

but when i tried it in game,the request come...like
Code:
"Name" has invited you to:
but if you accept the interaction does not do anythink
06/11/2010 14:14 -impulse-#9
Because of some stupid people, the interactions got to be released.

I wrote the code, and it's working very well.

If you get errors because some 'dmg' variable doesn't exist, that's because you have to get the damage from the packet sent by client.

uint dmg = BitConverter.ToUInt32(Data, 8);
06/11/2010 14:15 masternek#10
i got this error :X

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

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

any help pls? sorry for double post :)
06/11/2010 22:07 Sp!!ke#11
anyone can help me :> I whana know how I can fixx that error at
Quote:
dmg
06/11/2010 23:48 JacobSmith#12
Go to PacketHandler and replace case case 1022 with this:
Code:
case 1022:
                            {
                                uint dmg = BitConverter.ToUInt32(Data, 24);
                                uint AttackType = BitConverter.ToUInt32(Data, 20);
                                switch (AttackType)
                                {
                                    case 8:
                                    case 9: PacketHandling.Marriage.Handle(GC, Data); break;
                                    case 40:
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, NewestCOServer.Game.Status.Merchant, 255));
                                        GC.MyChar.Merchant = NewestCOServer.Game.MerchantTypes.Yes;
                                        GC.AddSend(Data);
                                        break;
                                    case 41:
                                        GC.AddSend(Packets.Status(GC.MyChar.EntityID, NewestCOServer.Game.Status.Merchant, 0));
                                        GC.MyChar.Merchant = NewestCOServer.Game.MerchantTypes.Not;
                                        GC.AddSend(Data);
                                        break;
06/12/2010 00:45 Arcо#13
Quote:
Originally Posted by Tweety.4Girls View Post
anyone can help me :> I whana know how I can fixx that error at
The fix for that was posted in the thread already.
06/12/2010 07:33 -impulse-#14
Well, good job JacobSmith ( Paralyzer / ElectricZebra), you are 100% like Decker.
06/12/2010 08:44 Arcо#15
Quote:
Originally Posted by -impulse- View Post
Well, good job JacobSmith ( Paralyzer / ElectricZebra), you are 100% like Decker.
Actually ElectricZebra was Decker.
MonstersAbroad was Para.