Function CreateQuestBJ
- Line
- 5716
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- integer questType, string title, string description, string iconPath
- Returns
- quest
| 5716 | function CreateQuestBJ takes integer questType, string title, string description, string iconPath returns quest |
| 5717 | local boolean required = (questType == bj_QUESTTYPE_REQ_DISCOVERED) or (questType == bj_QUESTTYPE_REQ_UNDISCOVERED) |
| 5718 | local boolean discovered = (questType == bj_QUESTTYPE_REQ_DISCOVERED) or (questType == bj_QUESTTYPE_OPT_DISCOVERED) |
| 5719 | |
| 5720 | set bj_lastCreatedQuest = CreateQuest() |
| 5721 | call QuestSetTitle(bj_lastCreatedQuest, title) |
| 5722 | call QuestSetDescription(bj_lastCreatedQuest, description) |
| 5723 | call QuestSetIconPath(bj_lastCreatedQuest, iconPath) |
| 5724 | call QuestSetRequired(bj_lastCreatedQuest, required) |
| 5725 | call QuestSetDiscovered(bj_lastCreatedQuest, discovered) |
| 5726 | call QuestSetCompleted(bj_lastCreatedQuest, false) |
| 5727 | return bj_lastCreatedQuest |
| 5728 | endfunction
|