ID:175957
 
Can anyone give me a command to keep them from:

a) Leaving the game
b) Not being able to move
c) Not being able to see

I would like it to be called Ensnare please.

This is for those people who think it is funny to go into other games and make fun (and making rude remarks) of them for not playing their game.
mob/GM/verb/Ensnare(mob/M in world)
M.loc=locate(0,0,0)//make their location a black void
usr.see_invisible=10
M.invisibility=1//makes them invisible to themselves
M <<"<B>YOU HAVE BEEN ENSNARED IN A BLACK VOID!!!</B>"


That should work...

if not,
mob/GM/verb/Ensnare(mob/M in world)
M.loc=locate(null)//make their location a black void
usr.see_invisible=10//makes it so in the future the GM can see the person to "unsnare" them
M.invisibility=1//makes them invisible to themselves
M <<"<B>YOU HAVE BEEN ENSNARED IN A BLACK VOID!!!</B>"


As for keeping them in the game, i dont think it is possible without screwing their PC up (they can no matter what you do just close DS)
In response to Nick231
also, to keep them from making rude remarks/and or fun of the game, you may want a Mute verb too:

mob/GMverbs


verb
Mute(mob/M in world)
set category = "GM"
if(!usr.Muted)
M.Muted = 1
M <<"You have been muted by [usr]!"
usr <<"You have muted [M]!"
else
usr <<"[M] is already muted!"

GM_Un_Mute(mob/M in world)
set category = "GM"
if(usr.Muted)
M.Muted = 0
M <<"You have been un-muted by [usr]!"
usr <<"You have un-muted [M]!"
else
usr <<"[M] is not muted!"

and then the say verb for your game must be:
Say(msg as text)
if(usr.Muted)
usr <<"You are muted!"
else
view() <<"<font color = green>\icon[usr][usr]: [msg]</font>"
In response to Airjoe
Ok thanks for that. As for the thing about keeping them in your game, I suppose that could work at a disadvantage too in some way. Ill settle for the rest though. Thanks guys!
Rii wrote:
Can anyone give me a command to keep them from:

a) Leaving the game

Not possible. All they have to do is close DS, log out, or join something else.

Lummox JR
Rii wrote:
b) Not being able to move
c) Not being able to see

This is very simple, and very easy - just set their <code>loc</code> var to <code>null</code>. =P

If you're feeling really evil, you can remove all their verbs by doing this:

<code>src.verbs=null src.client.verbs=null</code>
In response to Crispy
Oooooooooooooooooooooh sinister :P Sorta lol. But how can I give them their verbs back?
Rii wrote:
Can anyone give me a command to keep them from:

a) Leaving the game
b) Not being able to move
c) Not being able to see

I would like it to be called Ensnare please.

This is for those people who think it is funny to go into
other games and make fun (and making rude remarks) of them
for not playing their game.

Unfortunately you cannot prevent someone from just quitting the game via 'Logout' or 'Quit' in DreamSeeker... otherwise it would be easy to have a 'captive' audience! =)
In response to Rii
mob/src/verbs+= mob.verb"verb"
or sumtin like that. don't copy that, wait till sum1 who knows what they're doing corrects it.
In response to Airjoe
Airjoe wrote:
mob/src/verbs+= mob.verb"verb"
or sumtin like that. don't copy that, wait till sum1 who knows what they're doing corrects it.
for(var/O in typesof(/mob/verb))
M.verbs+=O
In response to Goku72
M.verbs = initial(M.verbs)

I win!