PDA

View Full Version : Help with Self.ItemCount()



jrzaghetto
07-18-2017, 05:35 AM
I'm trying to create a script that does the following:

When my character has 25 medicine pouch he goes to label "x". However I am having difficulty with the Self.ItemCount ()

I am using the following:


Function checkmd ()
If (Self.ItemCount (12517)> 25) then
Return true
End
End

RegisterEventListener (WALKER_SELECTLABEL, "onLabel")

Function onLabel (label)
If (label == "fimHunt") then
If checkmd () then
Walker.Goto ("dp")
Else
Walker.Goto ("HomeHunt")
End

But even with more than 25 pouch medicine he does not "read". It's as if he does not "read" the medicine pouch of all backpacks, but read only from the current BP.

Does anyone know how I can read it from all bps?

thank you