Author Topic: Script_ServerCredits  (Read 5432 times)

he meant functioned in a similar way, not copied
In that case, it sorta like that, except I think Script_serverrules has a few more commands and you don't have to have RTB to use it.

Nice edit of electrks server rules.

Can I ask why you thought it would be a good idea to credit yourself for code you didn't write?
« Last Edit: January 11, 2013, 09:20:14 PM by Eeposs »

Could be useful. Can I get some pics of it in action? The RTB prefs don't show that much...

Haha this is a joke and so are you. How pathetic. This is basically a stuffty copy of Electrk's with stuff ripped out. Not even the least bit of credit.

(for further comparison: http://forum.returntoblockland.com/dlm/viewFile.php?id=2036)
Code: (Electrk's) [Select]
package ServerRulesPackage
{
function GameConnection::onClientEnterGame(%c)
{      
Parent::onClientEnterGame(%c);

schedule(2000, 0, showRules, %c); //so they don't go away immediately
}
};
activatePackage(ServerRulesPackage);

// ...

if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
   if(!$RTB::RTBR_ServerControl_Hook)
      exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
 
   RTB_registerPref("Title", "Server Rules", "$Pref::Server::Title", "string 20", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 1", "Server Rules", "$Pref::Server::Line1", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 2", "Server Rules", "$Pref::Server::Line2", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 3", "Server Rules", "$Pref::Server::Line3", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 4", "Server Rules", "$Pref::Server::Line4", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 5", "Server Rules", "$Pref::Server::Line5", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 6", "Server Rules", "$Pref::Server::Line6", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 7", "Server Rules", "$Pref::Server::Line7", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 8", "Server Rules", "$Pref::Server::Line8", "string 200", "Script_ServerRules", "", 0, 0);
}
else
{
   $Pref::Server::Title = "Server Rules";
   $Pref::Server::Line1 = "1. No spamming";
   $Pref::Server::Line2 = "2. No asking for admin";
   $Pref::Server::Line3 = "3. No random trust invites";
   $Pref::Server::Line4 = "4. Build on a baseplate";
   $Pref::Server::Line5 = "";
   $Pref::Server::Line6 = "";
   $Pref::Server::Line7 = "";
   $Pref::Server::Line8 = "";
}

function serverCmdRules(%c)
{
messageClient(%c, '', "\c2" @ $Pref::Server::Title @ "\c6: \c3" @ $Pref::Server::Line1 NL $Pref::Server::Line2 NL $Pref::Server::Line3 NL $Pref::Server::Line4 NL $Pref::Server::Line5 NL $Pref::Server::Line6 NL $Pref::Server::Line7 NL $Pref::Server::Line8);
messageClient(%c, '', "\c6Type /rules to see them again");
commandToClient(%c, 'messageBoxOK', $Pref::Server::Title, $Pref::Server::Line1 NL $Pref::Server::Line2 NL $Pref::Server::Line3 NL $Pref::Server::Line4 NL $Pref::Server::Line5 NL $Pref::Server::Line6 NL $Pref::Server::Line7 NL $Pref::Server::Line8 NL "\c6Type /rules to see them again");
}

// ...
}

And then look at:

Code: ("Wound's") [Select]
if(isFile("add-ons/system_returntoblockland/server.cs"))
{
   if(!$RTB::RTBR_ServerControl_Hook)
   exec("add-ons/system_returntoblockland/rtbr_servercontrol_hook.cs");
   RTB_registerPref("Title","Server Credits","$Pref::Server::Title","string 20","Script_ServerCredits","",0,0);
   RTB_registerPref("Line1","Server Credits","$Pref::Server::Line1","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line2","Server Credits","$Pref::Server::Line2","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line3","Server Credits","$Pref::Server::Line3","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line4","Server Credits","$Pref::Server::Line4","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line5","Server Credits","$Pref::Server::Line5","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line6","Server Credits","$Pref::Server::Line6","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line7","Server Credits","$Pref::Server::Line7","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line8","Server Credits","$Pref::Server::Line8","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line9","Server Credits","$Pref::Server::Line9","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line10","Server Credits","$Pref::Server::Line10","string 200","Script_ServerCredits","",0,0);
}

package Credits
{
function GameConnection::autoadmincheck(%cl)
{
      %cl.chatmessage("\c1The Server is running Script_ServerCredits by \c6Juicebox/Wound \c3||| \c1Type \c6/CreditsHelp \c1for help \c3||| \c6/Credits \c1to see the Credits of the server.");
      return parent::autoAdminCheck(%cl);
}
};
activatePackage(Credits);

function serverCmdCreditsHelp(%cl)
{
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
messageClient(%cl,'',"\c3/Credits \c6 To Show server's the Credits.");
messageClient(%cl,'',"\c3There's also an RTB Prefs to set the Credits.");
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}

function serverCmdCredits(%cl)
{
   commandToClient(%cl,'messageBoxOK',$Pref::Server::Title,$Pref::Server::Line1 NL $Pref::Server::Line2 NL $Pref::Server::Line3 NL $Pref::Server::Line4 NL $Pref::Server::Line5 NL $Pref::Server::Line6 NL $Pref::Server::Line7 NL $Pref::Server::Line8 NL $Pref::Server::Line9 NL $Pref::Server::Line10 NL "\c6Type \c4/Credits \c6to see again.");
}

