ID:261158
 
1. Are u able to add an icon by a verb if so how?

2. Are u able to save a Turf if so how?

3. Are u able to add a statpanel and stats to the usr Stat() proc.? if so how?
the Stat() proc is called every tick if im wrong, correct me, its a regular proc, you can do anything within it

mob
var
newpanel = 0
Stat()
statpanel("Inventory",contents)
if(src.newpanel == 1)
statpanel("New Panel")
stat("New Panel",newpanel)

obj
panelenable
verb
enablenewpanel()
usr.newpanel = 1

this will open a new panel in the statpanel collection when the obj's verb enablenewpanel is activated. Basically you will never see that new panel statpanel until this obj is used to enable it.

stat is like a looping proc, it loops through it over and over, when it sees that the newpanel variable is set to 1, it will create a new statpanel along with a stat inside.

I hope that is what you were looking for, You could set up a corpse panel to look at the contents of dead corpses

mob
var
lookcorpse = 0
corpsetarget = null
Stat()
if(src.lookcorpse == 1)
statpanel("Corpse")
for(var/obj/O in corpsetarget)
stat(O)

obj
deadbody
verb
look()
set src in oview(1)
usr.lookcorpse = 1
usr.corpsetarget = src

when you go up to the deadbody, and hit look, a new panel will be created called corpse, and you will see the contents of the corpse's inventory, since i did not put an inventory, you wont see any thing in the panel, thats up to you.
In response to FIREking
It is possible to save turfs, but its a little bit different than saving obj's.

Obj's have the ability to change location, as turfs do not. When you save obj's, you can save their x,y,and z variables then place them back where they used to be, with turfs, you will need to save the type of turf it is, then create a new one in a loc. So far i havent even messed with saving turfs, because its something i dont need, Obj's can act similiar to turfs, if you just give them the icon and icon stat properties, along with density and opacity if needed, then you could save them much easier. And believe me, i have a 500 X 500 X 5 map, and i save every object within the world, this doesnt cause lag or any problems, as long as you save those obj's on world.Del() and if you load them at world.New(). It may take up to 8 seconds before you actually log into your game, but you will be the only one who experiences this waiting period, as the world will be started as soon as this happens, other players will not have to wait the 8 second load up time.

that code to save obj's is somewhere in these forums, just search for

We need to Save the World!!!

or something like that in code problems i do believe.

ps. i should also note that it would be impossible to save EVERY object if there was 1 obj per turf. I save around 500 - 800 objects, depending on how many people play and how the day goes. If you think you are going to save HUGE castles and lands and stuff using obj's, its not going to happen. Your best best would be to take that DMP saver, save the world. load the map, and paint turfs over the saved obj's, then when the world is loaded, you wont have to load tons of obj's all the time, you can at least paint the base with turfs and what not.

FIREking