![]() |
Dawn of Light - Class documentation 2900
This is the Dawn of Light project
|
The artifact manager. More...
Public Types | |
enum | Book { NoPage = 0x0, Page1 = 0x1, Page2 = 0x2, Page3 = 0x4, AllPages = 0x7 } |
Static Public Member Functions | |
static bool | Init () |
static int | LoadArtifacts () |
Load artifacts from the DB. | |
static String | GetArtifactIDFromItemID (String itemID) |
Find the matching artifact for the item. | |
static List< Artifact > | GetArtifacts () |
Get all artifacts. | |
static List< Artifact > | GetArtifacts (String zone) |
Find all artifacts from a particular zone. | |
static int | GetReuseTimer (InventoryArtifact item) |
Get the cooldown for this artifact. | |
static String[] | GetScholars (String artifactID) |
Get a list of all scholars studying this artifact. | |
static bool | IsArtifact (InventoryItem item) |
Checks whether or not the item is an artifact. | |
static int | GetCurrentLevel (InventoryArtifact item) |
Determine artifact level from total XP. | |
static int | GetXPGainedForLevel (InventoryArtifact item) |
Calculate the XP gained towards the next level (in percent). | |
static int[] | GetLevelRequirements (String artifactID) |
Get a list of all level requirements for this artifact. | |
static String | GetEarnsXP (InventoryArtifact item) |
What this artifact gains XP from. | |
static void | PlayerGainedExperience (DOLEvent e, object sender, EventArgs args) |
Called from GameEventMgr when player has gained experience. | |
static Dictionary< String, ItemTemplate > | GetArtifactVersions (String artifactID, eCharacterClass charClass, eRealm realm) |
Create a hashtable containing all item templates that are valid for this class. | |
static Type | GetQuestType (String questTypeString) |
Get the quest type from the quest type string. | |
static Type | GetEncounterType (String artifactID) |
Get the quest type for the encounter from the artifact ID. | |
static bool | GrantArtifactBountyCredit (GamePlayer player, String bountyCredit) |
Grant bounty point credit for an artifact. | |
static bool | GrantArtifactCredit (GamePlayer player, String artifactID) |
Grant credit for an artifact. | |
static String | GetArtifactID (String bookID) |
Find the matching artifact for this book. | |
static bool | CanCombine (InventoryItem item1, InventoryItem item2) |
Check whether these 2 items can be combined. | |
static Book | GetPageNumbers (InventoryItem item, ref String artifactID) |
Check which scroll pages are in this item. | |
static List< String > | GetArtifacts (GamePlayer player) |
Find all artifacts that this player carries. | |
static Artifact | GetArtifact (InventoryItem item) |
Get the artifact for this scroll/book item. | |
static bool | HasBook (GamePlayer player, String artifactID) |
Whether or not the player has the complete book for this artifact in his backpack. | |
static bool | IsArtifactScroll (InventoryItem item) |
Whether or not the item is an artifact scroll. | |
static WorldInventoryItem | CombineScrolls (InventoryItem scroll1, InventoryItem scroll2, ref bool combinesToBook) |
Combine 2 scrolls. | |
static WorldInventoryItem | CreateScroll (String artifactID, int pageNumber) |
Create a scroll from a particular book. |
The artifact manager.
<author>Aredhel</author>
static bool DOL.GS.ArtifactMgr.CanCombine | ( | InventoryItem | item1, |
InventoryItem | item2 | ||
) | [static] |
Check whether these 2 items can be combined.
item1 | |
item2 |
static WorldInventoryItem DOL.GS.ArtifactMgr.CombineScrolls | ( | InventoryItem | scroll1, |
InventoryItem | scroll2, | ||
ref bool | combinesToBook | ||
) | [static] |
Combine 2 scrolls.
scroll1 | |
scroll2 | |
combinesToBook |
static WorldInventoryItem DOL.GS.ArtifactMgr.CreateScroll | ( | String | artifactID, |
int | pageNumber | ||
) | [static] |
Create a scroll from a particular book.
artifactID | The artifact's ID. |
pageNumber | Scroll page number (1-3). |
static Artifact DOL.GS.ArtifactMgr.GetArtifact | ( | InventoryItem | item | ) | [static] |
Get the artifact for this scroll/book item.
item |
static String DOL.GS.ArtifactMgr.GetArtifactID | ( | String | bookID | ) | [static] |
Find the matching artifact for this book.
bookID |
static String DOL.GS.ArtifactMgr.GetArtifactIDFromItemID | ( | String | itemID | ) | [static] |
Find the matching artifact for the item.
itemID |
static List<Artifact> DOL.GS.ArtifactMgr.GetArtifacts | ( | ) | [static] |
Get all artifacts.
zone |
static List<Artifact> DOL.GS.ArtifactMgr.GetArtifacts | ( | String | zone | ) | [static] |
Find all artifacts from a particular zone.
zone |
static List<String> DOL.GS.ArtifactMgr.GetArtifacts | ( | GamePlayer | player | ) | [static] |
Find all artifacts that this player carries.
player |
static Dictionary<String, ItemTemplate> DOL.GS.ArtifactMgr.GetArtifactVersions | ( | String | artifactID, |
eCharacterClass | charClass, | ||
eRealm | realm | ||
) | [static] |
Create a hashtable containing all item templates that are valid for this class.
artifactID | |
charClass | |
realm |
static int DOL.GS.ArtifactMgr.GetCurrentLevel | ( | InventoryArtifact | item | ) | [static] |
Determine artifact level from total XP.
item |
static String DOL.GS.ArtifactMgr.GetEarnsXP | ( | InventoryArtifact | item | ) | [static] |
What this artifact gains XP from.
item |
static Type DOL.GS.ArtifactMgr.GetEncounterType | ( | String | artifactID | ) | [static] |
Get the quest type for the encounter from the artifact ID.
artifactID |
static int [] DOL.GS.ArtifactMgr.GetLevelRequirements | ( | String | artifactID | ) | [static] |
Get a list of all level requirements for this artifact.
artifactID |
static Book DOL.GS.ArtifactMgr.GetPageNumbers | ( | InventoryItem | item, |
ref String | artifactID | ||
) | [static] |
Check which scroll pages are in this item.
item | |
artifactID |
static Type DOL.GS.ArtifactMgr.GetQuestType | ( | String | questTypeString | ) | [static] |
Get the quest type from the quest type string.
questTypeString |
static int DOL.GS.ArtifactMgr.GetReuseTimer | ( | InventoryArtifact | item | ) | [static] |
Get the cooldown for this artifact.
item |
static String [] DOL.GS.ArtifactMgr.GetScholars | ( | String | artifactID | ) | [static] |
Get a list of all scholars studying this artifact.
artifactID |
static int DOL.GS.ArtifactMgr.GetXPGainedForLevel | ( | InventoryArtifact | item | ) | [static] |
Calculate the XP gained towards the next level (in percent).
item |
static bool DOL.GS.ArtifactMgr.GrantArtifactBountyCredit | ( | GamePlayer | player, |
String | bountyCredit | ||
) | [static] |
Grant bounty point credit for an artifact.
player | |
artifactID |
static bool DOL.GS.ArtifactMgr.GrantArtifactCredit | ( | GamePlayer | player, |
String | artifactID | ||
) | [static] |
Grant credit for an artifact.
player | |
artifactID |
static bool DOL.GS.ArtifactMgr.HasBook | ( | GamePlayer | player, |
String | artifactID | ||
) | [static] |
Whether or not the player has the complete book for this artifact in his backpack.
player | |
artifactID |
static bool DOL.GS.ArtifactMgr.IsArtifact | ( | InventoryItem | item | ) | [static] |
Checks whether or not the item is an artifact.
item |
static bool DOL.GS.ArtifactMgr.IsArtifactScroll | ( | InventoryItem | item | ) | [static] |
Whether or not the item is an artifact scroll.
item |
static int DOL.GS.ArtifactMgr.LoadArtifacts | ( | ) | [static] |
Load artifacts from the DB.
static void DOL.GS.ArtifactMgr.PlayerGainedExperience | ( | DOLEvent | e, |
object | sender, | ||
EventArgs | args | ||
) | [static] |
Called from GameEventMgr when player has gained experience.
e | |
sender | |
args |