Author Topic: Help, me out.  (Read 5166 times)

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #15 on: November 19, 2008, 03:33:22 PM »
Code: [Select]
'GN
'0.1
'Greet for Noobs Made: (de80)
'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)
Sub greet_for_Noobs_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        
    Dsp 3, "Welcome" & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time" & Time, Username, vbRed
End sub

Na more helpful, didnt just use his used it as guied.

Code: [Select]
'GN
'0.1
'Greet for Noobs Made: (de80)
'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)
Sub GN_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        
    Dsp 3, "Welcome" & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time" & Time, Username, vbRed
End sub

K
« Last Edit: November 19, 2008, 03:20:05 PM by de80 »
[div align=\'center\']New To VBS World trying to learn.
 [/div]

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #16 on: November 19, 2008, 04:30:05 PM »
Maybe this one

Code: [Select]
'GN
'0.1
'&Greet for Noobs Made: (de80) tell when user joins channel
'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)
Sub greet_for_Noobs_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        
    Dsp 3, "Welcome" & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time" & Time, Username, VBRed
End sub
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
Help, me out.
« Reply #17 on: November 19, 2008, 05:14:10 PM »
Quote from: de80
Maybe this one

Code: [Select]
'GN
'0.1
'&Greet for Noobs Made: (de80) tell when user joins channel
'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)
Sub greet_for_Noobs_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        
    Dsp 3, "Welcome" & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time" & Time, Username, VBRed
End sub

You only need to put the prefix on the event, not the whole thing

Code: [Select]
'GN
'0.1
'&Greet for Noobs:de80

'// That is correct format

'// Your code is a little cramped, don't be afraid to hit enter

Sub GN_Event_Userjoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)
  '// I would advise 2 spaces for tabs instead of a real tab

  '// Once again that would display:
  '// WelcomeBob - This is the best plaace out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time12:21 PM

  '// You don't seem to get how the &'s work

  '// Addchat a basic string
  AddChat vbGreen, "This is a string"
  
  '// Give a value to a variable
  cool = "Yay!"

  '// Display the first string with the variable added
  AddChat vbYellow, "This is a string " & cool
  '// Notice how I added a space after the word string
  
  Dsp 3, "Welcome " & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow. Here is the time: " & Time, Username, vbRed
  '// vb does not need to be uppercase, I think it actually makes it ugly.
End Sub
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

Ace

  • Administrators
  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Help, me out.
« Reply #18 on: November 19, 2008, 05:16:07 PM »
Quote from: de80
'GN
 '0.1
 '&Greet for Noobs Made: (de80) tell when user joins channel
 'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)
 Sub greet_for_Noobs_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        
     Dsp 3, "Welcome" & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time" & Time, Username, VBRed
 End sub

What I have bolded must be the prefix.
Subs are

Code: [Select]
Sub prefixofthisplugin_event_usertalk(Username, Flags, Message, Ping)
« Last Edit: November 19, 2008, 05:49:36 PM by Hero »
[img]http://zeus.cooltext.com/images/9ff/9fff41541771f1d8f564cabff80fd40cfb587413.jpg\" border=\"0\" class=\"linked-image\" /][img]http://209.85.12.232/13848/49/pip/admin.png\" border=\"0\" class=\"linked-image\" /]

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #19 on: November 19, 2008, 05:26:16 PM »
This is what i got
Code: [Select]
'GN
'0.1
'&Greet for Noobs Made: (de80) tell when user joins channel
'This is in Dsp for 1 (AddQ), 2 (Emote /me), 3 (Whisper), 4 (AddChat)

Sub GN_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)        

    Dsp 3, " Welcome " & Username & " - This is best place out there P.S. Thanks Hero, 7th, Shadow, And btw Here the time " & Time, Username, vbgreen

End sub
« Last Edit: November 19, 2008, 05:27:03 PM by de80 »
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
Help, me out.
« Reply #20 on: November 19, 2008, 05:51:45 PM »
That's perfect. Good work.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #21 on: November 19, 2008, 06:07:09 PM »
Thank guys.

Anything else that i could start out and try that is easy?
« Last Edit: November 19, 2008, 06:08:59 PM by de80 »
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Ace

  • Administrators
  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Help, me out.
« Reply #22 on: November 19, 2008, 06:41:43 PM »
I see no problems, good job!
[img]http://zeus.cooltext.com/images/9ff/9fff41541771f1d8f564cabff80fd40cfb587413.jpg\" border=\"0\" class=\"linked-image\" /][img]http://209.85.12.232/13848/49/pip/admin.png\" border=\"0\" class=\"linked-image\" /]

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
Help, me out.
« Reply #23 on: November 19, 2008, 07:20:59 PM »
Whenever a user has the word "hi" in their message it will say "hai u"
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #24 on: November 19, 2008, 07:37:17 PM »
Ok, gona work on this tommrow.
[div align=\'center\']New To VBS World trying to learn.
 [/div]

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #25 on: November 20, 2008, 12:42:50 PM »
Here, i know this is not right but all i could think of:

Code: [Select]
'Hi
'.01
'& By de80

Sub  Hi_UserTalk(Username, Flags, Message, Ping)
    
    AddQ & Username & " Hi "
    
End Sub
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
Help, me out.
« Reply #26 on: November 20, 2008, 01:26:01 PM »
Code: [Select]
Sub Hi_Event_Usertalk(Username, Flags, Message, Ping)
I would advise looking up the InStr function.
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #27 on: November 20, 2008, 01:31:28 PM »
Quote from: Hero
Code: [Select]
Sub Hi_Event_Usertalk(Username, Flags, Message, Ping)
I would advise looking up the InStr function.

What do you mean by this?
[div align=\'center\']New To VBS World trying to learn.
 [/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
Help, me out.
« Reply #28 on: November 20, 2008, 02:12:06 PM »
It's quite easy. InSr returns an integer representing the first location of the found phrse. I don't use it this way though. I use it to test if a user has said a certain message. It goes like so:

  If InStr(<message to test>, <phrase to look for>) Then
  End If

So, if you want to see if the word "hello"  is in a user's message, you would construct the UserTalk that you used earlier.

Code: [Select]
'hi
'0.1
'&Hi:De80

Sub hi_Event_UserTalk(Username, Flags, Message, Ping)
  '// test for "hi" here
End Sub
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
Help, me out.
« Reply #29 on: November 20, 2008, 02:40:05 PM »
Still not getting what your say can you give an ex.
[div align=\'center\']New To VBS World trying to learn.
 [/div]