HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Post new topic   Reply to topicShare | 
 

 Use a skill when logging in

View previous topic View next topic Go down 
AuthorMessage
Flav



Posts: 24
Join date: 2008-08-16

PostSubject: 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.
Back to top Go down
View user profile
f1r3



Posts: 17
Join date: 2008-08-18

PostSubject: 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?
Back to top Go down
View user profile
Flav



Posts: 24
Join date: 2008-08-16

PostSubject: 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.
Back to top Go down
View user profile
 

Use a skill when logging in

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
 :: OdinMS :: Guides-
Post new topic   Reply to topic