ID:166954
 
ok see this is what i got.
    water
icon='turf.dmi'
icon_state="Water"
density = 0
Entered(mob/M)
if(istype(M,/mob))
usr.icon = 'Pirates.dmi'
usr.icon_state = "Pirate A water"

I need where it takes and anlyzes the player's icon and then when they enter the water they turn into the icons water version (a head bobbing in water) and when they get out of the water it reverts to their last icon

i cant code good, i cant click links (for some d*m reason the link dont make the page show up).

please help me.
Replace usr with M.

To return the player to its original icon, use the Exited() proc.

i.e
Exited(mob/M)
  if(istype(M,/mob)
    M.icon_state="blah blah"
Volks, my man, you could really use some help asking questions. Go ahead and read a few bits of this: http://www.catb.org/~esr/faqs/smart-questions.html

It's a really well-put-together document that gives you a good idea of how to ask questions when you want to get good answers, what do do before asking questions, etc. Don't feel compelled to read the whole thing, but all its little bits are pearls of wisdom unto themselves.