PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Sammy P on 04 January, 2005, 21:27:54

Title: Automatic Banner Bot
Post by: Sammy P on 04 January, 2005, 21:27:54
right, as ull probably notice i CANT write lua very well.

What im after is summin that will paste the following message into main chat every 20minutes, without someone typin !banner or whatever the command was
   
          -------------------------(?`?._.?[URBAN FM]?._.???)-------------------------
           
        ????`????LoCk On To ThE OfFiCiAL URBAN FM RaDiO????`????
           
         .???`?-> http://www.urbantingz.com/listen.rm    <-???`?.ReAl AmP
         .???`?-> http://www.urbantingz.com/listen.m3u <-???`?.WiN AmP
         .???`?-> http://www.urbantingz.com/listen.asx  <-???`?.WiN MeDiA
   
   www.uRBANTINGz.com/forum <-- Make sure ur regged. PASS THIS ON
           
       ????`????LoCk On To ThE OfFiCiAL URBAN FM RaDiO????`????


Cheers

Sammy P
Title:
Post by: bastya_elvtars on 04 January, 2005, 21:54:59
bot="Sylvia"

timer=20 -- in mins

messarray={

[[
 ?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)?

.???`?-> [URL]http://www.urbantingz.com/listen.rm[/URL] <-???`?.ReAl AmP
.???`?-> [URL]http://www.urbantingz.com/listen.m3u[/URL] <-???`?.WiN AmP
.???`?-> [URL]http://www.urbantingz.com/listen.asx[/URL] <-???`?.WiN MeDiA

[URL]www.uRBANTINGz.com/forum[/URL] <-- Make sure ur regged. PASS THIS ON

?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)? ]],

}

function Main()
SetTimer (timer*60*1000)
StartTimer()
end


function OnTimer()
SendToAll(bot,messarray[random(1,getn(messarray))])
end
Title:
Post by: Sammy P on 04 January, 2005, 22:59:05
thanks bruv, ur nang..
Title:
Post by: imby on 05 January, 2005, 02:18:55
What?
Title: please convert to lua.5
Post by: Op on 09 October, 2005, 11:27:57
please convert to lua.5

bot="Sylvia"

timer=20 -- in mins

messarray={

[[
 ?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)?

.???`?-> http://www.urbantingz.com/listen.rm <-???`?.ReAl AmP
.???`?-> http://www.urbantingz.com/listen.m3u <-???`?.WiN AmP
.???`?-> http://www.urbantingz.com/listen.asx <-???`?.WiN MeDiA

//www.uRBANTINGz.com/forum <-- Make sure ur regged. PASS THIS ON

?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)? ]],

}

function Main()
   SetTimer (timer*60*1000)
   StartTimer()
end


function OnTimer()
   SendToAll(bot,messarray[random(1,getn(messarray))])
end
Title:
Post by: 6Marilyn6Manson6 on 09 October, 2005, 13:11:39
For other post use [ CODE] and [ /CODE] without space.... first and after script please.

Try this:

-- Converted in LUA 5 by 6Marilyn6Manson6 at 10/09/2005

bot="Sylvia"

timer = 20 -- In Mins

messarray={
[[
?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)?
.???`?-> [URL]http://www.urbantingz.com/listen.rm[/URL] <-???`?.ReAl AmP
.???`?-> [URL]http://www.urbantingz.com/listen.m3u[/URL] <-???`?.WiN AmP
.???`?-> [URL]http://www.urbantingz.com/listen.asx[/URL] <-???`?.WiN MeDiA
[URL]www.uRBANTINGz.com/forum[/URL] <-- Make sure ur regged. PASS THIS ON
?^(o)??~`??^(o)?LoCk On To ThE OfFiCiAL URBAN FM RaDiO?^(o)??~`??^(o)? ]],
}

function Main()
SetTimer (timer*60*1000)
StartTimer()
end

function OnTimer()
SendToAll(bot,messarray[math.random(1,table.getn(messarray))])
end

c ya
Title:
Post by: bastya_elvtars on 09 October, 2005, 14:12:22
Please don't remove the credits.
Title:
Post by: Markitos on 10 October, 2005, 13:01:09
Hehehe!...