Jump to content
  • 0

[Help]Java Buffer



thelw na kanw to e3eis... otan enas player exei as poume x buff(px. shield) kai to kanei self/target to buff den to pairneis mexri na teliwsh to effect/cast oute mporeis na walk..kai ta upoloipa buffs exoun to diko tous effect... px. dance theloun duals oste na ta knc ktlp.


kati tetoio thelw na kanw se buffer..


px auto to code kanei self effect alla ama knc walk kanei cancel to effect kai to buff to exeis parei :P

        StringTokenizer st = new StringTokenizer(command, " ");
        String actualCommand = st.nextToken();

        int buffid = 0;
        int bufflevel = 1;
        if (st.countTokens() == 2) {
            buffid = Integer.valueOf(st.nextToken());
            bufflevel = Integer.valueOf(st.nextToken());
        else if (st.countTokens() == 1)
            buffid = Integer.valueOf(st.nextToken());

        if (actualCommand.equalsIgnoreCase("getbuff")) {
            if (buffid != 0) {
                MagicSkillUse mgc = new MagicSkillUse(this, player, buffid, bufflevel, 5, 0);
                SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);

:forever alone like a boss: :forever alone like a boss: 3erei knc pws na to kanw?

Edited by vl4d
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

thelw auto me to effect/cast kai buff meta to cast (ti check theli) :P px twra kanei effect alla as poume kanei to 80% kanei stop 2 sec kai meta kanei kai to 20%...


mporeis na check to code pou exw ginetai kati kalutero sto grapsimo??

Edited by vl4d
Link to comment
Share on other sites

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.

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...