Jump to content
  • 0

[help] Looking for a way to balance my olympiad.


Question

Posted

I'm looking for a way to balance the characters' stats on olympiad but WITHOUT affecting the normal game.. for example "give skill id="x" to class id="y" while in olympiad , remove it after leaving olympiad...

 

Does someone know how to do it  , or is something like that already shared?

Or anyway is there any way to balance olympiad without affecting the normal gameplay?

 

Thanks in advance.

 

P.S. my server is freya and im using L2j

Recommended Posts

  • 0
Posted

Make +6 items when items are > +6 is a good way i think. After you can add some conditions in L2PcInstance (not a code, but the idea)

 

If (isInOlympiad())
{
addSkill(id,level)
}
else
{
removeSkill(id, lvl)
}

 

And you make a skill that decrease some classes

  • 0
Posted

Balance Olympiad ?

 

[*]Make each participant not able to use boss jewels, nor enchanted stuff( if ++, count like 0).

[*]Give reward according the difference of levels of participant (+ if the low level win, less if the high level win).

[*]Except that, I think previous system of buffs (IL) was good enough. ww2 for mage, haste1 and ww2 for fighters.

 

I don't think in freya there is so much disbalance.... Dwarves got more attack skills, and healers can transform.

  • 0
Posted

Make +6 items when items are > +6 is a good way i think. After you can add some conditions in L2PcInstance (not a code, but the idea)

 

If (isInOlympiad())
{
addSkill(id,level)
}
else
{
removeSkill(id, lvl)
}

 

And you make a skill that decrease some classes

cant  that code be created based on class id?

  • 0
Posted

Well you just add custom to custom, but you just have to retrieve the classId of each participant and send your custom skill using addSkill(id, false). Eventually you can create/clear a map at Olympiads start/stop with the relation classId > skillId.

 

Once cleanup occurs (buffs and so on), use removeSkill(id).

 

You have to search a little to make the thing working on, and names of the methods to edit. If you have a beginning of code, post here for some help.

 

Finally if your balance is unbalanced in Olympiads I would ask myself if your balance is really balanced or simply unbalanced.

 

Balance, balance.

 

Balance.

  • 0
Posted

Actually the subject isnt if i finally reach the "balance" level i want, it's the code itself..

as about the start of the code.. only what Bleadd posted.. any idea? thanks.

  • 0
Posted

Don't tested and i think there is some syntax errors :P

 
if (getClassId() == "id you want)
{
     if (isInOlympiadMode())
     {
           L2Skill sk = new L2Skill (id skill you want, true);
           addSkill(sk);
     }
     else
     {
           removeskill(sk);
      }
}

 

or a switch case..

 

it's a little crappy code, but i think can work..

 

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...