|
Blocktrix Forums
https://www.blocktrix.net/cgi-bin/Ya.cgi Blocktrix >> Script Requests and Scripting Help >> Help writing script https://www.blocktrix.net/cgi-bin/Ya.cgi?num=1221412405 Message started by erp-matic on 09/14/08 at 12:13pm |
|
Title: Help writing script Post by erp-matic on 09/14/08 at 12:13pm I'm looking for some help in writing a simple script... How would i write a script that would output 2 lines of text every 20 seconds and i would beable to start and end the running of the script by typing "/script1" or something like that? |
|
Title: Re: Help writing script Post by strikelight on 09/14/08 at 12:47pm Ok, I'll do this step by step, just so it's more instructional than just doing it for you.. I'll have it all together at the end of the post.. First, for your trigger, we would need to create an event binding for outbound partyline chat, which we would do as such: Code:
Now, we will need to make the actual code to check the out-going text for the trigger: Code:
Next, we'll need the actual timer code for the proc we are calling in the above code: Code:
And done... So putting it all together we get a small script like such: Code:
Hope this helps... |
|
Title: Re: Help writing script Post by erp-matic on 09/14/08 at 3:48pm yes i believe that makes sense... i cant figure out how to edit the .tcl files or create my own. How do i do so? |
|
Title: Re: Help writing script Post by strikelight on 09/14/08 at 4:01pm Notepad or wordpad... and just save with a .tcl extension. |
|
Title: Re: Help writing script Post by erp-matic on 09/14/08 at 4:17pm thx... my computer was being dumb b4.. i just reinstalled everything and was able to do it. thx!!! |
| Blocktrix Forums |