C# Class Aura.Channel.Scripting.Scripts.QuestScript

Inheritance: Aura.Channel.Scripting.Scripts.BaseScript
Afficher le fichier Open project: aura-project/aura

Méthodes publiques

Méthode Description
CheckCurrentObjective ( Creature creature ) : void

Checks and updates current obective's count.

Dispose ( ) : void

Disposes quest script, removing all subscriptions.

GetDefaultRewardGroup ( ) : QuestRewardGroup

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 ( Creature creature ) : void
OnReceive ( Creature creature ) : void
QuestScript ( ) : System

Creates a new quest script instance.

Méthodes protégées

Méthode Description
AP ( short amount ) : QuestReward
AddObjective ( string ident, string description, int regionId, int x, int y, QuestObjective objective ) : void

Adds objective that has to be cleared to complete the quest.

AddPrerequisite ( QuestPrerequisite prerequisite ) : void

Adds prerequisite that has to be met before auto receiving the quest.

AddReward ( QuestReward reward, RewardOptions options = RewardOptions.None ) : void

Adds reward the player can get for completing the quest.

AddReward ( int groupId, RewardGroupType type, QuestResult result, QuestReward reward, RewardOptions options = RewardOptions.None ) : void

Adds reward to a specific reward group, that the player can select after completing the quest.

Mainly used for PTJs.

And ( ) : QuestPrerequisite
ClearDungeon ( string dungeonName ) : QuestObjective
Collect ( int itemId, int amount ) : QuestObjective
Completed ( int questId ) : QuestPrerequisite
Create ( int itemId, int amount, SkillId skillId, int quality = -1000 ) : QuestObjective
Deliver ( int itemId, string npcName ) : QuestObjective
Enchant ( int optionSetId ) : QuestReward
Equip ( string tag ) : QuestObjective
EventActive ( string gameEventId ) : QuestPrerequisite
Exp ( int amount ) : QuestReward
ExplExp ( int amount ) : QuestReward
Gather ( int itemId, int amount ) : QuestObjective
GetKeyword ( string keyword ) : QuestObjective
Gold ( int amount ) : QuestReward
Item ( int itemId, int amount = 1 ) : QuestReward
Keyword ( string keyword ) : QuestReward
Kill ( int amount, string raceType ) : QuestObjective
NotSkill ( SkillId skillId, SkillRank rank = SkillRank.Novice ) : QuestPrerequisite
Or ( ) : QuestPrerequisite
Pattern ( int itemId, int formId, int useCount ) : QuestReward
QuestScroll ( int questId ) : QuestReward
ReachLevel ( int level ) : QuestObjective
ReachRank ( SkillId skillId, SkillRank rank ) : QuestObjective
ReachedAge ( int age ) : QuestPrerequisite
ReachedLevel ( int level ) : QuestPrerequisite
ReachedRank ( SkillId skillId, SkillRank rank ) : QuestPrerequisite
ReachedTotalLevel ( int level ) : QuestPrerequisite
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 ) : QuestReward
Skill ( SkillId skillId, SkillRank rank, int training ) : QuestReward
StatBonus ( Stat stat, int amount ) : QuestReward
Talk ( string npcName ) : QuestObjective
UseSkill ( SkillId skillId ) : QuestObjective
WarpScroll ( int itemId, string portal ) : QuestReward

Private Methods

Méthode Description
CanMakeProgress ( Creature creature, Aura.Channel.World.Quests.Quest quest ) : bool

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 ( Creature character ) : bool

Returns true if all prerequisites are met, receive method is auto, and the creature doesn't have the quest yet.

CreatureGotKeyword ( Creature creature, int keywordId ) : void

Checks and updates current objective.

OnCreatureCreatedOrProducedItem ( EventArgs args ) : void

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 ( Creature creature, Creature killer ) : void

Updates kill objectives.

OnCreatureLevelUp ( Creature creature ) : void

Checks prerequisites.

OnPlayerClearedDungeon ( Creature creature, Dungeon dungeon ) : void

Updates ClearDungeon objectives.

OnPlayerCompletesQuest ( Creature creature, int questId ) : void

Checks prerequisites.

OnPlayerEquipsItem ( Creature creature, Item item ) : void

Updates equip objectives.

OnPlayerLoggedIn ( Creature character ) : void

Checks and starts auto quests.

OnPlayerReceivesOrRemovesItem ( Creature creature, int itemId, int amount ) : void

Updates collect objectives.

OnPlayerUsedSkill ( Creature creature, Skill skill ) : void

Updates UseSkill objectives.

OnSkillRankChanged ( Creature creature, Skill skill ) : void

Updates reach rank objectives.

UpdateQuest ( Creature creature, Aura.Channel.World.Quests.Quest quest ) : void

Updates quest on client(s), depending on its type.

Method Details

AP() protected méthode

protected AP ( short amount ) : QuestReward
amount short
Résultat Aura.Channel.World.Quests.QuestReward

AddObjective() protected méthode

