1
Help / Re: Event help!
« on: June 15, 2014, 01:32:38 PM »
Thank you so much, i really mean it :D
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.
You mean like that item in Pload's jail escape? If I remember correctly, you had a chisel that you took the guard towers down with.
You posted no code for us to help with, only the question "is that possible?"else if(getwords(%msg, 0, 1) $= "Chatbot do" && getWord(%msg, 3) $= "+" && getWordCount(%msg) == 5)
So; to answer your question: yes.
function getTime()Thank you sooooooo much
{
%timeHour = getSubStr(getWord(getDateTime(), 1), 0, 2);
%timeMinute = getSubStr(getWord(getDateTime(), 1), 3, 2);
if(%timeHour > 12)
{
%timeHour -= 12;
%timeWord = "PM";
}
else
{
%timeHour = getSubStr(getWord(getDateTime(), 1), 1, 1);
%timeWord = "AM";
}
return %timeHour @ ":" @ %timeMinute SPC %timeWord;
}
function getDate()
{
%date = getWord(getDateTime(), 0);
return %date;
}
package pingClient
{
function serverCmdMessageSent(%client,%msg)
{
if(%client.isSuperADmin && getSubstr(%msg,0,1) $= "!")
{
switch$(getSubStr(firstWord(%msg),1,strLen(firstWord(%msg))))
{
case "ping":
%name = restWords(%msg);
%plr = findclientbyname(%name);
if(!isObject(%plr))
{
messageClient(%client,'',"No one named " @ %name);
return;
}
%ping = %plr.getPing();
messageClient(%client,'',%plr.name @ " has the ping of " @ %ping @ "ms");
case "time":
messageClient(%client,'',"It's " @ getTime() @ " on " @ getDate());
}
}
else
{
return parent::serverCmdMessageSent(%client,%msg);
}
}
};activatepackage(pingClient);
fixed a bug and added time/date and made it super mega ultra dynamic
It would just make it easier for you to edit commands, someone else can give an example if they want.i want a chatbot but not an annoying chatbot i want a chatbot that only responds to me and has a couple of commands like ping, time and calc
Are you going to want more than the !ping and !time commands? If so, it would be a good idea to have an easier-to-edit command system.
well this would need either just to be a serversided add-on or a clientsided add-on that interacts with a serversided add-on because by default you can't just get people's ping.
Though I will quickly write you something up.
It'll be used like so
!ping -name- without the -'s
package pingClient
{
function serverCmdMessageSent(%client,%msg)
{
if(%client.isSuperADmin && firstWord(%msg) $= "!ping")
{
%name = restWords(%msg);
%plr = findclientbyname(%name);
if(!isObject(%plr))
{
messageClient(%client,'',"No one named " @ %name);
return;
}
%ping = %plr.getPing();
messageClient(%cleint,'',%plr.name @ " has the ping of " @ %ping @ "ms");
}
else
{
return parent::serverCmdMessageSent(%client,%msg);
}
}
};activatepackage(pingClient);
i probably made some stupid error. fix it if you see it (not tested)
put this in a cs and type exec("path/in/bl/folder/to/cs/file.cs"); and it should work.
Here are the textures:
http://www.mediafire.com/?4892p102c2yeytc
That should work. Open up the .rar file and put the 5 files (brickRAMP.png, brickTOP.png...etc) into
Documents -> Blockland -> Base -> Data -> Shapes
In shapes, replace the default texture files with these. You can copy and paste the default ones out just in case you want to re-use them, but make sure the new textures you put in are named the same way the default ones were before you replaced them. After you replace them with the new ones, highlight all of 5 them, right click, and click "Properties". Then, check the "Read-Only" box and hit "Ok" (make sure all of them are read-only!)