ID:156200
 
Well my game has a window inventory made by grids and what i want to do is that when a usr talks to a npc he recieves a shirt and jeans right to their inventory... i have tried adding set src in oview(1) but it gets me an error can someone help me plz?
If you have a proc to "update" the inventory, call it.
u can try out muy coding if i want it works but it might not be intraly right

mob
Stat()
statpanel("Inventory",contents)

obj
akasuki_suit

mob
Hidan
verb
Talk()
set src in oview(1)
switch(input("here you go, you are now an akasuki."))
if("")
usr.contents += new/obj/akasuki_suit
obj
akasuki_suit
icon = 'Akasuki Coat.dmi'
layer = MOB_LAYER + 5
verb
wear()
switch(alert("How do you wish to wear it?", "Clothing", "Classic", "Uchiha"))
if("Uchiha")
icon_state = "Uchiha"
usr.overlays += src
if("Classic")
icon_state = "Classic"
usr.overlays += src
In response to Jamesy577
What? That's not a separate inventory made by grids... That's just the Stat() proc. It self-refreshes every 5 ticks. If you add whatever object to the contents list, then that Stat() proc will show it.

EDIT
Ohhh wait... You have to do...
statpanel("Inventory")
stat(src.contents)