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 - ¥ola

Pages: 1 ... 92 93 94 95 96 [97] 98 99 100
1441
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 08:24:39 PM »
...

I'm not asking for tips as to how to make this 'better'
I'm asking as to why it won't work

1442
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 07:33:54 PM »
I still don't understand why it will not work

1443
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 07:11:34 PM »
No, use onServerMessage for any sort of auto greeter that should never ever be made.

... Explain how to use it, give me an example?

1444
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 06:49:42 PM »
No I mean it won't work at all. Not one part of it

I thought it might be the connected stuff, so I deleted that and tried it but it still won't work

Exact code I'm using:

Code: [Select]
package ChatBot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if($ChatBot::On)
{
switch$(%msg)
{

case "Hey":
commandToServer('messagesent', "ChatBot: Hey");

}
}
}
};
activatepackage (ChatBot);

package ChatBotRegister
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%name $= "¥ola")
{
switch$(%msg)
{

case "ChatBot On":
commandToServer('messagesent', "ChatBot: On"):
$ChatBot::On = true;

case "ChatBot Off":
commandToServer('messagesent', "ChatBot: On"):
$ChatBot::On = false;

}
}
}
};
activatepackage (ChatBotRegister);

1445
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 06:16:18 PM »
Why won't this work?

Code: [Select]
package ChatBotGreet
{
function newChatHud_addLine(%text)
{

Parent::newChatHud_addLine(%text);
if(%text $="connected.")
{
if($ChatBot::On)
{
%num = getrandom(1,5);
commandtoserver('messagesent', "ChatBot: @ %num);
}
}
}
};
activatepackage (ChatBotGreet);





Full Script:

Code: [Select]
package ChatBot
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if($ChatBot::On)
{
switch$(%msg)
{

case "Hey":
commandToServer('messagesent', "ChatBot: Hey");

}
}
}
};

package ChatBotRegister
{
function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%name $= "¥ola")
{
switch$(%msg)
{

case "ChatBot On":
$ChatBot::On = true;

case "ChatBot Off":
$ChatBot::On = false;

}
}
}
};
activatepackage (ChatBotRegister);

package ChatBotGreet
{
function newChatHud_addLine(%text)
{

Parent::newChatHud_addLine(%text);
if(%text $="connected.")
{
if($ChatBot::On)
{
%num = getrandom(1,5);
commandtoserver('messagesent', "ChatBot: @ %num);
}
}
}
};
activatepackage (ChatBotGreet);

1446
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 05:45:20 PM »

1447
Suggestions & Requests / Re: Toggleable Spawn Point Via Events
« on: June 11, 2012, 05:29:04 PM »
Slayer spawns work off of colors, if I am correct.

Couldn't you just use setColor and set it to a color not used by a team for the toggleSpawnpoint

1448
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 05:26:05 PM »
Seem to be having yet another problem:

A problem with this

Code: [Select]
package ChatBotRegister
{
function function clientCmdChatMessage(%a, %b, %c, %fmsg, %cp, %name, %cs, %msg)
{
Parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%name $= "¥ola")
{
switch$(%msg)
{

case "ChatBot On":
$ChatBot::On = true;

case "ChatBot Off":
$ChatBot::On = false;

}
}
}
};
activatepackage (ChatBotRegister);

1449
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 05:11:45 PM »
== in torque script is not used to compare strings, it's generally used for integers and things of that sourt. To compare strings we use $= (does string equal?) so "hi" $= "hello", etc.
Okay thank you a lot for that, but I was talking more along the lines of will it recognize the ¥ in my name

1450
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 05:08:36 PM »
One last thing,
is this a correct if statement after the clientcmdchatmessage?

Code: [Select]
if(%name == ¥ola)

1451
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 05:00:37 PM »
30 seconds hawly sheets batman!

Just create a function to do the greet, let's say it's named THCIATHEFUNCTIONUSEDTOGREETPEOPLE.

Then create a schedule, and put the function inside it, like this:
schedule(%delay, 0, THCIATHEFUNCTIONUSEDTOGREETPE OPLE);

You'll have to take the space out of that because for some reason it added one automatically.
Thank you

1452
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 04:56:58 PM »
How would I add delays to the responses?
As in

RandomPlayer: Hey

30second delay

Yola: ChatBot: Hey!

1453
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 04:54:27 PM »
Here is how I would make a chat bot (but a lot more advanced if I was going to as I whipped this up in like 5 minutes). It allows for more responses and less ifs/cases to be used.

(i didn't test this)

-snip-

Love this idea, I had something just like this all planned out for greets/goodbyes

1454
Games / Re: EVE Online - fly cool spaceships and whatnot
« on: June 11, 2012, 04:39:27 PM »
Just started EVE about 3 months ago, got into a corp that doesn't help out at all.
I have all my skills to fly my first Gallente Battlecruiser, fully equipped but can't afford the damn thing.

1455
Modification Help / Re: Chat Bot Help
« on: June 11, 2012, 04:24:14 PM »
No problem, wondering how to do this correctly,
Am I using the switch correctly?

Pages: 1 ... 92 93 94 95 96 [97] 98 99 100