Controlling Pets: Difference between revisions
From Ultima Online Forever Wiki
(Initial draft of the Pet Controlling Page) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__TOC__ | |||
'''The chance to controll a pet is calculated with an algorithm like this:''' | '''The chance to controll a pet is calculated with an algorithm like this:''' | ||
Line 7: | Line 7: | ||
Else Bonus = Bonus * 6 // If we are above the taming requirement we get a moderate bonus | Else Bonus = Bonus * 6 // If we are above the taming requirement we get a moderate bonus | ||
Chance = Chance + Bonus // Chance is modified by the bonus | Chance = Chance + Bonus // Chance is modified by the bonus | ||
If Chance >= 0 and < 200 then Chance = 200 // IF we can controll, there is a minimum chance of 20% - | If Chance >= 0 and < 200 then Chance = 200 // IF we can controll, there is a minimum chance of 20% - loyalty pentalties (see below) | ||
If Chance > 990 then Chance = 990 // We cannot get higher than 99% | If Chance > 990 then Chance = 990 // We cannot get higher than 99% | ||
Chance = Chance - ( | Chance = Chance - (maxLoyalty - petLoyalty) * 10 // where loyalty is a value from 0 to 100 | ||
Chance / 10 would give now the chance to controll in percent. | Chance / 10 would give now the chance to controll in percent. | ||
====Loyalty Gains and Decreases==== | |||
:Every bad command reduces pet | :Every bad command reduces pet loyalty 1 point, every good command increases loyalty +1. | ||
:Once at every hour, pet | :Once at every hour, pet loyalty is reduced by 10% of the max loyalty. This applies to all moveables at the same time - meaning if you fed your pet to "Wonderfully Happy" (= max) and the update happens 5 seconds later it will be reduced. | ||
:Feeding a pet has a chance of 50% to raise the pet's loyalty level - "You pet looks happier." | |||
(I'll try to get a JavaScript applet in that calculates the controll chances.) | (I'll try to get a JavaScript applet in that calculates the controll chances.) |
Revision as of 00:43, 19 September 2014
The chance to controll a pet is calculated with an algorithm like this:
Chance = 700, Bonus = 0 // This is the base chance and base bonus Bonus = (((Taming * 4 + Lore) / 5) * 10) - (minSkillToTame * 10) // Taming and Lore are weighted If Bonus is <= 0 then Bonus = Bonus * 14 // If we are below the taming requirement it gets much harder Else Bonus = Bonus * 6 // If we are above the taming requirement we get a moderate bonus Chance = Chance + Bonus // Chance is modified by the bonus If Chance >= 0 and < 200 then Chance = 200 // IF we can controll, there is a minimum chance of 20% - loyalty pentalties (see below) If Chance > 990 then Chance = 990 // We cannot get higher than 99% Chance = Chance - (maxLoyalty - petLoyalty) * 10 // where loyalty is a value from 0 to 100 Chance / 10 would give now the chance to controll in percent.
Loyalty Gains and Decreases
- Every bad command reduces pet loyalty 1 point, every good command increases loyalty +1.
- Once at every hour, pet loyalty is reduced by 10% of the max loyalty. This applies to all moveables at the same time - meaning if you fed your pet to "Wonderfully Happy" (= max) and the update happens 5 seconds later it will be reduced.
- Feeding a pet has a chance of 50% to raise the pet's loyalty level - "You pet looks happier."
(I'll try to get a JavaScript applet in that calculates the controll chances.)