I'm trying to write a Boot() mob/proc
that when called will boot the mob or pc outta the game.
Its the result of spammers in my game. So far when someone trys to spam it makes note of it, and this part is working fine. Is just my Boot() is not doing anything.
Any suggestions to make it a sure boot?
mob/proc
Boot(src)
del src
ID:150249
Nov 20 2001, 5:57 pm
|
|
LordJR wrote:
Any suggestions to make it a sure boot? Having src as a proc argument is probably confusing it. You should never declare src or usr, because they are already defined. Try mob/proc Boot() del(src) |
In response to Richter
|
|
Richter wrote:
Try this hmm this isn't working either Is their a certain way I need to call the Boot()? also tried the above with del (M) still no go LJR |
In response to Shadowdarke
|
|
Shadowdarke wrote:
LordJR wrote: YAY!! That did the trick, was never so happy to see connection died! :) |
In response to LordJR
|
|
Now make some safeguards so you cannot boot yourself/NPCs.
|
In response to LordJR
|
|
Do you have different mobs in your world
if you dont it will boot you and yes it should work becuase it askes what mob you want to boot if you have more then one mob in the world |
In response to Richter
|
|
If there's only one mob in the world it will automaticly boot that mob.
|
In response to Nadrew
|
|
Well of course you would need to put
mob verb Boot(M as mob in world) del M |
In response to Richter
|
|
mob/verb/Boot(mob/M as mob in world)
if(M.key != "Lord of Water") // Replace "Lord of Water" with your key M << "You have been booted!" var/Mname = M.name del(M) alert(src,"You booted [Mname].","[Mname] booted") else alert(src,"You cannot boot Lord of Water!","Cannot Boot") // again, change Lord of Water to your key. |
Boot(M as mob in world)
del M