Don’t you hate it when you’re player killing and your opponent spam clicks the healing potions to full health? This tutorial will make sure that you can only consume one item every second.
This has only been tested on EO 2.0, but it should work on multiple other engines.
Go into your server, and look for TempPlayerRec. At the bottom of the rec, put there
FreeAction As Boolean
Now look for```
Right above that, put there this
TempPlayer(index).FreeAction = False
Now look for``` Case ITEM_TYPE_CONSUME
And right under that, put there this
If TempPlayer(index).FreeAction = False Then Exit Sub End If
Now look for
If Tick > tmr1000 Then
Under it, put there
For i = 1 To Player_HighIndex If TempPlayer(i).FreeAction = False Then TempPlayer(i).FreeAction = True Next
Save, compile, and enjoy!