ID:138921
 
Code:
    Merchant
contents=list(
/obj/Items/Weapons/Stick,
/obj/Items/Potions/Health_Potion
)
verb/WhatsForSale()
set src in oview(1)
for(var/obj/O in src)
usr <<"<small>Items For Sale: \...</small>"
usr <<"<small>[O] \...</small>"


Problem description: This verb, to check what the merchant has for sale, is not working and I'm not sure why. Maybe I got the contents of the Merchant wrong or my 'for' proc. Please could someone help me.
Please note that this is a rough bunch of code so I can test this verb out.

Try to do that.
    Merchant
contents=newlist(
/obj/Items/Weapons/Stick,
/obj/Items/Potions/Health_Potion
)


The objects need to be created.
newlist would equal list(new/obj/Something1,new/obj/Something2...)

In response to Rotem12
Thank you so much. It works now. appreciate the help