mIRC Homepage
Posted By: wrt12345 Help With A Once Working Script..... - 12/01/16 03:39 AM
Hi All,

Time to get this sorted not scratching my head any longer....

My script used to work below, but i think twitch have done something or not allowing join/part commands anymore which sorta screws my script up

so i need a work around for this script below

on !*:join:#:{
$+(.timerCoins.,#,.,$nick) 0 300 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick)
msg $chan Welcome $nick To Our Stream!!!!!!!! Your Are Now Earning Reputation Stripes For Being Part Of This Channel - The More You Here - The More You Grow - Please Type !rank Into Chat To Get Your Stats.

on !*:part:#:{
$+(.timerCoins.,#,.,$nick) off
alias -l add.pts {
writeini -n Coins.ini $1 Coins $calc($readini(Coins.ini,$1,Coins) + 10 )
}

on *:text:!rank:#:{
if ($readini(Coins.ini,$+(#,.,$nick),Coins) <= 1000) { msg # $nick Is An Officer Cadet With $readini(Coins.ini,$+(#,.,$nick),Coins) Stripes. Gain $calc(1000 - $readini(Coins.ini,$+(#,.,$nick),Coins)) More Stripes To Rank Up To Second Lieutenant } } and so on and so on


so without join/part commands now... how can i alter this to work

thanks for any help in advance much appreciated.
Is this for Twitch.tv? If so follow this guide, specifically the "JOIN/PART - mIRC" section. I would add both of these to the perform commands:
Code:
raw CAP REQ :twitch.tv/membership
raw CAP REQ :twitch.tv/commands
Posted By: wrt12345 Re: Help With A Once Working Script..... - 12/01/16 08:52 PM
Yeah that got part of my script working (thankyou), can anyone tell me why my timer is not working and not writing to the Coins.ini anymore or can anyone see an issue in the code....

i see here http://en.wikichip.org/wiki/mirc/ini_files

is this maybe causing the issue

(The -n switch no longer exists on mIRC 7.x and newer. On older mIRCs: The -n switch is used when the file exceeds 65,536 bytes (64 KB). It's a good idea to place it there if you think the file will get pretty big in the future. )

if this is the issue what is the alteration

thanks in advance.
Posted By: Y4kuzi Re: Help With A Once Working Script..... - 12/01/16 09:05 PM
Your timer should work fine. Also make sure you have closing brackets.

As for the add.pts alias, I don't know what's wrong with that since you didn't post it here.
© mIRC Discussion Forums