ID:267879
 
heres some various buddy stuff i have:
mob/var/list/buddies
mob
verb
Add_Buddy(mob/M as mob in view())
set category = "Buddy"
buddies.Add(M)
Remove_Buddy(mob/M in buddies)
set category = "Buddy"
buddies.Remove(M)
Buddy_Say(mob/M in buddies, msg as text)
set category = "Buddy"
M << "\blue[usr] buddy-says: [msg]"

It doesn't work though...none of it.
so plz help me
mob
verb
Add_Buddy(mob/M as mob in view())
set category = "Buddy"
if(ismob(M)) buddies+=M
Remove_Buddy(mob/M in buddies)
set category = "Buddy"
if(Buddes.Find(M) buddies-=M
Buddy_Say(mob/M in buddies, msg as text)
set category = "Buddy"
M << "[usr] buddy-says: [msg]"
src.Buddies += M
src.Buddies -= M

Siientx
In response to Airjoe
You don't need those IF's.

Siientx
In response to Siientx
It's always safe :-)
One major issue strikes me here: It's very unlikely you'll want to use mobs in your buddy list. Rather, you should use keys. If you need access to the mob itself when that player is present, make the list associative.

Lummox JR
In response to Airjoe
well, it still doesn't work