Clayton

Clayton

Joined
Dec 29, 2010

Activity Stream

Clayton commented on a Page, Script Loader  -  Jan 10, 2011

Very nice snippet.

10/10 :)

 Respond  
Clayton commented on a Page, Simple game Snippet  -  Jan 01, 2011

@ Jethro_ I will experiment with this snippet and try to consolidate all the text events into one. I do mean price, not prize therefore if($!2 !isnum) is necessary for this script.

Thanks.

 Respond  
Clayton commented on a Page, Simple game Snippet  -  Dec 31, 2010

You are correct that would have been easier, should've thought of that.

Time to edit I think :)

 Respond  
Clayton created a Page  -  Dec 31, 2010
432 

Simple script I whipped up for a game I play while waiting for the new year :D

Clayton commented on a Page, Simple Time Script  -  Dec 29, 2010

Hmm, Jethro_, do you mean to say that these two codes would give the same result?

Code 1:

on *:text:*:#: {
  if !%t { inc -u5 %t
    if ($strip($1) == !time) {
      msg $chan The time is $asctime(HH:nn:ss)
    }
  }
}

Code 2:

on *:text:$(iif($strip($1)) == !time,$1)):#:{
  if %t { inc -u5 %t
    msg $chan The time is $asctime(HH:nn:ss)
  }
}

Because when I use code 1, I am unable to use bolds, underlines, reverses and colors to trigger the command, however in code 2, where the $() and iif() functions are used, I am able to use everything that ($strip($1) == !time) should disable to trigger the command.

Should that be happening? :?

Thanks.

-Clayton

 Respond  
Clayton commented on a Page, Simple Time Script  -  Dec 29, 2010

Ahh thanks Jethro_ wasn't sure how to code a trigger control..

I changed the code to $1 in my remotes but forgot about this snippet.

In this instance, wouldn't the $time() and $asctime() be a matter of preference? Seeing as they both give the same result that is.

Thanks.

-Clayton

 Respond  
Clayton commented on a Page, Simple Time Script  -  Dec 29, 2010

Thanks Jethro_ - I can see your point. $gmt is not needed.

@MashhitDK - I think that this script would work with and without the $strip here, possibly a matter of preference.

Thanks for the advice though.

-Clayton

 Respond  
Clayton created a Page  -  Dec 29, 2010
1 666 

Simple time script, one of the first scripts I've made, newbie scripter.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.