NZL 13 Share Posted November 13, 2015 Basically I have a script that is power skilling, but it sometimes can get an item that's not the item its collecting which will break the script.However I have a workaround which just drops the item in the first inventory slot regardless of what it is...However! I want to keep those items are they can be worth heaps! So how would I go about Dragging the item to the last available slot in the inventory?Any ideas?if s.getInventory().slotContains(0,???)s.getMouse ???Drag to last empty slot in inventory ?????? Link to comment Share on other sites More sharing options...
Diddy 264 Share Posted November 13, 2015 Can't you just check if the item is worth crap or not? if it's not then just change the variable instead of first slot to second slot. Just my thoughts about it ;p Link to comment Share on other sites More sharing options...
Volta 183 Share Posted November 13, 2015 Just use an item filter.. Link to comment Share on other sites More sharing options...
Nuclear Nezz 1996 Share Posted November 13, 2015 there's a getMouse()#drag function Link to comment Share on other sites More sharing options...
NZL 13 Author Share Posted November 13, 2015 Now its a fresh new day :l (not 4am)Guess I can use mouse.drag and a For (Inventory i = 30, where inventory is full; i--; or something will have to play with it laterSo where inventory is full it loops downwards and drags the unknown item from slot 1 to the last available slot Link to comment Share on other sites More sharing options...
Recommended Posts