Welp to finish this script

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

savage-xp
Posts: 3
Joined: 2003-07-14 19:05

Welp to finish this script

Post by savage-xp » 2003-07-14 19:12

Hummm ...so great elders...can you help me to find a script to show a list what is new in a hub like:

21/4/03- Add Breath of Fire 4 (pc-Cd-Rom)
23/6/03- The Hulk ( Divx)
3/4/03- Mettalica (Audio Cd)


Simply the user just type +news or +Hubnews


Is possible to do?
Do you like my idea?I`d like to put in my hub

Cheers

Savage-XP



Well i started to to the script but he only let do add just a string.



The original working script


Sub DataArival(curUser, curData)

If Left(curData, 1) = "<" Then
lPos = InStr(1, CurData, "> ")
sTheText = Mid(CurData, lPos + 2)
If Left(sTheText, 8) = "+news" Then


tmpMsg = vbCrLf + "Aqui está a lista de tudo o que há de novo no hub! :" + vbCrLf + _
"Breath of Fire IV (PC-CD-ROM)"





curUser.PrivateMessage "List of news", cstr(tmpMsg )
frmHub.DoEventsForMe
Exit Sub
End If
End If
End Sub

---------------------------

But i want to do this ( to put more stuff)



So far so good , but how i can put more entries?

If i do:

Sub DataArival(curUser, curData)

If Left(curData, 1) = "<" Then
lPos = InStr(1, CurData, "> ")
sTheText = Mid(CurData, lPos + 2)
If Left(sTheText, 8) = "+news" Then


tmpMsg = vbCrLf + "Aqui está a lista de tudo o que há de novo no hub! :" + vbCrLf + _
"Breath of Fire IV (PC-CD-ROM)"
"Dragon Ball Hentai and the Space gays"




curUser.PrivateMessage "List of news", cstr(tmpMsg )
frmHub.DoEventsForMe
Exit Sub
End If
End If
End Sub


------------------------------

If i do this cause me a error 1024


Well can you guys help me?

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 17:16

Post by Todi » 2003-08-02 10:12

Why reinvent the wheel? Gadget has made a trigger script superior to most, called "triggerbot2", the adress to his scripts are somwehere here on the forum =)

HaArD
Posts: 147
Joined: 2003-01-04 07:20
Location: Canada http://hub-link.sf.net

Post by HaArD » 2003-08-02 12:58


Who is online

Users browsing this forum: Google [Bot] and 0 guests