RPG Items

I am trying to get a RPG started, and have been working to get some items showing up on the map. im trying to modify the same code that was used to have the character show up on the map. Is there a totally diffrent code that i need, what code would i be able to use. Thanks in advance for the help