Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shhdn

Pages: [1] 2
1
Scripting / VBScripting help
« on: February 27, 2009, 07:53:42 PM »
ahh ok i under stand.

2
Scripting / VBScripting help
« on: February 27, 2009, 07:21:29 PM »
yay my second script  now i want to get an atuomated one that says "hello,<person who said hi>"
and i want to make it like a trigger i guess with an access of 20 or so. i need help with the geting the name tho... ill c what i can do till i get help for that.

3
Scripting / VBScripting help
« on: February 27, 2009, 12:15:16 PM »
whoops i for got something:

Sub talk_Event_Load()
   AddChat   vbYellow "talk test loaded"
End Sub

4
Scripting / VBScripting help
« on: February 27, 2009, 08:58:16 AM »
is this good?
Code: [Select]
'talk
'0.2

Sub talk_Event_Load()
    vbYellow "talk test loaded"
End Sub

sub talk_Event_UserTalk(Username, Flags, Message, Ping)

     If Left(LCase(Text), Len(BotVars.Trigger) + 6) = BotVars.Trigger & "speak " Then
        sayTheRest = Right(Message, Len(Message) - (Len(BotVars.Trigger) + 6)
    AddQ sayTheRest
  End If
End Sub

the following i dont understand:
(Username, Flags, Message, Ping)
Len
and the +6 is the words plus 1 for the space?
AddQ

5
Scripting / VBScripting help
« on: February 26, 2009, 05:37:43 PM »
i found a few things. and sorry for spamming this topic. i was looking the HL plugins addon to abort the game and i found something here is my slightly revised script still need help tho. p.s. if i could just edit my above post i would have but i cant so once again sorry.

Code: [Select]
'talk
'0.1

Sub talk_Event_PressedEnter(Text)
  If Left(LCase(Text), 11) = "/hai" Then

               idk what to do here >.>

end sub

Sub talk_Event_PressedEnter(Text)
  If Left(LCase(Text), 11) = "/hai"
Then was stolen from the plugin at:http://rev77.net/scripts/?query=view&script=hlAbortPlaying.plug
so idk if it will work but it looks good^_^

6
Scripting / VBScripting help
« on: February 26, 2009, 02:49:53 PM »
ok for my next little try i am stuck again. i want to make it say something to the channel not just the person useing the sb. i think i have it so far but im stuck i dont know how to make it run only when a trigger is said either :/



Code: [Select]
'talk
     '0.1
    
     sub {dont know what goes here, or is it talk_Event_Load()}
         DSP Origin, "HAI PPL"
     end sub

at least i think "DSP Origin" is how you make it talk in a channel as of :
http://rev77.net/scripts/?query=view&script=pageme.plug

7
Scripting / Simple VBS Script helps.
« on: February 26, 2009, 02:35:26 PM »
>.> sorry that my information was unhelpful to you.

8
Give Suggestions :) / more suggestions
« on: February 26, 2009, 02:32:28 PM »
i am

9
Scripting / Simple VBS Script helps.
« on: February 26, 2009, 01:27:56 PM »
hi, i am also learning VBScript, <username here>!
a useful place to learn about the basics is:
http://w3schools.com/vbscript/vbscript_variables.asp
also go to the place below to see some of the finished scripts:
http://rev77.net/scripts/

10
New User Introductions / hii
« on: February 26, 2009, 01:08:13 PM »
welcome to this place. it is nicer than many and stranger than all that are nicer than us.

11
Scripting / VBScripting help
« on: February 26, 2009, 12:42:46 PM »
2 more things:

1. i write this on notepad right? if not then on what?
2. i save them as yadayada.plug?

12
Scripting / VBScripting help
« on: February 26, 2009, 11:22:09 AM »
'test
'0.1


sub test_Event_Load()
    AddChat vbBlue "o hai"
end sub

ok i understand. the Test in  "Test_event_load()" is the name as mentioned above that in " 'test "
and i under stand to tell it when to show up the event(trying to learn quickly and underline things without knowing what im doing if it works im happy) is the load up. but y is there a " '0.1 " that i dont get. and yes i do need a better place for this. im happy i under stand a bit now tho

13
Scripting / VBScripting help
« on: February 26, 2009, 09:09:20 AM »
ok here it is. as far as i know this will work then again its only 1 line long >.> i cant test it as i am in school for now but if there is no responce ill tryit when i get home.

sub text_test()
    AddChat vbBlue "o hai"
end sub

if this does work. then i guess i need to try something harder

14
Scripting / VBScripting help
« on: February 26, 2009, 07:37:48 AM »
does a script have to have a name? in the w3school the say the following:

[div class='codetop']CODE[/div][div class='codemain' style='height:200px;white-space:pre;overflow:auto']
Sub mysub()
 some statements
End Sub
[/div]

does the "mysub" have to be there?

15
Scripting / VBScripting help
« on: February 26, 2009, 04:36:36 AM »
at : http://rev77.net/scripts/?query=view&script=run.plug
 
"AddChat vbGreen"

does that meen i can use other colors?
trying to make something that shows up on startup like the plugin manager. just more simple like "hi"
T.T i think i know what im doing. and lastly what program do i wright this on? is notepad ok?
ill probly be working on this at school so anything i make at school i have to post here so i can edit it when i get home. at least untill i find my flash drive. if this is not ok plz tell me.

Pages: [1] 2