Top

$tok


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Sep 15, 2007
Last Updated  Sep 15, 2007

Introduction

A simple identifier that uses everyday tokens through properties.

$tok(string,operation,N,pos,C).calc performs a $calc operation.

$tok(string,N,pos,C).add adds a parameter to the string.

$tok(string,N,N2,C).repall replaces all parameters in the string matching your criteria.

$tok(sting,N,N1,pos,C).rep replaces the the previous parameter with a new one.

$tok(string,pos,C).rem deletes a target in the string

Grab the Code

alias tok {
  if (isid) { 
    if ($prop iswm calc) { return $puttok($$1,$calc($gettok($$1,$$4,$$5) $$2 $$3),$$4,$$5) }
    if ($prop iswm add) { return $instok($$1,$$2,$findtok($$1,$$3,$$4),$$4) }
    if ($prop iswm rem) { return $deltok($$1,$fintok($$1,$$2,$$4),$$3) }
    if ($prop iswm rep) { return $replace($$1,$gettok($$1,$$4,$$5),$$3) }
    if ($prop iswm repall) { return $replace($$1,$findtok($$1,$$2,$$4),$$3) }
  }
}

Comments

  (0)  RSS

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom