crazyshock Posted April 6, 2011 Posted April 6, 2011 Hii.. I was thinking of creating a system where the player has 5 pvps consecutive.. The player would win a gloss differential, not the brilliance of HERO, but some other effect such as vitality. And if the player had x number of consecutive win another Pk brightness than HERO would rather have some other effect on lineage 2. If anyone can give an idea of how to start. Thnk Quote
0 crazyshock Posted April 6, 2011 Author Posted April 6, 2011 Hii.. I was thinking of creating a system where the player has 5 pvps consecutive.. The player would win a gloss differential, not the brilliance of HERO, but some other effect such as vitality. And if the player had x number of consecutive win another Pk brightness than HERO would rather have some other effect on lineage 2. If anyone can give an idea of how to start. Thnk Quote
0 Tryskell Posted April 6, 2011 Posted April 6, 2011 This system is already shared : - basic idea is the "quake system" thing shared over MxC, - a most developed idea is from BigBoss shares. If he comes here, he will tell you better than me :P. Quote
0 Tryskell Posted April 6, 2011 Posted April 6, 2011 This system is already shared : - basic idea is the "quake system" thing shared over MxC, - a most developed idea is from BigBoss shares. If he comes here, he will tell you better than me :P. Quote
0 vampir Posted April 6, 2011 Posted April 6, 2011 public void increasePvpKills(L2Character target) { if (target instanceof L2PcInstance && AntiFeedManager.getInstance().check(this, target)) { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); float getPvpKills = getPvpKills(); if((getPvpKills/5)%2==1||(getPvpKills/5)%2==0) { setHero(true); } } } find the differences in code :) atm when char have 5, 10, 15,20, etc pvp points, he is getting hero, just replace it with whatever u want. quake system is working with a little different way :) Quote
0 vampir Posted April 6, 2011 Posted April 6, 2011 public void increasePvpKills(L2Character target) { if (target instanceof L2PcInstance && AntiFeedManager.getInstance().check(this, target)) { // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter sendPacket(new UserInfo(this)); sendPacket(new ExBrExtraUserInfo(this)); float getPvpKills = getPvpKills(); if((getPvpKills/5)%2==1||(getPvpKills/5)%2==0) { setHero(true); } } } find the differences in code :) atm when char have 5, 10, 15,20, etc pvp points, he is getting hero, just replace it with whatever u want. quake system is working with a little different way :) Quote
0 crazyshock Posted April 6, 2011 Author Posted April 6, 2011 Yes, I thought of something that way too, but it is a matter of getting take effect otherwise, without being that of hero. Quote
0 crazyshock Posted April 6, 2011 Author Posted April 6, 2011 Yes, I thought of something that way too, but it is a matter of getting take effect otherwise, without being that of hero. Quote
0 vampir Posted April 6, 2011 Posted April 6, 2011 Yes, I thought of something that way too, but it is a matter of getting take effect otherwise, without being that of hero. just replace it :) here you go example for paralize player :P target.setIsParalyzed(true); target.startParalyze(); target.startAbnormalEffect(AbnormalEffect.HOLD_1); just change that with whatever u like :) Quote
0 vampir Posted April 6, 2011 Posted April 6, 2011 Yes, I thought of something that way too, but it is a matter of getting take effect otherwise, without being that of hero. just replace it :) here you go example for paralize player :P target.setIsParalyzed(true); target.startParalyze(); target.startAbnormalEffect(AbnormalEffect.HOLD_1); just change that with whatever u like :) Quote
0 Tryskell Posted April 6, 2011 Posted April 6, 2011 If by "consecutive kills", you mean "5 kills in a row without die", then quake stuff is the basic system to use, if it's to each 5 pvps (which is strange, anyway...), check vampir's. About effect, well, you're only stuck by imagination. You could make all people in a radius die, spawn a mob, launch a siege... Anything you want. Just check where you think such code exists, analyze, and copy it editing parts to fit with your desires. The different "visual graphic" effects are shown on AbnormalEffect, more effects/emotes like levelup and such are socialAction from what I rem (haven't Eclipse up). Quote
0 Tryskell Posted April 6, 2011 Posted April 6, 2011 If by "consecutive kills", you mean "5 kills in a row without die", then quake stuff is the basic system to use, if it's to each 5 pvps (which is strange, anyway...), check vampir's. About effect, well, you're only stuck by imagination. You could make all people in a radius die, spawn a mob, launch a siege... Anything you want. Just check where you think such code exists, analyze, and copy it editing parts to fit with your desires. The different "visual graphic" effects are shown on AbnormalEffect, more effects/emotes like levelup and such are socialAction from what I rem (haven't Eclipse up). Quote
0 SlyWhiteSheep Posted April 7, 2011 Posted April 7, 2011 Hii.. I was thinking of creating a system where the player has 5 pvps consecutive.. The player would win a gloss differential, not the brilliance of HERO, but some other effect such as vitality. And if the player had x number of consecutive win another Pk brightness than HERO would rather have some other effect on lineage 2. If anyone can give an idea of how to start. Thnk This sounds like call of duty. Quote
Question
crazyshock
Hii..
I was thinking of creating a system where the player has 5 pvps consecutive..
The player would win a gloss differential, not the brilliance of HERO, but some other effect such as vitality.
And if the player had x number of consecutive win another Pk brightness than HERO would rather have some other effect on lineage 2.
If anyone can give an idea of how to start.
Thnk
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.