[Bug Fix] Correcting error at death

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

You have done a lot for this community man :)

Thank you !

Thanx

ValentineBr Can u give link to eo 2.0 + your all fix? ;]

Thanx

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/

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

You can find it here: http://www.touchofde…-origins-fixed/

Do you constantly update that by any chance?

Do you constantly update that by any chance?

No, thats why I said I haven’t added in the latest bugfixes.

I might probably update it but then I can keep updating it when someone releases a bugfix.

Log in to reply