Method | Description | |
---|---|---|
CheckCurrentObjective ( |
Checks and updates current obective's count.
|
|
Dispose ( ) : void |
Disposes quest script, removing all subscriptions.
|
|
GetDefaultRewardGroup ( ) : |
Returns the default reward group (0 or 1).
|
|
GetRewards ( int rewardGroup, QuestResult result ) : ICollection |
Returns rewards for the given group and result. Mainly used for PTJs. |
|
Init ( ) : bool |
Initializes the script, loading the information and adding it to the script manager.
|
|
OnComplete ( |
||
OnReceive ( |
||
QuestScript ( ) : System |
Creates a new quest script instance.
|
Method | Description | |
---|---|---|
AP ( short amount ) : |
||
AddObjective ( string ident, string description, int regionId, int x, int y, |
Adds objective that has to be cleared to complete the quest.
|
|
AddPrerequisite ( |
Adds prerequisite that has to be met before auto receiving the quest.
|
|
AddReward ( |
Adds reward the player can get for completing the quest.
|
|
AddReward ( int groupId, RewardGroupType type, QuestResult result, |
Adds reward to a specific reward group, that the player can select after completing the quest. Mainly used for PTJs. |
|
And ( ) : |
||
ClearDungeon ( string dungeonName ) : |
||
Collect ( int itemId, int amount ) : |
||
Completed ( int questId ) : |
||
Create ( int itemId, int amount, SkillId skillId, int quality = -1000 ) : |
||
Deliver ( int itemId, string npcName ) : |
||
Enchant ( int optionSetId ) : |
||
Equip ( string tag ) : |
||
EventActive ( string gameEventId ) : |
||
Exp ( int amount ) : |
||
ExplExp ( int amount ) : |
||
Gather ( int itemId, int amount ) : |
||
GetKeyword ( string keyword ) : |
||
Gold ( int amount ) : |
||
Item ( int itemId, int amount = 1 ) : |
||
Keyword ( string keyword ) : |
||
Kill ( int amount, string raceType ) : |
||
NotSkill ( SkillId skillId, SkillRank rank = SkillRank.Novice ) : |
||
Or ( ) : |
||
Pattern ( int itemId, int formId, int useCount ) : |
||
QuestScroll ( int questId ) : |
||
ReachLevel ( int level ) : |
||
ReachRank ( SkillId skillId, SkillRank rank ) : |
||
ReachedAge ( int age ) : |
||
ReachedLevel ( int level ) : |
||
ReachedRank ( SkillId skillId, SkillRank rank ) : |
||
ReachedTotalLevel ( int level ) : |
||
SetAdditionalInfo ( string info ) : void |
Sets additional info of quest.
|
|
SetCancelable ( bool cancelable ) : void |
Sets whether the quest can be canceled.
|
|
SetCategory ( QuestCategory category ) : void |
Sets quest's category, which is used to determin the tab it appears in.
|
|
SetClass ( QuestClass class_ ) : void |
Sets quest's class, which is displayed in squred brackets in front of its name.
|
|
SetDelay ( int delay ) : void |
Sets delay with which the quest arrives if sent via owl.
|
|
SetDescription ( string description ) : void |
Sets description of quest.
|
|
SetHours ( int start, int report, int deadline ) : void |
Sets PTJ hours.
|
|
SetIcon ( QuestIcon icon ) : void |
Sets quest's icon.
|
|
SetId ( int id ) : void |
Sets id of quest.
|
|
SetLevel ( QuestLevel level ) : void |
Sets quest's level (required for PTJ).
|
|
SetName ( string name ) : void |
Sets name of quest.
|
|
SetPtjType ( PtjType type ) : void |
Sets type for PTJs.
|
|
SetReceive ( Receive method ) : void |
Sets the way you receive the quest.
|
|
SetScrollId ( int id ) : void |
Sets id of the quest's item scroll.
|
|
SetType ( QuestType type ) : void |
Sets type of quest.
|
|
Skill ( SkillId skillId, SkillRank rank ) : |
||
Skill ( SkillId skillId, SkillRank rank, int training ) : |
||
StatBonus ( Stat stat, int amount ) : |
||
Talk ( string npcName ) : |
||
UseSkill ( SkillId skillId ) : |
||
WarpScroll ( int itemId, string portal ) : |
Method | Description | |
---|---|---|
CanMakeProgress ( |
Returns true if creature can make progress on this quest. Used from objective event handlers, to see if the quest should receive the progress. |
|
CheckPrerequisites ( |
Returns true if all prerequisites are met, receive method is auto, and the creature doesn't have the quest yet.
|
|
CreatureGotKeyword ( |
Checks and updates current objective.
|
|
OnCreatureCreatedOrProducedItem ( |
Updates Create objectives. Creation and Production events share same event due to having the same ObjectiveType code. |
|
OnCreatureGathered ( CollectEventArgs args ) : void |
Updates gathering objectives.
|
|
OnCreatureKilledByPlayer ( |
Updates kill objectives.
|
|
OnCreatureLevelUp ( |
Checks prerequisites.
|
|
OnPlayerClearedDungeon ( |
Updates ClearDungeon objectives.
|
|
OnPlayerCompletesQuest ( |
Checks prerequisites.
|
|
OnPlayerEquipsItem ( |
Updates equip objectives.
|
|
OnPlayerLoggedIn ( |
Checks and starts auto quests.
|
|
OnPlayerReceivesOrRemovesItem ( |
Updates collect objectives.
|
|
OnPlayerUsedSkill ( |
Updates UseSkill objectives.
|
|
OnSkillRankChanged ( |
Updates reach rank objectives.
|
|
UpdateQuest ( |
Updates quest on client(s), depending on its type.
|
protected AP ( short amount ) : |
||
amount | short | |
return |
protected AddObjective ( string ident, string description, int regionId, int x, int y, |
||
ident | string | |
description | string | |
regionId | int | |
x | int | |
y | int | |
objective | ||
return | void |
protected AddPrerequisite ( |
||
prerequisite | ||
return | void |
protected AddReward ( |
||
reward | ||
options | RewardOptions | |
return | void |
protected AddReward ( int groupId, RewardGroupType type, QuestResult result, |
||
groupId | int | |
type | RewardGroupType | |
result | QuestResult | |
reward | ||
options | RewardOptions | |
return | void |
protected And ( ) : |
||
return |
public CheckCurrentObjective ( |
||
creature | ||
return | void |
protected ClearDungeon ( string dungeonName ) : |
||
dungeonName | string | |
return |
protected Collect ( int itemId, int amount ) : |
||
itemId | int | |
amount | int | |
return |
protected Completed ( int questId ) : |
||
questId | int | |
return |
protected Create ( int itemId, int amount, SkillId skillId, int quality = -1000 ) : |
||
itemId | int | |
amount | int | |
skillId | SkillId | |
quality | int | |
return |
protected Deliver ( int itemId, string npcName ) : |
||
itemId | int | |
npcName | string | |
return |
protected Enchant ( int optionSetId ) : |
||
optionSetId | int | |
return |
protected Equip ( string tag ) : |
||
tag | string | |
return |
protected EventActive ( string gameEventId ) : |
||
gameEventId | string | |
return |
protected Exp ( int amount ) : |
||
amount | int | |
return |
protected ExplExp ( int amount ) : |
||
amount | int | |
return |
protected Gather ( int itemId, int amount ) : |
||
itemId | int | |
amount | int | |
return |
public GetDefaultRewardGroup ( ) : |
||
return |
protected GetKeyword ( string keyword ) : |
||
keyword | string | |
return |
public GetRewards ( int rewardGroup, QuestResult result ) : ICollection |
||
rewardGroup | int | |
result | QuestResult | |
return | ICollection |
protected Gold ( int amount ) : |
||
amount | int | |
return |
protected Item ( int itemId, int amount = 1 ) : |
||
itemId | int | |
amount | int | |
return |
protected Keyword ( string keyword ) : |
||
keyword | string | |
return |
protected Kill ( int amount, string raceType ) : |
||
amount | int | |
raceType | string | |
return |
protected NotSkill ( SkillId skillId, SkillRank rank = SkillRank.Novice ) : |
||
skillId | SkillId | |
rank | SkillRank | |
return |
public OnComplete ( |
||
creature | ||
return | void |
public OnReceive ( |
||
creature | ||
return | void |
protected Or ( ) : |
||
return |
protected Pattern ( int itemId, int formId, int useCount ) : |
||
itemId | int | |
formId | int | |
useCount | int | |
return |
protected QuestScroll ( int questId ) : |
||
questId | int | |
return |
protected ReachLevel ( int level ) : |
||
level | int | |
return |
protected ReachRank ( SkillId skillId, SkillRank rank ) : |
||
skillId | SkillId | |
rank | SkillRank | |
return |
protected ReachedAge ( int age ) : |
||
age | int | |
return |
protected ReachedLevel ( int level ) : |
||
level | int | |
return |
protected ReachedRank ( SkillId skillId, SkillRank rank ) : |
||
skillId | SkillId | |
rank | SkillRank | |
return |
protected ReachedTotalLevel ( int level ) : |
||
level | int | |
return |
protected SetAdditionalInfo ( string info ) : void | ||
info | string | |
return | void |
protected SetCancelable ( bool cancelable ) : void | ||
cancelable | bool | |
return | void |
protected SetCategory ( QuestCategory category ) : void | ||
category | QuestCategory | |
return | void |
protected SetClass ( QuestClass class_ ) : void | ||
class_ | QuestClass | |
return | void |
protected SetDescription ( string description ) : void | ||
description | string | |
return | void |
protected SetHours ( int start, int report, int deadline ) : void | ||
start | int | |
report | int | |
deadline | int | |
return | void |
protected SetLevel ( QuestLevel level ) : void | ||
level | QuestLevel | |
return | void |
protected SetReceive ( Receive method ) : void | ||
method | Receive | |
return | void |
protected Skill ( SkillId skillId, SkillRank rank ) : |
||
skillId | SkillId | |
rank | SkillRank | |
return |
protected Skill ( SkillId skillId, SkillRank rank, int training ) : |
||
skillId | SkillId | |
rank | SkillRank | |
training | int | |
return |
protected StatBonus ( Stat stat, int amount ) : |
||
stat | Stat | |
amount | int | |
return |
protected Talk ( string npcName ) : |
||
npcName | string | |
return |
protected UseSkill ( SkillId skillId ) : |
||
skillId | SkillId | |
return |
protected WarpScroll ( int itemId, string portal ) : |
||
itemId | int | |
portal | string | |
return |