mIRC Home    About    Download    Register    News    Help

Print Thread
Help With A Once Working Script..... #256338 12/01/16 03:39 AM
Joined: Apr 2012
Posts: 11
W
wrt12345 Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Apr 2012
Posts: 11
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.

Last edited by wrt12345; 12/01/16 03:40 AM.
Re: Help With A Once Working Script..... [Re: wrt12345] #256343 12/01/16 07:33 AM
Joined: Apr 2014
Posts: 24
T
Thedelirious1 Offline
Ameglian cow
Offline
Ameglian cow
T
Joined: Apr 2014
Posts: 24
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

Re: Help With A Once Working Script..... [Re: Thedelirious1] #256360 12/01/16 08:52 PM
Joined: Apr 2012
Posts: 11
W
wrt12345 Offline OP
Pikka bird
OP Offline
Pikka bird
W
Joined: Apr 2012
Posts: 11
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.

Re: Help With A Once Working Script..... [Re: wrt12345] #256361 12/01/16 09:05 PM
Joined: Feb 2015
Posts: 19
Y
Y4kuzi Offline
Pikka bird
Offline
Pikka bird
Y
Joined: Feb 2015
Posts: 19
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.