Code:
mob
Merchant
icon = 'NPCs.dmi'
icon_state = "Clothing"
name = "{NPC}Merchant"
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
switch(input("Yo sup, wanna buy some clothes?", text) in list ("Yes","No"))
if("Yes")
switch(input("What do you want to buy?", text) in list ("BlackMask"))
if("BlackMask")
var/K = new/obj/BlackMask
K:loc = usr
usr << "<b>Have a nice day!"
var c = input(src, "MESSAGE", "TITLE", rgb(50, 150, 250)) as color
Problem description:SpecialSeller.dm:27:error: /obj/BlackMask: undefined type path
SpecialSeller.dm:30:warning: c: variable defined but not used
The problem is simply you did not define the type of object you are attempting to create (above). In the following example, I am defining a new type of obj named mynewobj:
Your warning is straightforward. You prepared the c variable for use but never use it (not in this snippet, at least).