Ascii Bot in lua5
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Ascii Bot in lua5

Started by Skynet, 28 February, 2005, 20:56:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skynet

hi all is there a ascii lua5 bot avilable been converting a few lua scripts to lua5  but having trouble with some  mostly the ascii ones
thanks :> Skynet
The Land of Karaoke    

Copyright SkynetSystems 2000-2005 @Phoenix Network

Psycho_Chihuahua

#1
i got the same Problem, used Plop Convertion Script and also tried NL's WxGui but it doesn't seem to work



Example of converted script:

BotName = "HubBot"       --BotName f?r Werbe script

function DataArrival(user, data)
	if( string.sub(data, 1, 1) == "<" ) then
		data=string.sub(data,1,string.len(data)-1)
		s,e,cmd = string.find( data, "%b<>%s+(%S+)" )

if (cmd=="#gassi") then
SendToAll(BotName, " ")
SendToAll(BotName, " ")
SendToAll(BotName, " ")
SendToAll(BotName, "                                                                                        ")
SendToAll(BotName, "                                        (\\ __ /)                                      ")
SendToAll(BotName, "                                         \\0/)0/                                        ")
SendToAll(BotName, "                             (\\        =(_T_)=                                      ")
SendToAll(BotName, "                              \\\\_ _/(\ /_/    \\\                                         ")
SendToAll(BotName, "                               0 0 _\)_( /      \\                                       ")
SendToAll(BotName, "                            =(_T_)=   )-\\      \\                                    ")
SendToAll(BotName, "                                /'/   (  /    \\   (  )*                                  ")
SendToAll(BotName, "                               (_(_/-(___(_(__/                                     ")
SendToAll(BotName, " ")
SendToAll(BotName, " ")
SendToAll(BotName, "        "..user.sName..", nennt man das Gassi gehen ???????  ;-}    ")
SendToAll(BotName, " ")
SendToAll(BotName, " ")
SendToAll(BotName, " ")       
SendToAll(BotName, " ")
end

any Idea's whats wrong?
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

PPK

QuoteOriginally posted by Psycho_Chihuahua
any Idea's whats wrong?
Yes, replace this
Quotefunction DataArrival(user, data)
   if( string.sub(data, 1, 1) == "<" ) then
with
Quotefunction ChatArrival(user, data)
:]
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

Psycho_Chihuahua

Thnk M8

that, and 1 "end" to many, did it ^^
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

SMF spam blocked by CleanTalk