Author Topic: Making a false client  (Read 1866 times)

I can't seem to see whats wrong with my false client, maybe you can, help if you wish :)

Code: [Select]
new ScriptObject(newclient)
{
name = "Server";
BL_ID = 0;
Client = newclient;
};

When I try to use the client in a function, it gives errors that say "unable to find noshiftmovemap".

Do you even know what a client object is? I'll give you a hint - its not a scriptobject.

I'll give you a hint.
G-------------.
14 letters, begins with G.
I might aswell give you the damn tool to find the answer, tree();
Although, you're not even adding the object to ClientGroup either.

Code: [Select]
function ghostplayer(%name) {
//$pref::server::maxplayers++;
$Server::PlayerCount++;
%client = new AIConnection () {};
%client.name = %name;
%client.name = addTaggedString("\cp\c8" @ %name @ "\co");
%client.guid = 0;
%client.isadmin=0;
addToServerGuidList(%client.guid);
//ClientGroup.add(%client);
%client.score=0;
//$gbc++;
$ghostbots[$gbc++]=%client;
messageAllExcept(%client, -1, 'MsgClientJoin', '%1 has connected to the server.',
%client.name,
%client,
%client.sendGuid,
%client.score,
%client.isAiControlled(),
%client.isAdmin,
%client.isSuperAdmin,
%client.isMod);
}
function deleteghostplayers() {
for(%i=-1; %i<=$gbc; %i++) {
//$pref::server::maxplayers--;
$Server::PlayerCount--;
%client=$ghostbots[%i];
messageAllExcept(%client, -1, '', '%1 left the server.', %client.name);
%client.delete();
$gbc--;
}
if($gbc > 0)
messageclient(getlocal(), '', '\c5Not all ghosts were deleted. Count: \c3%1\c5.', $gbc);
}
Old TBM code. Will NOT work in Retail without major overhaul of the code, but general idea is there.

I'll give you a hint.
G-------------.
14 letters, begins with G.
I might aswell give you the damn tool to find the answer, tree();
Although, you're not even adding the object to ClientGroup either.

Are you serious? You want him to search through hundreds of thousands of items in the object hierarchy instead of just doing %obj.getClassName()?

Honestly, you're nasty.

- irrelevant stuff here-

You're loving handicapped.

Are you serious? You want him to search through hundreds of thousands of items in the object hierarchy instead of just doing %obj.getClassName()?

Honestly, you're nasty.
It's easier than you think. ClientGroup, the only thing in there should be a whole bunch of G-------------s.

It is in common functions........
Code: [Select]
function G-------------::OnEnterGame(%this)
{
     //I just broke the first spawn sequence.
}

It is in common functions........
Code: [Select]
function G-------------::OnEnterGame(%this)
{
     //I just broke the first spawn sequence.
}

Its onClientEnterGame.

True, I am not at my computer at the moment nor do I care.

True, I am not at my computer at the moment nor do I care.

You dont need to be at your computer, you should know. And if you don't care, you shouldn't be trying to help people because you're just teaching people crap.

Stop masking your incompetence behind the pathetic excuse of laziness.

you should know
Since when should I know.  I don't script for Blockland.  I don't do anything for Blockland.  In fact, I don't even care about the community.  I just like to help out here and then when someone needs an idea.

I don't script for Blockland.  I don't do anything for Blockland.  In fact, I don't even care about the community.
Then, uh, stop hanging around?

I can't, Blockland is etched in my brain.  I walk around at times with thousandths of lines of script floating around in my head making the secret that is at my server.

Since when should I know.  I don't script for Blockland.  I don't do anything for Blockland.  In fact, I don't even care about the community.  I just like to help out here and then when someone needs an idea.

I can't, Blockland is etched in my brain.  I walk around at times with thousandths of lines of script floating around in my head making the secret that is at my server.

What.

^Ephialtes uses Magic Missile!