TeleportP(client/C in world) |
Problem description:
I'm trying to make it so When you click the verb it only shows the Players on the game, not all the mobs in it.I tried to do it but i can't so can someone help me.
ID:140350
Feb 8 2010, 12:21 pm
|
||
Code:
Problem description: I'm trying to make it so When you click the verb it only shows the Players on the game, not all the mobs in it.I tried to do it but i can't so can someone help me. | ||
#1 Feb 8 2010, 12:28 pm
|
|
You'll need to maintain a list of mobs that have clients (add/remove from it in Login() and Logout()) as client is not a supported verb argument type.
| |
#2 Feb 8 2010, 12:28 pm
|
|
apply whatever pathway your players have.
for instance mob/player/x instead of client/c in world so it would be var/mob/player/x in world *something to that effect* This is only assuming your verb is attached to your mob | |
#3 Feb 8 2010, 12:31 pm (Edited on Feb 8 2010, 4:21 pm)
|
||
EDIT: Sorry, accidently put X.y and X.z by accident, fixed | ||
Ssj4justdale, You piece of coding had an error in it it said, player: definition out of place (bad indentention?).
Can you help me with that? | |
Seeing as "player" does not appear anywhere in his code snippet, I do not believe he is in error.
I will point out that his players() proc is awfully wasteful, and it should either look like this:
or just have a global list maintained through Login() and Logout(), like this:
| |||