viewing paste weapon_type_bonus | Athena

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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
 
 
-   script  Sample#weapon_type  -1,{
    OnNPCKillEvent:
        .@weapon_type = getiteminfo( getequipid( EQI_ACC_L ),5 );
        switch ( .@weapon_type ) {
            default: // etc.
            case 0: // bare fist
                // your bonus here.
                break;
            case 1: // Daggers
                // your bonus here.
                break;
            case 2: // One-handed swords
                // your bonus here.
                break;
            case 3: // Two-handed swords
                // your bonus here.
                break;
            case 4: // One-handed spears
                // your bonus here.
                break;
            case 5: // Two-handed spears
                // your bonus here.
                break;
            case 6: // One-handed axes
                // your bonus here.
                break;
            case 7: // Two-handed axes
                // your bonus here.
                break;
            case 8: // Maces
                // your bonus here.
                break;
            case 10: // Staves
                // your bonus here.
                break;
            case 11: // Bows
                // your bonus here.
                break;
            case 12: // Knuckles
                // your bonus here.
                break;
            case 13: // Musical Instruments
                // your bonus here.
                break;
            case 14: // Whips
                // your bonus here.
                break;
            case 15: // Books
                // your bonus here.
                break;
            case 16: // Katars
                // your bonus here.
                break;
            case 17: // Revolvers
                // your bonus here.
                break;
            case 18: // Rifles
                // your bonus here.
                break;
            case 19: // Gatling guns
                // your bonus here.
                break;
            case 20: // Shotguns
                // your bonus here.
                break;
            case 21: // Grenade launchers
                // your bonus here.
                break;
            case 22: // Fuuma Shurikens
                // your bonus here.
                break;
        }
        end;
}
Viewed 1295 times, submitted by Emistry.