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?