Jump to content
  • 0

Press on item and spawn mob


forsas

Question

4 answers to this question

Recommended Posts

  • 0

You need the code... cool, buts its request dev help section, not request ready code.

 

We are suppose to help you with somekind of idea, sollution etc.

 

Its really simple, simply check other java files from L2J, with Rnd ussage.

 

Use it with switch case

 

At least you could think a bit, anyway if you are soo lazy, WHAT EVER, sample:

 

          switch (Rnd.get(2))

          {

             case 0:

                    //spawn moob A

                    break;

             case 1:

                    //spawn moob B

                    break;

             case 2:

                    //spawn moob C

                    break;

            }

           

 

etc.

Link to comment
Share on other sites

  • 0

You need the code... cool, buts its request dev help section, not request ready code.

 

We are suppose to help you with somekind of idea, sollution etc.

 

Its really simple, simply check other java files from L2J, with Rnd ussage.

 

Use it with switch case

 

At least you could think a bit, anyway if you are soo lazy, WHAT EVER, sample:

           

 

etc.

 

Thanks for help but where is chance i paste:

 

          switch (Rnd.get(2))
           {
              case 0:
                     //spawn moob A
                     break;
              case 1:
                     //spawn moob B
                     break;
              case 2:
                     //spawn moob C
                     break;
            }

 

But every time spawn 0 and 1 mob 3 don't spawn...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...