Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetRewardSpell
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} Returns information about spell that you get as reward for completing quest currently in gossip frame. texture, name, isTradeskillSpell, isSpellLearned = GetRewardSpell() == Returns == texture, name, isTradeskillSpell, isSpellLearned :texture - icon of spell. :name - name of spell. :isTradeskillSpell - if spell received is a tradeskill or not. This will be true, for example, for quests that upgrade your secondary professions, like fishing quest from Nat Pagle. :isSpellLearned - if you actually learn a spell and it will appear in your spellbook (true) or if it will be just cast on you (false). == Details == Just as almost any other quest gossip function, GetRewardSpell() returns data that refreshes only when you see corresponding gossip page. Any subsequent calls will return same data until next update. You can watch updates for data returned by GetRewardSpell() by registering for QUEST_DETAIL and QUEST_COMPLETE events. This means that if, for example, you talk to some NPC and check details of quest that offers spell reward and then talk to another NPC and check progress gossip page of quest you've accepted previously that offers spell reward too, this function will still return data of spell from first quest because progress page does not show rewards and their data is not updated.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)