Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO 2.0]Attack Bug


eddy34
 Share

Recommended Posts

Hello Guys!

Today I teach you to fix a bug in Eclipse Origins attack. For that I will explain the problem. The following image:

![](http://i1079.photobucket.com/albums/w509/Guardian34/BugAttack.png)

Problem: When attacking, the sprite in your client moves from a Sprite to Sprite 2\. However, on account of the other players you're still standing with a sprite. What makes the game without animation stopped.

Okay, let's resolution.

**Server Side**

In **Sub HandleAttack** find this:

```
' Send this packet so they can see the person attacking
    'SendAttack Index
```
Switch to:

```
' Send this packet so they can see the person attacking
    SendAttack Index
```
Then the end of **ModServerTCP**, add:

```
Sub SendAttack(ByVal index As Long)
Dim Buffer As clsBuffer

Set Buffer = New clsBuffer
Buffer.WriteLong ServerPackets.SAttack
Buffer.WriteLong index
SendDataToMap GetPlayerMap(Index), Buffer.ToArray()
Set Buffer = Nothing
End Sub
```
Sorry if you have an error in either English or topic, I am Brazilian and this is my first post.

Credits : GuardianBR
Link to comment
Share on other sites

@jcsnider:

> Just going to add a side note that this should also work perfectly for my Nightly editions for those who are wondering.
>
> Good job GuardianBR!
> I hope to see more contributions from you in the future :D

And you'll see. ;)

@iHero:

> You also started, good luck brother.
> ~~He also is Brazilian~~
>
> :D

Thanks brother. \o/
Link to comment
Share on other sites

@GuardianBR:

> ```
> Sub SendAttack(ByVal index As Long)
> Dim Buffer As clsBuffer
>
> Set Buffer = New clsBuffer
> Buffer.WriteLong ServerPackets.SAttack
> Buffer.WriteLong index
> SendDataToAll Buffer.ToArray()
> Set Buffer = Nothing
> End Sub
> ```

Dont SendDataToAll, send it to map like this - SendDataToMap GetPlayerMap(Index), Buffer.ToArray()
Link to comment
Share on other sites

@Deathbeam:

> Dont SendDataToAll, send it to map like this - SendDataToMap GetPlayerMap(Index), Buffer.ToArray()

LOL
I had not realized that I had committed this blunder. kkkk '
Thanks, you're just right. =D
Link to comment
Share on other sites

I have noticed myself whilst playing eclipse games, a nice tutorial however i would suggest removing the orange in every first letter for each paragraph because it annoys me and i have trouble reading it on a white background, nether the less a nice fix.

~Kibbelz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...