Blockland Forums > Modification Help

My chatbot is not working

Pages: << < (14/23) > >>

phflack:

you should indent it decently to make it easier to read

Treynolds416:


--- Quote from: phflack on April 04, 2012, 01:58:55 PM ---you should indent it decently to make it easier to read

--- End quote ---
He just copied think invisible's stuff straight from the tut

jes00:


--- Quote from: phflack on April 04, 2012, 01:58:55 PM ---you should indent it decently to make it easier to read

--- End quote ---
Much better :P

--- Code: ---// Made by ThinkInvisible, BLID 14511, helped and edited by Deoxys & One Noob, BLID 30436

package GunGame
{
$rouletteBarrel = getRandom(1, 7);
$rouletteScoreCombo = 0;
$rouletteLastShoot = Nan;

function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);

if(strPos(%msg,"Roulette") > 0 && (strPos(%msg,"Dare the odds") > 0))
{
if($rouletteLastShoot != %name)
{
commandToServer('messageSent', %name SPC "spins the barrel and pulls the trigger...");

%tempVal = getRandom(1, 7);

if(%tempVal = $rouletteBarrel)
{
$rouletteScore[%name] ++;

export("$rouletteScore*","config/Roulette/scores.cs");
$rouletteLastShoot = Nan;
$rouletteBarrel = getRandom(1, 7);

commandToServer('messageSent',"NoobBot: *BLAM*..." SPC %name SPC "got hit!" SPC %name SPC "has been hit" SPC $rouletteScore[%name] SPC "times.");
}
else
{
commandToServer('messageSent',"NoobBot: *Chk*..." SPC %name SPC "missed the bullet! Nice one there, winner...");

$rouletteLastShoot = %name;
}
}
else
{
commandToServer('messageSent',"NoobBot: What?" SPC %name @ ", you can't dare your odds twice in a row! Let somebody else have a turn please, for the sake of fun.");
}
}
}
};
activatePackage(GunGame);

--- End code ---


Deoxys And One Noob:


--- Quote from: Treynolds416 on April 04, 2012, 01:23:09 PM ---And the tutorial you are using is pretty bad

--- End quote ---

I know that now, why, oh WHY did I use that one.

I want one from Truce!

Hes much better

otto-san:


--- Quote from: Deoxys And One Noob on April 04, 2012, 04:04:41 PM ---I know that now, why, oh WHY did I use that one.

I want one from Truce!

Hes much better

--- End quote ---
he'd probably make one if he knew you wanted one, he seems to do that sort of thing

but he probably doesn't know you want one

Pages: << < (14/23) > >>

Go to full version