Hi perhaps you can help me. ?(
1.) The first script i need should show the actually time and Date in Main chat. The time should be shown each Hour and when a user tipes !thetime in main chat.
2.) The second script i need would`t be so short.
It should work like Frehstuff but i need outher sections: SVCD Vcd Xvid and DVD. And when a user connects it should show the 10 newest items on each sektion.
Perhaps you can help me.
:D Excause me for my bad english :D
1.
Bot = "Time"
Pre = "+"
function Main()
SetTimer(600000)
StartTimer()
end
function DataArrival(curUser,data)
if strsub(data,1,1)=="<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if (cmd==Pre.."time") then
curUser:SendData(Bot, The local time is now : "..date()) return 1
end
end
end
function OnTimer()
SendToAll(Bot, "The local time is now : "..date())
end
it doesn`t work.
Syntax Error: `)' expected;
last token read: `local' at line 16 in string
Bot = "Time"
Pre = "+"
function Main()
SetTimer(600000)
StartTimer()
end
function DataArrival(curUser,data)
if strsub(data,1,1)=="<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if (cmd==Pre.."time") then
curUser:SendData(Bot, "The local time is now : "..date()) return 1
end
end
end
function OnTimer()
SendToAll(Bot, "The local time is now : "..date())
end
he forgot a ", now it works.
plop