ID:144423
 
Code:
                            if(usr.Berri >= src.cost)
usr << "<font color=red><b>You bought [src.name]"
usr.Berri -= src.cost
var/new_rgb = F_Color_Selector.Get_Color(usr)
var/icon/H = new('CustomZWaistband.dmi')
H.Blend(new_rgb)
usr.contents+=H


Problem description:

Don't usually come here a lot but I need to know how to fix this problem. When I go to the NPC to buy the custom clothing, after selecting the color I get this error. Can someone tell me what to do about this?

runtime error: cannot append to list
proc name: DblClick (/obj/Clothes/Zoro/Custom/CustomZBoots/DblClick)
source file: Shops.dm,653
You're trying to add an icon to the player's contents. Only atoms can be added. You need to instead after blending "H" make it the item's icon you just bought, THEN add the item to the player's contents.
In response to Teh Governator
Oh wow...I feel a bit stupid ^_^;; Thanks for helping out