viewing paste Unknown #462 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
case GN_MAKEBOMB:        
            case GN_MIX_COOKING:
                //make_per = 3000; //As I can see this is not affectd by dex or int stfu
                                //(Caster’s Job Level / 4) + (Caster’s LUK / 2) + (Caster’s DEX / 3)
                                //item diffuculty is vit, str, int => 40, dex=>50, luk,agi=>30 [lighta custom]
                        {
                                const int item_diff[11][2] = {   
                                    {12429,400},
                                    {12430,400},
                                    {12431,400},
                                    {12432,500},
                                    {12433,300},
                                    {12434,300},
                                    {13260,300},
                                    {13261,300},
                                    {13262,300},
                                    {13263,300},
                                    {13264,400},
                                };
                                int randr = rnd_value(30,150)*100, B=0;
                                ARR_FIND(0, ARRAYLENGTH(item_diff), i, item_diff[i][0]==nameid);
                                if(i>ARRAYLENGTH(item_diff))
                                    B = randr + 400; //default item diff is 400 if not found
                                else 
                                    B = randr + item_diff[i][1];
                                make_per = 100*s_job_level/4 + 100*status->luk/2 + 100*status->dex/3; //this is actually A
                                
                                if(make_per >= B+30)
                                    qty = 10+rnd()%3; // 10-12 food
                                else if(make_per >= B+10)
                                    qty = 10;
                                else if(make_per == B-10)
                                    qty = 8;
                                else if(make_per >= B-30)
                                    qty = 5;
                                else if(make_per >= B-50){
                                    qty = 0;
                                    make_per=0; //mark for failure
                                }
                                ShowInfo("nameid=%d, i=%d, itemdiff_size=%d make_per=%d, item_diff=%d, rndvalue=%d, B=%d, qty=%d\n",
                                        nameid,i,ARRAYLENGTH(item_diff),make_per,item_diff[nameid][1],B-item_diff[nameid][1],B,qty);
                        }
                break;
 
 
Program received signal SIGBUS, Bus error.
0x0000000000526334 in skill_produce_mix ()
(gdb) bt full
#0  0x0000000000526334 in skill_produce_mix ()
No symbol table info available.
#1  0x0000000000524fd4 in clif_parse_Cooking ()
No symbol table info available.
#2  0x0000000000446e7e in clif_parse.9943 ()
No symbol table info available.
#3  0x0000000000597317 in do_sockets ()
No symbol table info available.
#4  0x000000000056375a in main ()
No symbol table info available.
Viewed 1436 times, submitted by lighta.