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

[Bug Fix] Correcting error at death


Valentine90
 Share

Recommended Posts

**Sorry my english**

When a player dies and had shop, bank or trade open, to be reborn, they are still open and running, this tutorial will not close all the windows of these systems (exept window the trade), but will prevent it work on server if you want to complete correction closing the windows will have to make the necessary changes on the client.

**Open Server**

**1 -** In **modPlayer**, search for:

```
' Clear spell casting

TempPlayer(index).spellBuffer.Spell = 0

TempPlayer(index).spellBuffer.Timer = 0

TempPlayer(index).spellBuffer.target = 0

TempPlayer(index).spellBuffer.tType = 0

Call SendClearSpellBuffer(index)
```

**2 -** below add:

```
TempPlayer(index).InBank = False

TempPlayer(index).InShop = 0

If TempPlayer(index).InTrade > 0 Then

For i = 1 To MAX_INV

TempPlayer(index).TradeOffer(i).Num = 0

TempPlayer(index).TradeOffer(i).Value = 0

TempPlayer(TempPlayer(index).InTrade).TradeOffer(i).Num = 0

TempPlayer(TempPlayer(index).InTrade).TradeOffer(i).Value = 0

Next

TempPlayer(index).InTrade = 0

TempPlayer(TempPlayer(index).InTrade).InTrade = 0

SendCloseTrade index

SendCloseTrade TempPlayer(index).InTrade

End If
```

**Credits:**

Valentine
Link to comment
Share on other sites

  • 2 weeks later...
> Thanx
>
> **[ValentineBr](http://www.touchofdeathforums.com/community/index.php?/user/58618-valentinebr/) Can u give link to eo 2.0 + your all fix? ;]**

I have made a Custom Version with alot bugfixes, but not the latest.

You can find it here: http://www.touchofdeathforums.com/community/index.php?/topic/127244-eclipse-origins-fixed/
Link to comment
Share on other sites

> I have made a Custom Version with alot bugfixes, but not the latest.
>
> You can find it here: [http://www.touchofde…-origins-fixed/](http://www.touchofdeathforums.com/community/index.php?/topic/127244-eclipse-origins-fixed/)

Do you constantly update that by any chance?
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...