Adds objective that has to be cleared to complete the quest.
protected AddObjective ( string ident, string description, int regionId, int x, int y, QuestObjective objective ) : void
ident string
description string
regionId int
x int
y int
objective Aura.Channel.World.Quests.QuestObjective
Résultat void

AddPrerequisite() protected méthode

Adds prerequisite that has to be met before auto receiving the quest.
protected AddPrerequisite ( QuestPrerequisite prerequisite ) : void
prerequisite Aura.Channel.World.Quests.QuestPrerequisite
Résultat void

AddReward() protected méthode

Adds reward the player can get for completing the quest.
protected AddReward ( QuestReward reward, RewardOptions options = RewardOptions.None ) : void
reward Aura.Channel.World.Quests.QuestReward
options RewardOptions
Résultat void

AddReward() protected méthode

Adds reward to a specific reward group, that the player can select after completing the quest.
Mainly used for PTJs.
protected AddReward ( int groupId, RewardGroupType type, QuestResult result, QuestReward reward, RewardOptions options = RewardOptions.None ) : void
groupId int
type RewardGroupType
result QuestResult
reward Aura.Channel.World.Quests.QuestReward
options RewardOptions
Résultat void

And() protected méthode

protected And ( ) : QuestPrerequisite
Résultat Aura.Channel.World.Quests.QuestPrerequisite

CheckCurrentObjective() public méthode

Checks and updates current obective's count.
public CheckCurrentObjective ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

ClearDungeon() protected méthode

protected ClearDungeon ( string dungeonName ) : QuestObjective
dungeonName string
Résultat Aura.Channel.World.Quests.QuestObjective

Collect() protected méthode

protected Collect ( int itemId, int amount ) : QuestObjective
itemId int
amount int
Résultat Aura.Channel.World.Quests.QuestObjective

Completed() protected méthode

protected Completed ( int questId ) : QuestPrerequisite
questId int
Résultat Aura.Channel.World.Quests.QuestPrerequisite

Create() protected méthode

protected Create ( int itemId, int amount, SkillId skillId, int quality = -1000 ) : QuestObjective
itemId int
amount int
skillId SkillId
quality int
Résultat Aura.Channel.World.Quests.QuestObjective

Deliver() protected méthode

protected Deliver ( int itemId, string npcName ) : QuestObjective
itemId int
npcName string
Résultat Aura.Channel.World.Quests.QuestObjective

Dispose() public méthode

Disposes quest script, removing all subscriptions.
public Dispose ( ) : void
Résultat void

Enchant() protected méthode

protected Enchant ( int optionSetId ) : QuestReward
optionSetId int
Résultat Aura.Channel.World.Quests.QuestReward

Equip() protected méthode

protected Equip ( string tag ) : QuestObjective
tag string
Résultat Aura.Channel.World.Quests.QuestObjective

EventActive() protected méthode

protected EventActive ( string gameEventId ) : QuestPrerequisite
gameEventId string
Résultat Aura.Channel.World.Quests.QuestPrerequisite

Exp() protected méthode

protected Exp ( int amount ) : QuestReward
amount int
Résultat Aura.Channel.World.Quests.QuestReward

ExplExp() protected méthode

protected ExplExp ( int amount ) : QuestReward
amount int
Résultat Aura.Channel.World.Quests.QuestReward

Gather() protected méthode

protected Gather ( int itemId, int amount ) : QuestObjective
itemId int
amount int
Résultat Aura.Channel.World.Quests.QuestObjective

GetDefaultRewardGroup() public méthode

Returns the default reward group (0 or 1).
public GetDefaultRewardGroup ( ) : QuestRewardGroup
Résultat Aura.Channel.World.Quests.QuestRewardGroup

GetKeyword() protected méthode

protected GetKeyword ( string keyword ) : QuestObjective
keyword string
Résultat Aura.Channel.World.Quests.QuestObjective

GetRewards() public méthode

Returns rewards for the given group and result.
Mainly used for PTJs.
public GetRewards ( int rewardGroup, QuestResult result ) : ICollection
rewardGroup int
result QuestResult
Résultat ICollection

Gold() protected méthode

protected Gold ( int amount ) : QuestReward
amount int
Résultat Aura.Channel.World.Quests.QuestReward

Init() public méthode

Initializes the script, loading the information and adding it to the script manager.
public Init ( ) : bool
Résultat bool

Item() protected méthode

protected Item ( int itemId, int amount = 1 ) : QuestReward
itemId int
amount int
Résultat Aura.Channel.World.Quests.QuestReward

Keyword() protected méthode

protected Keyword ( string keyword ) : QuestReward
keyword string
Résultat Aura.Channel.World.Quests.QuestReward

Kill() protected méthode

protected Kill ( int amount, string raceType ) : QuestObjective
amount int
raceType string
Résultat Aura.Channel.World.Quests.QuestObjective

NotSkill() protected méthode

protected NotSkill ( SkillId skillId, SkillRank rank = SkillRank.Novice ) : QuestPrerequisite
skillId SkillId
rank SkillRank
Résultat Aura.Channel.World.Quests.QuestPrerequisite

OnComplete() public méthode

public OnComplete ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

