Jump to content
  • 0

Press on item and spawn mob


forsas
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock