erkro1 Posted August 15, 2012 Author Share Posted August 15, 2012 This will fix the bug that when you use a consumable item through the hotbar it won't dissapear from the hotbar.**Server side**In modHandleData, in Sub HandleHotbarUse find:```Case 1 ' inventory For i = 1 To MAX_INV If Player(index).Inv(i).Num > 0 Then If Player(index).Inv(i).Num = Player(index).Hotbar(Slot).Slot Then UseItem index, i Exit Sub End If End If Next```Replace it with:```Case 1 ' inventory For i = 1 To MAX_INV If Player(Index).Inv(i).Num > 0 Then If Player(Index).Inv(i).Num = Player(Index).Hotbar(Slot).Slot Then If Item(Player(Index).Inv(i).Num).Type = ITEM_TYPE_CONSUME Then Player(Index).Hotbar(Slot).Slot = 0 Player(Index).Hotbar(Slot).sType = 0 SendHotbar Index End If UseItem Index, i Exit Sub End If End If Next``` Link to comment Share on other sites More sharing options...
zerohero Posted August 15, 2012 Share Posted August 15, 2012 ![](http://fuzionblog.files.wordpress.com/2011/01/ronseal.jpg) Link to comment Share on other sites More sharing options...
erkro1 Posted August 15, 2012 Author Share Posted August 15, 2012 @zerohero:> ![](http://fuzionblog.files.wordpress.com/2011/01/ronseal.jpg)Ehm thanks I guess? Link to comment Share on other sites More sharing options...
willunited Posted August 27, 2012 Share Posted August 27, 2012 This bug crashes my server everyday,thx Link to comment Share on other sites More sharing options...
tslusny Posted August 27, 2012 Share Posted August 27, 2012 > This bug crashes my server everyday,thxDont be sarcastic Link to comment Share on other sites More sharing options...
or3o Posted August 28, 2012 Share Posted August 28, 2012 Thanks agian for another perfectly working tutorial. Link to comment Share on other sites More sharing options...
erkro1 Posted August 28, 2012 Author Share Posted August 28, 2012 > Thanks agian for another perfectly working tutorial.Your welcome. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)> This bug crashes my server everyday,thxThis bug could never crash your server, anyway, if you don't like the bugfix/tutorial then don't post. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now