Wikia

WoWWiki

Watchlist Recent changes

API GetNumCompanions

Main Menue



Returns the number of companions you have. New in Patch 3.0

count = GetNumCompanions("type")

Arguments Edit

type 
String (companionType) - Type of companions to count ("CRITTER", or "MOUNT")

Returns Edit

count 
Number - The number of companions of a specific type.

Example Edit

The following snippet prints how many mini-pets the player has collected.

local count = GetNumCompanions("CRITTER");
print('Hello, I have collected a total of ' .. count .. ' pets.');

Pages on WoWWiki

95,750pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
58,025photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki