summaryrefslogblamecommitdiff
path: root/npc/items/require_stat.txt
blob: 7ff2b1011607b459eef5cd29d36b7cdf02a17eda (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                
                                         



                              

                                                               

                      

           
// Unequip if stat not enough
// callfunc "RequireStat", bDex, 80, EQI_HAND_R;
function	script	RequireStat	{
    .@stat = getarg(0);
    .@min = getarg(1);
    .@me = getarg(2);
    .@val = readparam(.@stat);
    // If the requirement isn't met, we set an unequip trigger.
    // The item is now removed.
    if (.@val < .@min)
        unequip(.@me);
    return;
}