Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Skill when logging in

Elite Diviner
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:
Newbie Spellweaver
Joined
Jul 15, 2008
Messages
90
Reaction score
0
Re: [Small-Release] Skill when logging in

nice small release =]
 
Newbie Spellweaver
Joined
Aug 9, 2007
Messages
59
Reaction score
0
Re: [Small-Release] Skill when logging in

Go f'udge' yourself.
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Small-Release] Skill when logging in

Nice release ;D
 
Initiate Mage
Joined
Apr 17, 2008
Messages
3
Reaction score
0
Re: [Small-Release] Skill when logging in

Awesome, imagine you are in Papulatus and he attacks you without Magic Guard, you die.
Nice release!
 
Junior Spellweaver
Joined
May 26, 2008
Messages
195
Reaction score
0
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.
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Small-Release] Skill when logging in

By the way does the skill ends ?
 
Elite Diviner
Joined
Jul 13, 2008
Messages
419
Reaction score
217
Re: [Small-Release] Skill when logging in

I think so, hide ends soon as well... It just needs 2 hours I think...
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
91
Reaction score
0
Re: [Small-Release] Skill when logging in

Hmm. I was curious about how to do this. Thank you.
 
Junior Spellweaver
Joined
Jul 28, 2008
Messages
131
Reaction score
0
Re: [Release] Skill when logging in

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

If so , then great release
 
Newbie Spellweaver
Joined
Jun 24, 2007
Messages
25
Reaction score
0
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...
 
Newbie Spellweaver
Joined
Jul 6, 2008
Messages
9
Reaction score
0
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
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
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

I don't see the point since it'd just override itself.
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
151
Reaction score
0
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.
 
Junior Spellweaver
Joined
Apr 6, 2008
Messages
140
Reaction score
0
Re: [Release] Skill when logging in

That will help imma check it out
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Release] Skill when logging in

Why I open thread? I didn't open the thread. YOU did...
Please improve your grammar please. This is an English forum.
 
Back
Top