Author Topic: ►►►Taking Simple Add-on Requests◄◄◄ (busy right now stuff will be done later)  (Read 18910 times)

This next one would be very quick for who knows the commands and specifics and would help me a LOT.

When super shift is enabled, 1/3 brick up and down also super shift the brick.

This next one would be very quick for who knows the commands and specifics and would help me a LOT.

When super shift is enabled, 1/3 brick up and down also super shift the brick.
As this is indeed very quick and noone replied yet:

Code: client.cs (21 lines)
package ThirdSuperShift
{
    function shiftBrickThirdUp(%val)
    {
        if($SuperShift)
            superShiftBrickUp(%val);
        else
            parent::
shiftBrickThirdUp(%val);
    }

    function shiftBrickThirdDown(%val)
    {
        if($SuperShift)
            superShiftBrickDown(%val);
        else
            parent::
shiftBrickThirdDown(%val);
    }
};

activatePackage("ThirdSuperShift");

« Last Edit: April 11, 2015, 10:09:12 AM by Zeblote »

I'm not sure if this is asking too much, but it seems like it would be easy enough to code if you knew how to mess with brick groups.

Could you make a "Group Name" box for the wrench menu?
This way, you can name bricks individually, or by group

like my crappily modified image here


This would be really cool for events. Bricks keep their individual names, while also being apart of another "whole group"
ex) onInput > Named_Group > [groupnamehere]  > Output

I understand you can already "group brick names" by naming them the same thing, but what if you want to preform other individual events on a brick within a group?
If you can figure out a way to do this without adding a second field for the group name on the gui it would be much easier, as a client sided script wouldn't be required


Do you think you could make some entertaining and useful admin commands? This includes stuff like

/broadcast [Message] - broadcast message
/slap [target] - Slap a player.
/fakejoin [name] - Displays a message saying that person has joined.
/fakeadmin [name] - Displays a message saying that person has been admined.
/possess and /unpossess [name] - Possess a user.
/explode [name] - Spawns an explosion on a player, killing it.
/playerchat [name] - Lets you talk as a different person.
/freeze and /unfreeze [name] - Freezes a player.
/fakequit [name] - Displays a message saying that person has quit.
/god and /ungod [name] - Makes this person invincible.
/give [name] [Weapon Name] - Gives a player a weapon or tool.
/ghost and /unghost [name] - Makes a player invisible, gives them god, allows them to fly, and allows them to walk through things, but not able to interact with anything.


Sounds like the most admin abusable thing ever made (not to mention half of them are pointless except to troll)
I cant think of a single scenario where /fakeadmin would be used to the servers benefit


Anyway thanks for putting me on the express queue swollow

Sounds like the most admin abusable thing ever made (not to mention half of them are pointless except to troll)
I cant think of a single scenario where /fakeadmin would be used to the servers benefit


Anyway thanks for putting me on the express queue swollow
Well what if I did this?

Do you think you could make some entertaining and useful admin commands? This includes stuff like

/broadcast [Message] - broadcast message
/slap [target] - Slap a player.
/fakejoin [name] - Displays a message saying that person has joined.
/fakeadmin [name] - Displays a message saying that person has been admined.
/possess and /unpossess [name] - Possess a user.
/explode [name] - Spawns an explosion on a player, killing it.
/playerchat [name] - Lets you talk as a different person.
/freeze and /unfreeze [name] - Freezes a player.
/fakequit [name] - Displays a message saying that person has quit.

/god and /ungod [name] - Makes this person invincible.
/give [name] [Weapon Name] - Gives a player a weapon or tool.
/ghost and /unghost [name] - Makes a player invisible, gives them god, allows them to fly, and allows them to walk through things, but not able to interact with anything.

ok what about this
/shutdown - kicks all non-admins out of the server and displays a message that has been set via rtb prefs

ok what about this
/shutdown - kicks all non-admins out of the server and displays a message that has been set via rtb prefs

I think that might already exist. Check the rtb archive.

Is something like onBotAggro and setBotFireRate possible for you to do?

ok what about this
/shutdown - kicks all non-admins out of the server and displays a message that has been set via rtb prefs

i did this in my script_rpchat modifications for the bluzone
swollow could just extract that from there, it's not hard

Code: [Select]
function serverCmdShutDown(%this)
{
if(!%this.isSuperAdmin)
return;

for(%i=0;%i<clientGroup.getCount();%i++)
{
%cl = clientGroup.getObject(%i);
if(!%cl.isAdmin)
{
%cl.delete($Pref::Swol_ShutdownMessage);
%i--;
}
}
}
« Last Edit: April 11, 2015, 05:06:55 PM by Swollow »

Code: [Select]
function serverCmdShutDown(%this)
{
if(!%this.isSuperAdmin)
return;

for(%i=0;%i<clientGroup.getCount();%i++)
{
%cl = clientGroup.getObject(%i);
if(!%cl.isAdmin)
%cl.delete($Pref::Swol_ShutdownMessage);
}
}

This won't work, if you delete client 0 the remaining ones will move down to fill the place. You have to reverse the loop:

Code: server.cs (14 lines)
function serverCmdShutDown(%client)
{
    if(!%client.isSuperAdmin)
        return;

    for(%i = clientGroup.getCount() - 1; %i >= 0; %i--)
    {
        %cl = clientGroup.getObject(%i);

        if(!%cl.isAdmin)
            %cl.delete($Pref::Swol_ShutdownMessage);
    }
}


good point
but point invalidated with your flaunting of 'fancy text'

good point
but point invalidated with your flaunting of 'fancy text'

well that way works too ofc, doesn't really make a difference


The fancy code is a sublime text 3 plugin that you can install using Package Control by adding this repository: https://github.com/Zeblote/ExportHtml/tree/master

I took an existing bbcode exporter and modified it slightly to work for the blockland forum but I'm not 100% sure whether it will work in all cases and I don't want people raging at me b/c it doesn't work
« Last Edit: April 11, 2015, 05:13:25 PM by Zeblote »