OnReceive() public méthode

public OnReceive ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

Or() protected méthode

protected Or ( ) : QuestPrerequisite
Résultat Aura.Channel.World.Quests.QuestPrerequisite

Pattern() protected méthode

protected Pattern ( int itemId, int formId, int useCount ) : QuestReward
itemId int
formId int
useCount int
Résultat Aura.Channel.World.Quests.QuestReward

QuestScript() public méthode

Creates a new quest script instance.
public QuestScript ( ) : System
Résultat System

QuestScroll() protected méthode

protected QuestScroll ( int questId ) : QuestReward
questId int
Résultat Aura.Channel.World.Quests.QuestReward

ReachLevel() protected méthode

protected ReachLevel ( int level ) : QuestObjective
level int
Résultat Aura.Channel.World.Quests.QuestObjective

ReachRank() protected méthode

protected ReachRank ( SkillId skillId, SkillRank rank ) : QuestObjective
skillId SkillId
rank SkillRank
Résultat Aura.Channel.World.Quests.QuestObjective

ReachedAge() protected méthode

protected ReachedAge ( int age ) : QuestPrerequisite
age int
Résultat Aura.Channel.World.Quests.QuestPrerequisite

ReachedLevel() protected méthode

protected ReachedLevel ( int level ) : QuestPrerequisite
level int
Résultat Aura.Channel.World.Quests.QuestPrerequisite

ReachedRank() protected méthode

protected ReachedRank ( SkillId skillId, SkillRank rank ) : QuestPrerequisite
skillId SkillId
rank SkillRank
Résultat Aura.Channel.World.Quests.QuestPrerequisite

ReachedTotalLevel() protected méthode

protected ReachedTotalLevel ( int level ) : QuestPrerequisite
level int
Résultat Aura.Channel.World.Quests.QuestPrerequisite

SetAdditionalInfo() protected méthode

Sets additional info of quest.
protected SetAdditionalInfo ( string info ) : void
info string
Résultat void

SetCancelable() protected méthode

Sets whether the quest can be canceled.
protected SetCancelable ( bool cancelable ) : void
cancelable bool
Résultat void

SetCategory() protected méthode

Sets quest's category, which is used to determin the tab it appears in.
protected SetCategory ( QuestCategory category ) : void
category QuestCategory
Résultat void

SetClass() protected méthode

Sets quest's class, which is displayed in squred brackets in front of its name.
protected SetClass ( QuestClass class_ ) : void
class_ QuestClass
Résultat void

SetDelay() protected méthode

Sets delay with which the quest arrives if sent via owl.
protected SetDelay ( int delay ) : void
delay int
Résultat void

SetDescription() protected méthode

Sets description of quest.
protected SetDescription ( string description ) : void
description string
Résultat void

SetHours() protected méthode

Sets PTJ hours.
protected SetHours ( int start, int report, int deadline ) : void
start int
report int
deadline int
Résultat void

SetIcon() protected méthode

Sets quest's icon.
protected SetIcon ( QuestIcon icon ) : void
icon QuestIcon
Résultat void

SetId() protected méthode

Sets id of quest.
protected SetId ( int id ) : void
id int
Résultat void

SetLevel() protected méthode

Sets quest's level (required for PTJ).
protected SetLevel ( QuestLevel level ) : void
level QuestLevel
Résultat void

SetName() protected méthode

Sets name of quest.
protected SetName ( string name ) : void
name string
Résultat void

SetPtjType() protected méthode

Sets type for PTJs.
protected SetPtjType ( PtjType type ) : void
type PtjType
Résultat void

SetReceive() protected méthode

Sets the way you receive the quest.
protected SetReceive ( Receive method ) : void
method Receive
Résultat void

SetScrollId() protected méthode

Sets id of the quest's item scroll.
protected SetScrollId ( int id ) : void
id int
Résultat void

SetType() protected méthode

Sets type of quest.
protected SetType ( QuestType type ) : void
type QuestType
Résultat void

Skill() protected méthode

protected Skill ( SkillId skillId, SkillRank rank ) : QuestReward
skillId SkillId
rank SkillRank
Résultat Aura.Channel.World.Quests.QuestReward

Skill() protected méthode

protected Skill ( SkillId skillId, SkillRank rank, int training ) : QuestReward
skillId SkillId
rank SkillRank
training int
Résultat Aura.Channel.World.Quests.QuestReward

StatBonus() protected méthode

protected StatBonus ( Stat stat, int amount ) : QuestReward
stat Stat
amount int
Résultat Aura.Channel.World.Quests.QuestReward

Talk() protected méthode

protected Talk ( string npcName ) : QuestObjective
npcName string
Résultat Aura.Channel.World.Quests.QuestObjective

UseSkill() protected méthode

protected UseSkill ( SkillId skillId ) : QuestObjective
skillId SkillId
Résultat Aura.Channel.World.Quests.QuestObjective

WarpScroll() protected méthode

protected WarpScroll ( int itemId, string portal ) : QuestReward
itemId int
portal string
Résultat Aura.Channel.World.Quests.QuestReward