lostmotel told me it would be useful for some arena servers when players are disabled from spading enemies through (one-block-thick) walls, so upon some testing i found out that it was not hard at all to create such a script preventing it
admins can toggle the ability on and off via the command /togglewallspading (yeah i know my choice of words is unique)
1.4.2014: uh seems like something was off before, should work fine now i hope
6.4: ok once again
[script] omgnospadingthroughwallsanymore
-
Scripter - Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
Attachments
omgnospadingthroughwallsanymore.py
this script is cursed i tell you, CURSED!
(1.19 KiB) Downloaded 455 times
this script is cursed i tell you, CURSED!
(1.19 KiB) Downloaded 455 times
Last edited by Dr.Morphman on Sun Apr 06, 2014 12:40 am, edited 3 times in total.
I was never made aware of this bug :)
Nice job sorting it out
Nice job sorting it out
But I like spading through the wall and making people say Wall hax. 
BTW, Alias work like this

BTW, Alias work like this
Code: Select all
The order must be that, also you don't need name because "yourfunction" will act as a name (unless you have named your function something which is not acceptable as a command) So your command will be
@alias('yf')
@admin
def yourfunction(connection):
#blah blah
add(yourfunction)
Code: Select all
from commands import add, admin, alias
@alias('tws')
@admin
def togglewallspading(self):
if self.protocol.is_fluffy == True:
self.protocol.is_fluffy = False
self.protocol.send_chat(message_on)
return message_on
else:
self.protocol.is_fluffy = True
self.protocol.send_chat(message_off)
return message_off
add(togglewallspading)
-
bloxxer25052LP
Deuce - Posts: 12
- Joined: Sun Oct 13, 2013 12:46 pm
-
Scripter - Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
okay seems like something was realy off in this script (nice how long it took for anyone to notice haha),
i rewrote it and tested it thouroughly now (thx kiwi for helping out)
it should work perfectly fine now, just redownload the script
i rewrote it and tested it thouroughly now (thx kiwi for helping out)
it should work perfectly fine now, just redownload the script
-
Scripter - Posts: 73
- Joined: Sun Feb 24, 2013 9:55 am
okay now that was embarassing, anyways it should be FIXED NOW!
(rage incoming if it still contains mistakes)
(rage incoming if it still contains mistakes)
Who is online
Users browsing this forum: No registered users and 1 guest