Jump to content

Problem with: getItemsCount()


Tokumei

Recommended Posts

I'm not sure if this was intended or not but using the function "g_game.getLocalPlayer():getItemsCount(****)" now returns the stacks of items instead of the total count. 

For example, if I had 423 UH's on my character it would return 5. 

 

As a side note, I did find an itemCounting script on the forums, but that only returned the count of the first stack. 

Using the same example as above it would return 23.

 

EDIT: I've made my own function that works, but yeah just thought I'd post this as I'm not sure if that was how the "getItemsCount()" function was intended to work.

 

- Tokumei

Edited by Tokumei
Just clarification
Link to comment
Share on other sites

×
×
  • Create New...