Jump to content
  • 0

Wondering How


Checkmate

Question


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Hello rAthena Community...

I was wondering can we change the luck to get catch an egg?..?

Example... I got one taming item like errr.... Unripe Apple....
It will catch poring is it?..?
When we try to catch poring the will be a slot machine right...
How to change the randomness of succesfull to getting thier egg???

 

 

 

Thanks..  ^ ^

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

conf/battle/pet.conf:

 

// Rate for catching pets (Note 2)
pet_catch_rate: 100

 

Making it 200 will double the success rate. This will change the catch rate for all taming items.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Means more higher number be put then ore higher chance to get it?..?

Just want to make it 50-50 to catch and egg...
Look like the original..  ^ ^

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

Yes, putting it at a higher number will increase the pet catch rate.

 

Leaving it at 100 is official. Catching a pet is not a 50/50 chance (there are many factors that go into the formula for catching a pet) so that is something you will have to change. If you want it to be a 50/50 chance then you need to change the formula in the source. You will need to change (in /src/map/pet.c):

 

    if(rnd()%10000 < pet_catch_rate)

to

 

    if(rnd()%2 < 1)

 

Don't forget to recompile.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

 

 

Leaving it at 100 is official.

 

 

 

Since you were state that 100 was the official... I would not like to change it anymore... 
System default is the best... ^ ^ 
Thank

Sir..

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.

×
×
  • Create New...