SphereCommunity

Full Version: Calling Stable Variable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In what variable is it saved the number of pets that the animal trainer stables for you?
unfortunately there's no variable, but you can port it from the PETSTABLE / PETRETRIEVE hardcoded functions

Code:
[FUNCTION StabledPetsQty]
// Syntax: use <StabledPetsQty [PlayerUID]> on animal trainer NPC
LOCAL.Total = 0
REF1=<FINDLAYER.layer_bankbox>
IF (<REF1>)
  FORCONT <REF1>
    IF ((<TYPE> == t_figurine) && (<LINK> == <ARGS>))
      LOCAL.Total ++
    ENDIF
  ENDFOR
ENDIF
return <LOCAL.Total>
Reference URL's