- Joined
- Jul 13, 2008
- Messages
- 419
- Reaction score
- 217
This is just a small release, somebody asked me on MSN for this.
Search these lines in PlayerLoggedinHandler.java:
If you want to add a skill you have to add this:
...under this (which is hide):
...don't forget to replace SKILL ID with the skill id and SKILL LEVEL with the skill level.
You can also comment or delete the hide line if you want to disable hide when logging in as GM.
If you want to give skills to normal players you can use ELSE, here is an example:
...this would give HIDE (LEVEL 1) to logging in GMs and IRON BODY (LEVEL 10) to logging in NON GMs.
I didn't test it but it should work...
Search these lines in PlayerLoggedinHandler.java:
Code:
if (player.isGM()) {
// GM gets super haste when logging in
SkillFactory.getSkill(5101004).getEffect(1).applyTo(player);
}
If you want to add a skill you have to add this:
Code:
SkillFactory.getSkill(SKILL ID).getEffect(SKILL LEVEL).applyTo(player);
Code:
SkillFactory.getSkill(5101004).getEffect(1).applyTo(player);
You can also comment or delete the hide line if you want to disable hide when logging in as GM.
If you want to give skills to normal players you can use ELSE, here is an example:
Code:
if (player.isGM()) { //SKILLS WHEN LOGGING IN AS GM
SkillFactory.getSkill(5101004).getEffect(1).applyTo(player); //HIDE
} else { //SKILLS WHEN LOGGING IN AS NON GM
SkillFactory.getSkill(1001003).getEffect(10).applyTo(player); //IRON BODY
}
I didn't test it but it should work...
Last edited: