Rotflturion Posted September 14, 2011 Author Share Posted September 14, 2011 Okay, I am not sure what causes this, but the gold icon in the inventory randomly dissapears when picking up other objects.Sometimes it dissapears after 4 items, sometimes when picking up last item before inv is full.Also sometimes it appears, but as an item with PINK rectangle [that should normally be invisible]I am not sure if it could be that, but I have just made a little piece of code based on two different tutorials ['onClick' tut, and 'Chests' tut], that gives the player an item when he *clicks* a tile with his mouse.The code:``` Dim b As Long b = FindOpenInvSlot(index, 4) If Val(ReadINI(GetPlayerName(index), "Test Chest", App.Path & "\data\Chests.Dat", 0)) = 0 Then If b > 0 Then Call PlayerMsg(index, "You open the chest", White) Call SetPlayerInvItemNum(index, b, 4) Call WriteINI(GetPlayerName(index), "Test Chest", 1, App.Path & "\data\Chests.Dat") Call SendInventoryUpdate(index, b) Else Call PlayerMsg(index, "You don't have enought free space.", White) End If Else Call PlayerMsg(index, "It is empty.", White) End If```I do realize this is the saddest piece of crap some of You saw [using INI = hate, but they're easiest for me], but it works.I did not observe such behaviour before.Any ideas what could cause this? 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