How do you script for multipul items in a NST_CUSTOM shop

AmaraTheSilent

New member
Messages
2
Points
0
It may be a rookie question but I have looked everywhere and the only examples i can find only show the script code for a single item so if anyone could give me a quick example of how I'm supposed to script for multipul items in the shop that would be appreciated. Like do I write it all in a single line or do i new line tab then write out the next item

/* custom npc trader */ prontera,153,152,1    trader    TestCustom2    4_F_EDEN_OFFICER,{     OnInit:     tradertype(NST_CUSTOM);     sellitem Red_Potion,2;     end;     OnCountFunds:     setcurrency(countitem(Red_Potion),countitem(Orange_Potion));     end;
 
OnPayFunds       if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @[email protected])         end;     delitem Orange_Potion,@points;     delitem Red_Potion,@[email protected];     purchaseok();     end; }

Is the example post i'm working on, for referance

I am also curious would this make a shop window that shows a picture of the item that you can right click to open the item window to read?

 
If I understood correctly it should be like this

Code:
sellitem Orange_Potion, 1;
sellitem Yellow_Potion, 1;
sellitem White_Potion, 1;
 
um I think I may have explained wrong, I understand it would go

sellitem orange_potion,1;

to sell them in increments of 1 per X price, what i'm looking for is to on top of that make limited quantities

 
Last edited by a moderator:
Limited quantity:

sellitem Orange_Potion, -1, 49;

 
Back
Top