runtime error: cannot append to list
proc name: Buy (/mob/ClothesShop1/verb/Buy)
usr: Ease (/mob/characters/Human)
src: Dolores Basic Clothes Shop (/mob/ClothesShop1)
call stack:
Dolores Basic Clothes Shop (/mob/ClothesShop1): Buy()
If you need the code for my shop it is :
mob
ClothesShop1
name = "Dolores Basic Clothes Shop"
icon = 'Mobs.dmi'
icon_state = "ClothShop1"
verb
Buy()
set src in oview(1)
set category = "Communications"
switch(input("What would you like to buy (All shirts are 18 GP, all Trousers are 60GP)?")in list("Red Shirt","Blue Shirt","Green Shirt","White Shirt","Red Trousers","Blue Trousers","Cancel"))
if("Red Shirt")
if(usr.GP>=18)
usr.contents += /obj/Clothes/RedShirt
usr<<"You bought a Red Shirt!"
usr<<"You paid 18GP!"
usr.GP -= 18
else
usr<<"You don't have enough money!"
Thank you!
~Ease~
Everything is at ease with Ease
The bold line. You're trying to add a parent_type right to the player's contents. You need 'new/obj/Clothes/RedShirt'.
~>Volte