viewing paste Unknown #33494 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// New version
 
        .@size = getarraysize($@HmItemID);
        for ( .@i = 0; .@i < .@size; .@i++ )
        {
                sellitem $@HmItemID[.@i], $@HmItemPrice[.@i];
                debugmes "[HM Item Shop] #"+.@i+") "+getitemname($@HmItemID[.@i])+" loaded.";
}
// Old version
        for ( .@i = 0; .@i < $@HmItemMax; .@i++ )
        {
                sellitem $@HmItemID[.@i], $@HmItemPrice[.@i];
                debugmes "[HM Item Shop] #"+.@i+") "+getitemname($@HmItemID[.@i])+" loaded.";
}
        end;
Viewed 569 times, submitted by unknown.