12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

886 Part IV ■ <strong>Reference</strong>PetRenameRenames the currently controlled pet.PetRename(“name“ [, “genitive“ [, “dative“ [, “accusative“ i[, “instrumental“ [, “prepositional“]]]]])Only Hunter pets can be renamed, <strong>and</strong> a given pet can only be renamed once(barring use <strong>of</strong> a Certificate <strong>of</strong> Ownership).ProtectedProtectedNo CombatArguments:name—New name <strong>for</strong> the pet (nominative <strong>for</strong>m on Russian clients) (string)genitive (optional)—Genitive <strong>for</strong>m <strong>of</strong> the pet’s new name; applies only onRussian clients (string)dative (optional)—Dative <strong>for</strong>m <strong>of</strong> the pet’s new name; applies only on Russianclients (string)accusative (optional)—Accusative <strong>for</strong>m <strong>of</strong> the pet’s new name; applies onlyon Russian clients (string)instrumental (optional)—Instrumental <strong>for</strong>m <strong>of</strong> the pet’s new name; appliesonly on Russian clients (string)prepositional (optional)—Prepositional <strong>for</strong>m <strong>of</strong> the pet’s new name; appliesonly on Russian clients (string)PetStopAttackInstructs the pet to stop attacking.PetWaitInstructs the pet to stay at its current location.If the pet is currently attacking a target, the pet will stop attacking.PickupActionPuts the contents <strong>of</strong> an action bar slot onto the cursor or the cursor contentsinto an action bar slot.PickupAction(slot)After an action is picked up via this function, it can only be placed into otheraction bar slots (with PlaceAction() or by calling PickupAction() again),even if the action is an item which could otherwise be placed elsewhere. Unlikemany other ‘‘pickup’’ cursor functions, this function removes the picked-upaction from the source slot. An action slot can be emptied by calling thisfunction followed by ClearCursor().If the action slot is empty <strong>and</strong> the cursor already holds an action, a spell, acompanion (mount or non-combat pet), a macro, an equipment set, or an item(with a ‘‘Use:’’ effect), it is put into the action slot. If both the cursor <strong>and</strong> theslot hold an action (or any <strong>of</strong> the above data types), the contents <strong>of</strong> the cursor<strong>and</strong> the slot are exchanged.Arguments:slot—An action bar slot (number, actionID)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!