Hello everyone!
I've a problem trying to show the last item picked up in the Inventory Windows 'cause every time the "item" is added at the end on the list. Is there any way to make an automatic scroll down when this last inventory item added? Sorry about my english and greetings from Argentina.
Add something like this after adding an inv item to the players invbox:
int i;
do
{
invMain.ScrollDown();
i++
}
while (i < invMain.RowCount);
(invMain is the inv window within the inv GUI)
You can create an event in the on_event function in the Global script and put the code there.
function on_event(EventType event, int data)
{
if (event == eEventAddInventory) {
// Code
}
}
Even better :)
Thank you so much!!!!!! I'll try to make it work.