viewing paste shop | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/* custom npc trader */
prontera,153,152,1      trader  TestCustom2     4_F_EDEN_OFFICER,{
        OnInit:
        tradertype(NST_CUSTOM);
        sellitem TCG_Card,2;
        sellitem Red_Potion,50;
        sellitem 969,50;
        end;
 
/* allows currency to be item 501 and 502 */
OnCountFunds:
        setcurrency(countitem(Ticket_ID));
        end;
 
OnPayFunds:
        dispbottom "Hi: price for the purchase of items="+@price;
        if( countitem(Ticket_ID) < @price)
                end;
        delitem Ticket_ID,@price;
        purchaseok();
        end;
       
}
Viewed 818 times, submitted by Dastgir.