PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: abyss on 22 November, 2003, 13:06:16

Title: admessage bot
Post by: abyss on 22 November, 2003, 13:06:16
hoi weet iemand hoe ik een script maak die admessage automatisch laat zien om het uur bv
met het commando !sendhubad ?

thnks (NL)abyss  

abyss.no-ip.biz    HOLANDSE&ZONE II
Title:
Post by: AlwaysConnected on 22 November, 2003, 13:53:01
QuoteOriginally posted by abyss
hoi weet iemand hoe ik een script maak die admessage automatisch laat zien om het uur bv
met het commando !sendhubad ?

thnks (NL)abyss  

abyss.no-ip.biz    HOLANDSE&ZONE II

je kan je vraag beter in het engels hier neer zetten
maar je kan ook ff bij Robocop 4.0a kijken die kan je zo maken dat er automatisch om het uur een bericht komt

ook kan je het met met
--TimeMessenger by latinmusic == poweroperator 07/04/2003
--Based on TimeBot by aMutex
--Based on a few lines of DirtyBot by DirtyFinger
--This script displays a message on main chat every hour
--The script also display Date and Time in main chat
--The script need a file call it Message.txt place in the following folder
--PtokaX\scripts\Files\Messages.txt
--> Enjoy

BotName = "T-G-T"
TimeSpanInMinutes = 15 --Set the time for display the file here. 60 = 1 hour

function Main()
SetTimer(TimeSpanInMinutes*60000)
StartTimer()
end

function OnTimer()
local message = ""
while 1 do
local line = read()
if line == nil then break
else
message = message..line.."\r\n"
end
end
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","=======================================")
SendToAll(" ","To read the rules type: !rules")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","please save this hub to your list of fav hubs")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","")
SendToAll(" ","for hub commands type !help")
SendToAll(" ","to play trivia type: tbjoin to enter")
SendToAll(" ","for more functions type: tbhelp")
SendToAll(" ","======================================")
SendToAll("","")
readfrom()
end


waar je tussen deze lijnen
SendToAll(" ","zet je teskt hier neer")

-----
I am just helping a dutch person
next time i will explain it in english  :P
Title:
Post by: oblivion on 22 November, 2003, 15:23:57
come on guyz,,this really needs to be in english ..eh!