Author Topic: Disable Item Dropping  (Read 6057 times)

Suggested by alex dude in this topic


Download (hostr.co)

Can be toggled through RTB prefs or /toggleDropping. Additional preferences for showing messages are also in RTB. The 'error message' is when a player attempts to drop an item when the feature is disabled. The 'admin message' is when a player changes dropping through RTB or the /toggleDropping command.

Can you make that into events? so that when a brick is clicked the player can no longer drop items?

Can you make that into events? so that when a brick is clicked the player can no longer drop items?

I could, but I feel like making that so easily accessible may be a bad idea. I don't think you can trust people not to abuse it. Ordinarily this isn't bad, but in this case I think it's better if it's not possible.

In what case would this be abusive in a server?
Anyhow, a lot of events are possible abusive, but that shouldn't stop you from making events that could be useful for people.

This has been made before. I think it was by Kalphiter.

Use the search tool before suggesting things, people.

In what case would this be abusive in a server?
Anyhow, a lot of events are possible abusive, but that shouldn't stop you from making events that could be useful for people.
I know. I would normally never say that it shouldn't be made because of abuse possibilities, but do consider this: all players would have the ability to make any player that can trigger an event unable to drop items. I guess it's not a very important feature of the game, though.

This has been made before. I think it was by Kalphiter.

Use the search tool before suggesting things, people.
Yeah, it sounded familiar.

http://forum.blockland.us/index.php?topic=98510.0

Slightly different, but the differences are small. It most likely would have worked fine for alex dude's purposes.

I did use the search feature but couldn't find kalph's topic, but thank you anyway for creating this, i'm defiantly going to use it :)


tezuni also made one
I have it right here.

EDIT: Also, why is your code partly have this kind of space?
Code: [Select]
function serverCmdToggleDropping(%client)
{
if(!(%client.isAdmin || %client.isSuperAdmin))
return;
$Pref::Server::DropDisabled = !$Pref::Server::DropDisabled;
if(!$Pref::Server::DropShowAdmin)
return;
%msg = ($Pref::Server::DropDisabled ? "\c6" @ %client.getPlayerName() @ "\c0 has disabled item dropping." :
"\c6" @ %client.getPlayerName() @ "\c0 has enabled item dropping.");
messageAll('', %msg);
}

function onDroppingChanged(%old, %new)
{
if(!$Pref::Server::DropShowAdmin)
return;

%msg = (%new ? "Item dropping has been disabled through RTB prefs." :
"Item dropping has been enabled through RTB prefs.");

messageAll('', %msg);
}
Just wondering; but it makes me confused a little.
« Last Edit: August 02, 2013, 02:21:12 AM by Advanced Bot »

Are you referring to the tabs on the %msg = x; lines? If so, it was easier to read in Sublime Text. It may appear differently to you depending on your text editor.

This has been made before. I think it was by Kalphiter.

Use the search tool before suggesting things, people.
I did, but there was a better one a few months ago.

This is the 3rd one.

I did, but there was a better one a few months ago.

This is the 3rd one.
Tezuni made it.

ToggleToolDrop

Tezuni made it.

ToggleToolDrop
I think mine is the most functional because you can restrict it to certain groups.

I think mine is the most functional because you can restrict it to certain groups.
Yeah, that's probably a more useful way to implement it.