Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - infiniteLoop

Pages: 1 2 3 [4] 5
46
Modification Help / Re: Delays
« on: July 28, 2011, 08:25:24 PM »
You shouldn't do it like that..

Instead, do this

%obj.client.player.schedule(10000,setDataBlock,"HorseArmor");

47
Modification Help / Re: ServerCmd Delay
« on: July 28, 2011, 11:40:18 AM »
Code: [Select]
function serverCmdSomeCommand(%client) {
if(%client.lastTimeSomeCommand $= "" || (%time = getSimTime()) - %client.lastTimeSomeCommand > 5000) {
//your code here
%client.lastTimeSomeCommand = %time;
}
else
messageClient(%client, '', "You can't use this command right now.");
}

I shortened it a little. :D I'm God of suck.

Yes, yes you are.

48
Modification Help / Re: Broadcast Sound
« on: July 27, 2011, 11:31:29 PM »
Yeah, there is multiple ways to do this..

49
What about a damageReduction player variable, and then package onDamage to deal less damage based on the variable?

I saw this done in such a way that it worked exactly the same as changing a players max health. I forgot who posted it, or where they posted it

Lol yes, or overwrite the damage functions and create new ones D:  :cookieMonster:

50
This add-on is loving stuff.

Seriously, buildbot, okay but that duplicator stuff is in-acceptable.

I will never download this stuff.

-1 respect.

:D

51
You can't change a single player's datablock without it affecting every other person using that same datablock... As crab has said..

52
Modification Help / Re: ServerCmd Delay
« on: July 27, 2011, 06:04:21 PM »
Code: [Select]
function servercmdstuff(%client)
{
if(%client.lastcommand <= $Sim::Time+10)
{
messageclient(%client,'',"You must wait 10 seconds before using this command again.");
%client.lastcommand = $Sim::Time;
}
}
Would that work too?

No, sime time isn't actual seconds.. It is milliseconds

53
Modification Help / Re: ServerCmd Delay
« on: July 27, 2011, 06:03:20 PM »
Code: [Select]
function serverCmdDoSomething(%client)
{
  if(%client.somethingCooldown)
    return;
  //stuff
  %client.somethingCooldown = 1;
  schedule(5000,0,cooledDown,%client);
}

function cooledDown(%obj)
{
   %obj.somethingCooldown = 0;
}

something like that but there's probably a better way to do it, i don't know if that works or not

Warning - while you were typing a new reply has been posted. You may wish to review your post.
ah i see

Yes, this is another way to do it.

54
Modification Help / Re: ServerCmd Delay
« on: July 27, 2011, 06:01:37 PM »
It should look something like this

Code: [Select]
function serverCmdSomeCommand(%client)
{
     %time = getSimTime();
     if(%client.lastTimeSomeCommand $= "" || %time - %client.lastTimeSomeCommand > 5000)
     {
          //your code here

          %client.lastTimeSomeCommand = %time;
     }
     else
     {
          messageClient(%client,'',"You can't use this command right now.");
     }

}

This should work..

55
Modification Help / Re: Client sided?!
« on: July 27, 2011, 12:46:32 PM »
I have seen ppl do /"commandhere"

And they do stuff and their not admin and their not host.

So there must be away.

That is because the server has that function available.

For example, if you go to any server and type /messageSent hi
It'll execute that command..
There is a way to make a /command client sided though which i won't go into detail on..

56
Add-Ons / Re: IRC 2 Chat Version 2
« on: July 27, 2011, 12:42:36 PM »
No, RTB 4 is using it's own chat. Blockland's in-game chat on servers still exists.

Ohh, so IRC will be gone, is what you are saying

@mega, oh well i haven't been here very long..

57
Modification Help / Re: Client sided?!
« on: July 27, 2011, 12:39:13 PM »
Don't question his methods.

of course, what was I thinking

58
Add-Ons / Re: IRC 2 Chat Version 2
« on: July 27, 2011, 12:38:23 PM »
Oh, RTB 4 is deleting blockland's default chat, and is using a new one?

59
Modification Help / Re: Client sided?!
« on: July 27, 2011, 12:36:20 PM »
Lol but why use 9, since the argument is a boolean, that doesn't make sense.. maybe i'm just too used to proper languages..

60
Modification Help / Re: Client sided?!
« on: July 27, 2011, 12:26:04 PM »
Lol @ moveForward(9);

Just type in the console:

Code: [Select]
moveForward(1);
To stop moving forward type:

Code: [Select]
moveForward(0);
Or you can use funny little variables in the same way:

Code: [Select]
$mvForwardAction = 1;
To stop moving forward:

Code: [Select]
$mvForwardAction = 0;

Pages: 1 2 3 [4] 5