Skill when logging in

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:
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);
...under this (which is hide):
Code:
			SkillFactory.getSkill(5101004).getEffect(1).applyTo(player);
...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:
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
		}
...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...
 
Last edited:
Re: [Small-Release] Skill when logging in

Awesome, imagine you are in Papulatus and he attacks you without Magic Guard, you die.
Nice release!
 
Re: [Small-Release] Skill when logging in

Awesome, imagine you are in Papulatus and he attacks you without Magic Guard, you die.
Nice release!

You should apply the map changer :\
Someone released a thing so if yo dced/cc at certain maps you can set the map they relogin at.
 
Re: [Release] Skill when logging in

So what this basically does is make poeple have skills when logged in?

If so , then great release
 
Re: [Release] Skill when logging in

Great release! I don't recommend giving booster buffs or soul arrow since you don't know which class they are and it could glitch you if you login with a claw and have Soul Arrow. Nice effect though. I wish you could get the Soul Arrow's animation into an actual star...
 
Re: [Release] Skill when logging in

Really nice, didn't know how to give normal players skills. Just a question, could you apply a skill more than once? :O
 
Re: [Release] Skill when logging in

Great release! I don't recommend giving booster buffs or soul arrow since you don't know which class they are and it could glitch you if you login with a claw and have Soul Arrow. Nice effect though. I wish you could get the Soul Arrow's animation into an actual star...

actually, if you have a claw and have soul arrow then... it gives you the same effect as javelin. I've done it before. It's funny cause if you throw stars it looks like you through 6 yellow arrows lol.
 
Back