Issue information

Issue ID
#6667
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Sep 10, 2012 20:52
Last Post
Mysterious
Mar 23, 2014 0:36
Confirmation
N/A

Hercules Elf Bot - Sep 10, 2012 20:52

Originally posted by [b]Genius[/b]
My Genetic is on a potter-build atm, with 100% success on normal pots and about 80% on condensed. Yet he did fail on 20 attempts of mixed cooking. All items were available.

Hercules Elf Bot - Sep 11, 2012 2:14

Originally posted by [b]malufett[/b]
[quote][color=#000000][font=Arial][size=2]
[b]Mixed Cooking[/b][/size][/font][/color]
[color=#000000][font=Arial][size=2]
Success formula compares the value of A to B.[/size][/font][/color][color=#000000][font=Arial][size=2]
A = (Caster’s Job Level / 4) + (Caster’s LUK / 2) + (Caster’s DEX / 3)[/size][/font][/color][color=#000000][font=Arial][size=2]
B = Random number between (30 ~ 150) + Difficulty rate[/size][/font][/color][color=#000000][font=Arial][size=2]
Success = if A value, (Caster’s Job Level / 4) + (Caster’s LUK / 2) + (Caster’s DEX / 3) is greater than B value, (Random number between 30 ~ 150) + Difficulty rate[/size][/font][/color][color=#000000][font=Arial][size=2]
Failure = if A value, (Caster’s Job Level / 4) + (Caster’s LUK / 2) + (Caster’s DEX / 3) is less than B value, (Random number between 30 ~ 150) + Difficulty rate[/size][/font][/color][color=#000000][font=Arial][size=2]
1. If A value is 30+ greater than B value, creates 10 ~ 12 Foods.[/size][/font][/color][color=#000000][font=Arial][size=2]
2. If A value is 10+ greater than B value, creates 10 Foods.[/size][/font][/color][color=#000000][font=Arial][size=2]
3. If A value is exactly 10 less than B value, creates 8 Foods.[/size][/font][/color][color=#000000][font=Arial][size=2]
4. If A value is 30+ less than B value, creates 5 Foods.[/size][/font][/color][color=#000000][font=Arial][size=2]
5. If A value is 50+ less than B value, Food creation fails.[/size][/font][/color]

[/quote]


:meow:

Hercules Elf Bot - Sep 14, 2012 22:23

Originally posted by [b]Genius[/b]
For you're saying Mixed cooking does work fine I'd love to get some insight of a part of the script, if you don't mind.
According to the formula posted, my Genetic would have a 80% chance to create +20-food if the 'difficulty-rating' would be 0. For I don't know what's the 'difficulty-rating', I don't know my actual chance.
But for my 20 food-ingredients did only produce black lumb I guess that 'difficulty rating' is extremely high? Just want to know how high that 'difficulty-rating' is, so I can recalculate my chance and decide if it is even worth the effort

Hercules Elf Bot - Sep 15, 2012 2:40

Originally posted by [b]malufett[/b]
hope you get it :)
[codebox]
case GN_MAKEBOMB:
case GN_MIX_COOKING:
{
int difficulty = 30 + rnd()%120; // Random number between (30 ~ 150)

make_per = sd->status.job_level / 4 + status->luk / 2 + status->dex / 3; // (Caster�s Job Level / 4) + (Caster�s LUK / 2) + (Caster�s DEX / 3)
qty = ~(5 + rnd()%5) + 1;

switch(nameid){// difficulty factor
case 13260:
difficulty += 5;
break;
case 13261: case 13262:
difficulty += 10;
break;
case 12429: case 12430: case 12431:
case 12432: case 12433: case 12434:
case 13263:
difficulty += 15;
break;
case 13264:
difficulty += 20;
break;
}

if( make_per >= 30 && make_per > difficulty)
qty = 10 + rnd()%2;
else if( make_per >= 10 && make_per > difficulty)
qty = 10;
else if( make_per == 10 && make_per > difficulty)
qty = 8;
else if( (make_per >= 50 || make_per < 30) && make_per < difficulty)
;// Food/Bomb creation fails.
else if( make_per >= 30 && make_per < difficulty)
qty = 5;

if( qty < 0 || (skilllv == 1 && make_per < difficulty)){
qty = ~qty + 1;
make_per = 0;
}else
make_per = 10000;
qty = (skilllv > 1 ? qty : 1);
}
break;
[/codebox]

:meow: