API PlayerHasToy

From Wowpedia
Jump to: navigation, search

Determines if player has a specific toy in their toybox

  hasToy = PlayerHasToy(itemId)

Arguments

itemId 
Number - itemId of a toy.

Returns

Returns true if player has itemId in their toybox, false if not.

Example

if PlayerHasToy(92738) then print('Remember to wear your Safari Hat!'; end