public class ClassAbilityPlugin extends EnginePlugin
Modifier and Type | Class and Description |
---|---|
class |
ClassAbilityPlugin.ClassAbilityAddAbilityHook
Deprecated.
|
class |
ClassAbilityPlugin.ClassAbilityHandleXpHook |
class |
ClassAbilityPlugin.ClassAbilitySubObjectHook |
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, EnginePlugin.GetPropertyNamesMessage, EnginePlugin.LoadHook, EnginePlugin.LoadSubObjHook, EnginePlugin.PluginActivateHook, EnginePlugin.PluginStateMessage, EnginePlugin.SaveHook, EnginePlugin.SaveSubObjHook, EnginePlugin.SetPropertyMessage, EnginePlugin.SubObjData, EnginePlugin.TransferFilter, EnginePlugin.TransferObjectMessage, EnginePlugin.UnloadHook, EnginePlugin.UnloadSubObjHook
Modifier and Type | Field and Description |
---|---|
static boolean |
ACTION_BAR_SWAP_ACTIONS
Game Settings that allow swap actions in action bars
Default true
|
protected static AuthDatabase |
authDB |
static boolean |
AUTO_ADD_ABILITIES_TO_ACTION_BAR |
static float |
EXP_GROUP_ADD_PERCENTAGE |
static float |
EXP_MAX_DISTANCE |
static int |
EXP_MAX_LEVEL_DIFFERENCE |
static java.lang.String |
EXPERIENCE_MAX_STAT |
static java.lang.String |
EXPERIENCE_STAT |
static java.lang.String |
KILL_ADD_EXP_LEV_STAT |
static java.lang.String |
KILL_EXP_STAT |
static java.lang.String |
LEVEL_STAT |
static boolean |
LOST_LEVEL |
static int |
MAX_SKILL_ABILITIES |
static java.lang.String |
MIN_MOB_LEVEL |
static float |
MOB_EXP_RATE_BOSS |
static float |
MOB_EXP_RATE_NORMAL |
static float |
MOB_EXP_RATE_RARE |
static int |
POINTS_PER_SKILL_LEVEL |
protected static java.util.HashMap<java.lang.String,ProfessionObject> |
professions
Holds the list of professions
|
static int |
SKILL_POINTS_GIVEN_PER_LEVEL |
static int |
SKILL_STARTING_MAX |
static float |
SKILL_UP_RATE |
protected static java.util.Map<java.lang.String,AgisStatDef> |
statDefMap |
static int |
TALENT_POINTS_GIVEN_PER_LEVEL |
static int |
TOTAL_SKILL_MAX |
static boolean |
USE_SKILL_MAX |
static boolean |
USE_SKILL_PURCHASE_POINTS |
static boolean |
USE_TALENT_PURCHASE_POINTS |
DevMode, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_RELOAD_TEMPLATES, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, selectionFilter, selectionSubscription, subObjectSubscription
NO_FLAGS, RESPONSE_EXPECTED
Constructor and Description |
---|
ClassAbilityPlugin() |
Modifier and Type | Method and Description |
---|---|
static void |
calculatePlayerStats(CombatInfo info,
CharacterTemplate tmpl) |
static void |
createStats(ClassAbilityObject caobj,
AgisAbility ability,
java.lang.Integer xp_use)
This method creates stats based on the passed in ability, and assigns them to the player via the
created players' ClassAbilityObject.
|
static void |
createStats(ClassAbilityObject caobj,
AgisSkill skill,
java.lang.Integer xp_use)
This method creates stats based on the passed in skill, and assigns them to the player via the
created players' ClassAbilityObject.
|
static CharacterTemplate |
getCharacterTemplate(java.lang.String key) |
static ClassAbilityObject |
getClassAbilityObject(OID oid) |
static int |
GetSkillPointCost(int pointsPurchased) |
static int |
GetStartingXpReq(int xpProfile) |
static void |
giveExp(OID oid,
int exp) |
static void |
handleLevelDown(CombatInfo player,
int newLevel)
This method calculates what a players stats should be based on their new level
|
static void |
handleLevelingProfessionPlayer(CombatInfo player,
int lvl)
This method handles leveling the player profession based on the level that they have reached.
|
static void |
handleLevelUp(CombatInfo player,
int newLevel)
This method calculates what a players stats should be based on their new level
|
static void |
handleSkillAbilityRanking(ClassAbilityObject player,
int statid,
int lvl) |
static AgisStatDef |
lookupStatDef(java.lang.String name) |
static void |
lostExp(OID oid,
int exp) |
void |
onActivate()
for developers extending the EnginePlugin object, it may
be easier to use the onActivate() method which gets
called when the plugin is being activated by the Engine.
|
void |
registerHooks() |
static void |
registerProfession(ProfessionObject profession)
This method allows registering a profession.
|
static void |
registerStat(AgisStatDef stat)
Register the stat with the specific player, since only the player themselves have to be aware of what stats they
should be paying attention to.
|
static void |
registerStat(AgisStatDef stat,
java.lang.String... dependencies) |
protected void |
ReloadTemplates(Message msg) |
static void |
rewardExpForKill(CombatInfo target,
OID attackerOid,
float expPercent)
This function is used when a target dies to give the player XP from the kill.
|
static void |
sendSkillUpdate(CombatInfo info) |
activate, createMBeanInstance, createSubscription, getHookManager, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, getStatusMap, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObject
protected static java.util.HashMap<java.lang.String,ProfessionObject> professions
protected static java.util.Map<java.lang.String,AgisStatDef> statDefMap
protected static AuthDatabase authDB
public static final int POINTS_PER_SKILL_LEVEL
public static final int MAX_SKILL_ABILITIES
public static int TOTAL_SKILL_MAX
public static float SKILL_UP_RATE
public static boolean USE_SKILL_PURCHASE_POINTS
public static int SKILL_POINTS_GIVEN_PER_LEVEL
public static boolean USE_TALENT_PURCHASE_POINTS
public static int TALENT_POINTS_GIVEN_PER_LEVEL
public static boolean USE_SKILL_MAX
public static int SKILL_STARTING_MAX
public static int EXP_MAX_LEVEL_DIFFERENCE
public static float EXP_GROUP_ADD_PERCENTAGE
public static float EXP_MAX_DISTANCE
public static boolean AUTO_ADD_ABILITIES_TO_ACTION_BAR
public static float MOB_EXP_RATE_NORMAL
public static float MOB_EXP_RATE_RARE
public static float MOB_EXP_RATE_BOSS
public static boolean LOST_LEVEL
public static final java.lang.String MIN_MOB_LEVEL
public static final java.lang.String KILL_EXP_STAT
public static final java.lang.String KILL_ADD_EXP_LEV_STAT
public static final java.lang.String EXPERIENCE_STAT
public static final java.lang.String EXPERIENCE_MAX_STAT
public static final java.lang.String LEVEL_STAT
public static boolean ACTION_BAR_SWAP_ACTIONS
public void onActivate()
EnginePlugin
onActivate
in class EnginePlugin
public void registerHooks()
protected void ReloadTemplates(Message msg)
ReloadTemplates
in class EnginePlugin
public static void createStats(ClassAbilityObject caobj, AgisSkill skill, java.lang.Integer xp_use)
caobj
- skill
- xp_use
- public static void createStats(ClassAbilityObject caobj, AgisAbility ability, java.lang.Integer xp_use)
caobj
- ability
- xp_use
- public static void registerStat(AgisStatDef stat)
stat
- public static void registerStat(AgisStatDef stat, java.lang.String... dependencies)
public static void registerProfession(ProfessionObject profession)
profession
- public static AgisStatDef lookupStatDef(java.lang.String name)
public static void sendSkillUpdate(CombatInfo info)
public static ClassAbilityObject getClassAbilityObject(OID oid)
public static void rewardExpForKill(CombatInfo target, OID attackerOid, float expPercent)
target
- attackerOid
- expPercent
- public static void giveExp(OID oid, int exp)
public static void lostExp(OID oid, int exp)
public static void handleLevelDown(CombatInfo player, int newLevel)
player
- - the combat Info of the player levelling upnewLevel
- - the level the player is nowpublic static void handleLevelUp(CombatInfo player, int newLevel)
player
- - the combat Info of the player levelling upnewLevel
- - the level the player is nowpublic static void calculatePlayerStats(CombatInfo info, CharacterTemplate tmpl)
public static void handleLevelingProfessionPlayer(CombatInfo player, int lvl)
player
- lvl
- public static void handleSkillAbilityRanking(ClassAbilityObject player, int statid, int lvl)
public static int GetSkillPointCost(int pointsPurchased)
public static int GetStartingXpReq(int xpProfile)
public static CharacterTemplate getCharacterTemplate(java.lang.String key)