Jump to content
  • 0

Press on item and spawn mob


Question

4 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..