ID:176862
 
mob
door
icon='door.dmi'
Bump(mob)
usr<<" SCOTT PAID MONEY!!"

i dont know what im doin
mob
door
icon='door.dmi'
Bump(mob)
usr<<" SCOTT PAID MONEY!!"

that should be right, but this doesnt work either
<code> obj //Or turf door Bumped(var/atom/movable/A) //Overrides the basic Bumped() proc. if(ismob(A)) //If A is a mob. A << " SCOTT PAID MONEY!!" //Then display the totally nonsensical message to it. atom/proc/Bumped(atom/movable/A) //Defines the Bumped() proc for everything that you could bump into. mob Bump(atom/A) //When you bump something. A.Bumped(src) //Call that something's Bumped() proc. Usr is not acceptable in ANY proc that isn't a verb. </code>
[edit: Oops, ismob(A), not istype(A,/mob/).]
In response to SkylineR34
SkylineR34 wrote:
mob
door
icon='door.dmi'
Bump(mob)
usr<<" SCOTT PAID MONEY!!"

that should be right, but this doesnt work either

You're using Bump() backwards. Bump() belongs to the thing that's moving, and the argument is the thing it bumped into:
atom/movable
proc/Bump(atom/obstacle)
You're also using usr in Bump(), and you shouldn't. src is the mob who's moving. usr could be anything.

Lummox JR