viewing paste Unknown #23797 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
prontera,153,152,1      trader  TestCustom2     4_F_EDEN_OFFICER,{
        OnInit:
        tradertype(NST_CUSTOM);
        sellitem White_Potion,2;
        end;
 
/* allows currency to be item 501 and 502 */
OnCountFunds:
        setcurrency(countitem(Red_Potion),countitem(Orange_Potion));
        end;
 
/* receives @price (total cost) and @points (the secondary input field for cash windows) */
OnPayFunds:
        dispbottom "Hi: price="+@price+" and points="+@points;
        if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @price-@points )
                end;
        delitem Orange_Potion,@points;
        delitem Red_Potion,@price-@points;
        purchaseok();
        end;
}
Viewed 351 times, submitted by bangzeed.