Both of them are written like stuff as well. I find it funny that you're releasing crap (from the looks like it copy and pasted and then forgeted up OR retyped) to repair your broken reputation.

<removed>

tl;dr wound is a friend. again. try harder OP hope you (and your mom) liked that carrot in your mail
« Last Edit: April 02, 2017, 01:14:06 PM by Badspot »

« Last Edit: April 02, 2017, 01:14:22 PM by Badspot »

I recently edited the server rules add-on to make the formatting better and a slight delay before showing the rules when spawning but it's still a stuff add-on. I made it when I barely knew about scripting.
« Last Edit: January 11, 2013, 09:40:52 PM by Electrk »

I did not directly copy it.

Also the only thing that looks similar is
Code: [Select]
  RTB_registerPref("Title", "Server Rules", "$Pref::Server::Title", "string 20", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 1", "Server Rules", "$Pref::Server::Line1", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 2", "Server Rules", "$Pref::Server::Line2", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 3", "Server Rules", "$Pref::Server::Line3", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 4", "Server Rules", "$Pref::Server::Line4", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 5", "Server Rules", "$Pref::Server::Line5", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 6", "Server Rules", "$Pref::Server::Line6", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 7", "Server Rules", "$Pref::Server::Line7", "string 200", "Script_ServerRules", "", 0, 0);
   RTB_registerPref("Line 8", "Server Rules", "$Pref::Server::Line8", "string 200", "Script_ServerRules", "", 0, 0);
It was one of the many scripts I learned from a while back, I went ahead and used
As a reference a while back as well when I was messing around with codes.

Also Dotdot I like how you were dumb enough to prank call my house without using *67.
your reaction was amaizing over the phone when we called you back and said "ok I will listen"
I laughed pretty hard.

And It's been around a week and a half since Seventh told me that Glass or someone ordered me a carrot, still isn't here.
« Last Edit: January 11, 2013, 09:54:53 PM by Juice »

I did not directly copy it.
You're right, it's only mostly copied.
Also Dotdot I like how you were dumb enough to prank call my house without using *67.
your reaction was amaizing over the phone when we called you back and said "ok I will listen"
I laughed pretty hard.
You think I actually called you? I'm not the only one who has your # you know, I've never called you. You should know that when I call people I use a burner Skype, not my cell phone.

You're right, it's only mostly copied.
It's not even copied at all.


Bullstuff.
Believe that, if you want.  But it isn't copied whatsoever.


Also, "your" add-on overwrites mine's prefs because they are exactly the same.

Believe that, if you want.  But it isn't copied whatsoever.

???

ok but the indentation on the lines registering the RTB prefs doesn't match your style?
Code: (yours) [Select]
function serverCmdCreditsHelp(%cl)
{
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
messageClient(%cl,'',"\c3/Credits \c6 To Show server's the Credits.");
messageClient(%cl,'',"\c3There's also an RTB Prefs to set the Credits.");
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}

Code: (electrks) [Select]
if(isFile("add-ons/system_returntoblockland/server.cs"))
{
   if(!$RTB::RTBR_ServerControl_Hook)
   exec("add-ons/system_returntoblockland/rtbr_servercontrol_hook.cs");
   RTB_registerPref("Title","Server Credits","$Pref::Server::Title","string 20","Script_ServerCredits","",0,0);
   RTB_registerPref("Line1","Server Credits","$Pref::Server::Line1","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line2","Server Credits","$Pref::Server::Line2","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line3","Server Credits","$Pref::Server::Line3","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line4","Server Credits","$Pref::Server::Line4","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line5","Server Credits","$Pref::Server::Line5","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line6","Server Credits","$Pref::Server::Line6","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line7","Server Credits","$Pref::Server::Line7","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line8","Server Credits","$Pref::Server::Line8","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line9","Server Credits","$Pref::Server::Line9","string 200","Script_ServerCredits","",0,0);
   RTB_registerPref("Line10","Server Credits","$Pref::Server::Line10","string 200","Script_ServerCredits","",0,0);
}

Conclusion: you stole code

« Last Edit: January 11, 2013, 10:16:34 PM by Eeposs »

Also, "your" add-on overwrites mine's prefs because they are exactly the same.
I went ahead and fixed this problem and rewrote the Prefs function of the script.

Code: [Select]
if(isfile("add-ons/system_returntoblockland/server.cs"))
{
   if(!$rtb::rtbr_servercontrol_hook)
   
      exec("add-ons/system_returntoblockland/rtbr_servercontrol_hook.cs");
      rtb_registerPref("Title","Server Credits","$Pref::Server::Title","string 60","script_servercredits", 0, 0);
      rtb_registerPref("Credit1","Server Credits","$pref::Server::Credit1","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit2","Server Credits","$pref::Server::Credit2","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit3","Server Credits","$pref::Server::Credit3","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit4","Server Credits","$pref::Server::Credit4","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit5","Server Credits","$pref::Server::Credit5","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit6","Server Credits","$pref::Server::Credit6","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit7","Server Credits","$pref::Server::Credit7","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit8","Server Credits","$pref::Server::Credit8","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit9","Server Credits","$pref::Server::Credit9","string 600","script_servercredits", 0, 0);
      rtb_registerPref("Credit10","Server Credits","$pref::Server::Credit10","string 600","script_servercredits", 0, 0);
}

And if it looks the same then too bad.  I can't think of any other way to put a RTB Pref.

I think the add-on is a stupid idea but there aren't that many ways to write it...