I tried to make a code so that when the usr talks to a npc he recieves a shirt and jeans but i cant make it so that the usr recieves the items to his inventory i tried making a var of the shirt and jeans.
A.loc = usr.loc
B.loc = usr.loc
I added that and the vars in the talk verb action but the shirt and the jeans appeared in the turf the usr was standing.
Any help? please
ID:156215
![]() Dec 5 2010, 9:18 am
|
|
![]() Dec 5 2010, 9:22 am
|
|
Well, the inventory runs based off of the <small>contents</small> variable. So to put something in a mobs inventory, simply add it to their contents. I'll show a small demo below.
|
the line of usr.contents = ....
what should i put in contents? i have nothing to show that they will go to the inventory. |
i wanted to use this but make the shopkeeper to look different to the basic charator becuase i have got mob as basioc charater how would i change this
|
well i got coding mob
icon "basic player.dmi" so all my mob are that icon but i don't kniow how else to do it |