elseif ($regex($1,/pc|pest(con)?(trol)?/Si)) var %style = pc the other script then: in alais process Code: elseif (%style = pc) { while (%x <= 22) { var %a = $iif($gettok($hget(%table,attack),2,32),$v1,-), $& %s = $iif($gettok($hget(%table,strength),2,32),$v1,-), $& %d = $iif($gettok($hget(%table,defence),2,32),$v1,-), $& %h = $iif($gettok($hget(%table,hitpoints),2,32),$v1,-), $& %r = $iif($gettok($hget(%table,ranged),2,32),$v1,-), $& %m = $iif($gettok($hget(%table,magic),2,32),$v1,-), $& %p = $iif($gettok($hget(%table,prayer),2,32),$v1,-) var %pc1 = $floor($calc( %a * %a / 6 )) $& %pc2 = $floor($calc( %s * %s / 6 )) $& %pc3 = $floor($calc( %d * %d / 6 )) $& %pc4 = $floor($calc( %h * %h / 6 )) $& %pc5 = $floor($calc( %r * %r / 6 )) $& %pc6 = $floor($calc( %m * %m / 6 )) $& %pc7 = $floor($calc( %p * %p / 12 )) tokenize 32 $hget(%table,attack) var %exp1 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc1 )) tokenize 32 $hget(%table,strength) var %exp2 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc2 )) tokenize 32 $hget(%table,defence) var %exp3 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc3 )) tokenize 32 $hget(%table,hitpoints) var %exp4 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc4 )) tokenize 32 $hget(%table,ranged) var %exp5 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc5 )) tokenize 32 $hget(%table,magic) var %exp6 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc6 )) tokenize 32 $hget(%table,prayer) var %exp7 = $ceil($calc($remove($bytes($4,b),$chr(44)) / %pc7 )) [size=18][b]PUT OUTPUT MSG HERE!@!@!@!@![/[/b]size] cleanup %id Halt Remember to finish the brackets right and put a output msg (using the local variables as the info) NOTE - GIVES ALL CMB SKILLS! Local Variables: %pc1 = Exp for ATTACK %pc2 = Exp for STRENGTH %pc3 = Exp for DEFENCE %pc4 = Exp for HITPOINTS %pc5 = Exp for RANGED %pc6 = Exp for MAGIC %pc7 = Exp for PRAYER %exp1 = Points for level ATTACK %exp2 = Points for level STRENGTH %exp3 = Points for level DEFENCE %exp4 = Points for level HITPOINTS %exp5 = Points for level RANGED %exp6 = Points for level MAGIC %exp7 = Points for level PRAYER DIT IN DEZE SCRIPT var %x = $bfind(&stats,$calc(%x + 1),