AuthorMessage
Meka][Meka
Unstopable
Posts: 700

the latest guides and updates will be posted here.
newest:
Code:

Global
------
SetBotValues(bot, '-BOT-', 'Bot 1', 'luabot', '<++ tag here>', '103212334', 'DSL');
bot = getnewbot{
   Handle = 0
}
SendToAll(bot, 'HELLO WORLD!');
Bot:
----
Connect('127.0.0.1', 411)
Disconnect();
SendChat('Text')
SendData('$Hello');
SendRaw('$Hello|');
SendPM('Meka][Meka', 'Hello ther,,');
Events
------
function TimerEvent()
   --//called every 1 second.
end;
function ChatArrival(self, nick, text)
end;
function Connected(self)
end;
function LoggedIn(self)
end;
function NewUserConnected(self, nick)
end
function UserDisconnected(self, nick)
end

Meka][Meka
Unstopable
Posts: 700

new version you now have access to vars etc.
Code:

Bot
---
.Name = 'name';
.Connection = 'dsl';
.Description = 'desc';
.Tag = 'tag';
.Password = 'pass';

Bot.Name = 'Blah';
Meka][Meka
Unstopable
Posts: 700

latest scriptek 1.2's scripting guiide
Quote:

Function
--------
Main()
--// Main Event Rises on Script Load and Reload.
Connected(Self)
--// Connected event.
Connected(Self)
--// Disconnected event.
Override_KeyRequest(Self, Lock)
--// Hub Reuqests key using lock
Override_PassRequest(Self)
--// Hub Requests users password.
Override_Hello(Self, Nick)
--// Hub Sends Hello Nick
Override_Quit(Self, Nick)
--// Hub Sends Quit Nick
Override_NickList(Self, NickList)
--// Hub Sends Nicklist
Override_OpList(Self, OpList)
--// Hub Sends OpList
ChatArrival(Self, Nick, Chat)
--// Hub Sends chat to client.
TimerEvent()
--// Called every 1 second.
notes:
Overrides will disgard the hardcoded routine, and run the lua function, if no lua function to run, bot decides what to send.
Self is actually a bot object, so Self.Name for example....
Calls
-----
print ( text )
--// Print text onto the console
GetNewBot()
--// Get a new bot
GetUsedBot('name')
--// Get a bot currently being used by another script;
Bot
---
:Connect();
--// Connect to server.
isconnect();
--// Disconnect from server.
endChat('text');
--// Send chat to the hub from bot.
endData('$CMD');
--// Send commands to the hub
endRaw('$CMD|');
--// Send Raw data to hub.
endPM('user', 'text')
Bot
---
.Name
--// Bots Name
.Description
--// Bots Description
.Tag
--// Bots Tag <++ etc
.Password
--// Bots Password.
.Connection
--// Connection DSL
.Share
--// 12164630

any questioins jus reply