ID:262849
 
Code:
mob/var/obj/stat/golds

mob
Stat()
if(statpanel("Who"))
for(var/client/C)
stat(C.key , C.mob)
if(statpanel("Items"))
stat("::|Items|::","")
stat(src.contents)
if(statpanel("Pack"))
stat(golds,usr.Gold)

mob/Login()
..()
golds=new


Problem description:the icon want how up in the statpanel what am i doing wrong

Out of curiosity, does the mob's golds variable have an icon assigned to it?

Hiead
In response to Hiead
yes it does.
In response to National Guardsmen
In that case, can we see the /obj/stat ?

Also, for consistency, I think your Stat() should use just src, rather than src AND usr.

Hiead
In response to Hiead
obj
stat
icon='gold.dmi'
icon_state="3"
In response to National Guardsmen
Okay....another question: Why are you doing
if(statpanel("panel"))

Edit:
Wait, which icon isn't showing up? The mobs' icons, or the gold?

Hiead
In response to Hiead
it only loads the panel when its being looked at if i read what someone told me correctly.the gold icon.
In response to National Guardsmen
any help
here i hope this will help some.

obj/items/WeaponNameHere
icon = 'icon.dmi'
icon_state = "iconstate"
wepstr = 120

verb
Equip()
set src in usr
if(usr.race == "RaceName")
if(usr.equip >= 1)
usr << "[src.name] is already equiped"
else
usr.str += wepstr
usr.def += armdef
usr.equip += 1
suffix += "{-Equiped-}"
usr<< "[src.name] is now equiped"
else
usr<<"Sorry This Is A RACENAME Only Weapon"
Un_Equip()
if(usr.equip == 0)
usr<< "<b>You don't have anything equiped"
else
usr.str -= wepstr
usr.def -= armdef
usr.equip = 0
suffix = ""
usr << "Unequiped [src.name]"
Drop()
set category="Commands"
set src in usr
if(usr.equip == 1)
usr<<"Unequip first"
else
src.loc = usr.loc
usr << "You drop [src]!"