.@g = getenchantgrade(EQI_SHOES); autobonus "{ bonus bInt,120; }",30,10000,BF_MAGIC; if (.@g>=ENCHANTGRADE_C) { bonus bSpl,10; if (.@g>=ENCHANTGRADE_A) { bonus bSpl,20; bonus bFixedCast,-200; } }