Requesting Trader

something like this ?

Code:
/* 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;}
 
Last edited by a moderator:
Back
Top