TheShadow Posted July 14, 2006 Share Posted July 14, 2006 Hi all, Thanks for all you guys put here on the site. I am new to scripting but not to programming so I guess I will be able to find out some things by myself. The next couple of days I will spend reading to avoid asking the same questions that others have done already After that I will be making my own ideas and I expect them to work all in one time (yeah sure ). Well if they do not I know where to ask help. If you dont want me to ask any questions on why it is not working, send me all your scripts now. Like that is really going to happen Link to comment
TheShadow Posted July 15, 2006 Author Share Posted July 15, 2006 I am stuck at the first thing. Server is up and running, Mta:MA is up and running, GRS is working fine. Now here it comes. am using the time example I found here on *:SIGNAL:mta.command:{ elseif ($3 == !setclock) mta.settime $1 $4 } Saved it in a file clock.mrc When I load this file and type the command.....nothing happens. I tried loading it in MTA:Ma, with and without the GRS running, and tried to load it as personal script in GRS. Unloaded it from other places before loading. Why is the command not working ? Link to comment
lil Toady Posted July 15, 2006 Share Posted July 15, 2006 First command under trigger must have 'if', next 'elseif'. If the first command has 'elseif', whole part won't work. on *:SIGNAL:mta.command:{ if ($3 == !setclock) mta.settime $1 $4 } Link to comment
TheShadow Posted July 15, 2006 Author Share Posted July 15, 2006 Thanks. By putting the command in to the Jax & Oli RPG script it worked, but it is easy to develop scripts in standalone files without the chance making the rest not work The easy stuff is going well, once I get to the complicated things I will be back. PS: to Oli and others : I hope you don't mind me using your basics, I do leave the credit to your work in place. Link to comment
Harry Posted July 16, 2006 Share Posted July 16, 2006 PS: to Oli and others : I hope you don't mind me using your basics, I do leave the credit to your work in place. No one will. MTA is for fun. As long as you're enlarging the amount of fun and credit those who have helped you.. Its great! Link to comment
TheShadow Posted July 29, 2006 Author Share Posted July 29, 2006 I am at the point where a lot is running, and it goes ok. But with many people online the scripts are lagging. Can scripts lag less by making the code faster ? One thing is that I wrote a part not using alias but withtin the command structure. Will it help if I movethis to aliases ? If anyone wants to look at what I made and can improve performance it would help me Link to comment
Harry Posted July 29, 2006 Share Posted July 29, 2006 Certainly you can improve your scripts by decreasing the amount of lines read for an operation. Changing if's in elseifs, using less varaibles and so on will improve performance. mIRC scripts is a very slow scripting language and its quite hard to tell what to improve. Link to comment
lil Toady Posted July 29, 2006 Share Posted July 29, 2006 If anyone wants to look at what I made sure, post us your piece of code, i'll try to help with it Link to comment
TheShadow Posted August 15, 2006 Author Share Posted August 15, 2006 I will post some code after some time, as I am having waayyy too much fun figuring it out by myself For anyone who is interested in what I have worked out so far: follow my www link. Link to comment
lil Toady Posted August 15, 2006 Share Posted August 15, 2006 For anyone who is interested in what I have worked out so far: follow my www link. Page not found... Link to comment
TheShadow Posted August 15, 2006 Author Share Posted August 15, 2006 (edited) hmm...for some reason the www link has forum.mtavc.com in front of it. Not me putting it there...really Edit: Thanks Brophy... I changed it and it works now. Edited August 16, 2006 by Guest Link to comment
Brophy Posted August 15, 2006 Share Posted August 15, 2006 hmm...for some reason the www link has forum.mtavc.com in front of it. Not me putting it there...really http://www.argonathrpg.com remember to put http:// infront of the www. Link to comment
Recommended Posts