Flav
Posts: 24 Join date: 2008-08-16
 | Subject: Use a skill when logging in Sat Aug 16, 2008 8:06 pm | |
| Open PlayerLoggedinHandler.java and replace | Code: | if (player.isGM()) { // GM gets super haste when logging in SkillFactory.getSkill(5101004).getEffect(1).applyTo(player); } |
with
| Code: | if (player.isGM()) { //SKILLS WHEN LOGGING IN AS GM SkillFactory.getSkill(5101004).getEffect(1).applyTo(player); } else { //SKILLS WHEN LOGGING IN AS NON GM //SkillFactory.getSkill(SKILL ID).getEffect(SKILL LEVEL).applyTo(player); } |
As you see, when you log in as GM you get Hide (5101004) on level 1. Now you can add more skills or remove some, do what ever you want. Also I added skills when logging in a non GM. Remove the // which makes the line to a comment and change SKILL ID with the id of the skill and SKILL LEVEL with the level of the skill. If you don't want to active skills when logging in as non GM just leave it like it is. What ever, as I said do with it what you want. This is just an example that you can see how to do it. |
|
f1r3
Posts: 17 Join date: 2008-08-18
 | Subject: Re: Use a skill when logging in Mon Aug 18, 2008 10:55 am | |
| this is for skill buffs right? will they dissappear after a while? |
|
Flav
Posts: 24 Join date: 2008-08-16
 | Subject: Re: Use a skill when logging in Mon Aug 18, 2008 11:02 am | |
| Yea, that's for the skill buffs and yes they will disappear when the time is over. |
|