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

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