id suggest creating generic aliases for menial tasks like the health/rewards that i see repeated for every weapon, that will dramatically shorten this, also with the amount of continuous if statements using the if/elseif/else format will also help make this parse a little bit faster
also, im not sure about the speed difference but instead of making a newline for for every variable declaration you can put them all on one line using /var -g and separating them with a comma i.e.
Code
sunslayercommented on mIRC Snippet: My os
-
Mar 02, 2010
where was anyone ever moaning?
sunslayercommented on mIRC Snippet: My os
-
Mar 02, 2010
Quote
sunslayer was right.
/win
dont forget "an hero" lol
sunslayercommented on mIRC Snippet: My os
-
Feb 28, 2010
@racoon how is what you suggested any different from using a dialog, which btw would probably be faster because your method would require you to search through the list to find the command and then enter the command, whereas Gemster's all you need to do is open a dialog
instead of having 2 diff error dialogs, you can /did -ra error 1 error_here
also just a shortcut but instead of $did(2) == $null, !$did(2) works as well
instead of using $50 $49 $48 etc you can use $1- which will return every token, and since this only goes up to $50 this wont work if the message is 51 words long
instead of making a separate sclick event for each button you can do it all in one(note: i didnt test it cuz im too lazy to load this into remotes but it should work)
i dont like alot of empty unneeded space in dialogs, that looks better imo
also, when your listing the features instead of using [quote] you can use [list] instead i.e.
i thought sunslayer the only person who enjou to critic others without creat her self ...
leave it bro , just lets grow together and learn togehther :)
when did i criticize him?
wtf does "without creat her self" mean?
im a guy
the entire point of this site is to help others create better/faster code
the only thing i did was give him helpful suggestions and tips, which you will find that 90% of this site will do that.
Quote