ID:176265
 
do u no what proc to use, when two mobs touch?
Bump() o.0
In response to Koolguy900095
doesnt work for some reason
In response to Fraon2
mob
Bump(BD)
if(istype(BD,/turf/sign))
alert(src,"You bump the sign.")
if(istype(BD,/turf/npc))
alert(src,"NPC: Ow!")
In response to Siientx
Siientx, are you really that retarded? DO NOT USE USR IN PROCS. Just remove the usr and it'll be fine.
In response to Siientx
Siientx wrote:
mob
Bump(BD)
if(istype(BD,/turf/sign))
alert(usr,"You bump the sign.")
if(istype(BD,/turf/npc))
alert(usr,"NPC: Ow!")

GAH! NO NO NO! You must use src, NOT usr.

If alert() is used in Bump(), it has to be called like this:
alert(src,message)
Why? Because usr isn't necessarily the thing moving, but src is. Haven't I explained this to you about a hundred times?!

Lummox JR
In response to Garthor
Well,its a habit for me to use usr.and its a habit for you to constantly insult me.
In response to Siientx
I only insult people who deserve to be insulted.
In response to Garthor
Consigale una vida hibrido.
mob
Bump(mob/M)
M<<"[src] touched you ;) he likes you ;)"
src<<"You touched [M], you like [M]? ;)"


RaeKwon