mIRC Homepage

Prime Sub

Posted By: TroyL

Prime Sub - 12/12/18 03:55 AM

So this is what i have for my sub script:


Code:
 
raw USERNOTICE:*:{
  if (($msgtags(msg-id).key == sub) && ($msgtags(room-id).key == 30084163)) {
    var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
    var %sub-plan $replace($msgtags(msg-param-sub-plan).key, 1000, $chr(36) $+ 4.99, 2000, $chr(36) $+ 9.99, 3000, $chr(36) $+ 24.99, Prime, Prime)
    msg $1 /me rooSellout !! NEW SUB!! rooSellout Thank You %nick For Subscribing With A %sub-plan Sub! Welcome To The Legends! agonySUB agonyHYPERS
  }
if (($msgtags(msg-id).key == resub) && ($msgtags(room-id).key == 30084163)) {
    var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
    VAR %sub-plan $replace($msgtags(msg-param-sub-plan).key, 1000, $chr(36) $+ 4.99, 2000, $chr(36) $+ 9.99, 3000, $chr(36) $+ 24.99, Prime, Prime) 
    msg $1 /me rooSellout !! RESUB HYPE!! rooSellout %nick Has Just Resubscribed For $msgtags(msg-param-months).key Months In A Row With A %sub-plan Sub! Welcome Back To The Legends! agonySUB agonyHYPERS 
  }

My question is will this announce Prime Subs, or will i have to change something?
© 2019 mIRC Discussion Forums