Posted: Fri Sep 09, 2005 8:12 pm Post subject: Ink command for WW2
Hey guys..I've been messing around with WW2, and I made this command but it seems to not work..Its for the bot 2 show ink. There is no error on the prompt and when I do the command the bot says "0" So anyways, here's the code
Code:
# Made for the White Warrior Template
# Description: {lang_description}
sub ink1
{
my ($ww, $medium, $username, $friendly, $msg, $char, $self) = @_;
In your sendraw command you'd need to give a full message to MSN's server. I'm assuming that that includes commands other than just a message. It'd include headers such as type (typing, message, nudge, whatever). So just sending MSN a base64 ink wouldn't get you anywhere.
And the sending of "0" might be because WhiteWarrior expects something returned by your commands and you're returning nothing. _________________ Current Site (2008) http://www.cuvou.com/
Rod: Wouldn't it be easier to $self->sendInk($ink) and then return "Ink shown", or something. You cannot use $self->sendraw directly from the MSN.pm, nor from any commands, however, $self is passed, so you can do $self->sendInk [if it exists...] _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ]