mIRC Homepage
Posted By: SophisDecay Help with On JOIN snippet - 02/10/14 11:47 PM
Can't seem to get this to work for the life of me, any help would be GREATLY appreciated!!!!

on 1:JOIN:#:{
if (%account [ $+ [ $nick ] ] != $null ) {
msg $chan 8,1☼7 Welcome your paws,15 $nick ,7 I am 10,1Lu11n15a0r15M11y10st,7 guardian of the 8☼7Đʌ8ɯȵɌϋη7ηεɾȿ8☼7Ѡѻ8ŀϝΡѧ7ͼҝ8☼ 7 May you find peace and happiness within our clearing. !Commands
return
}
if (%account [ $+ [ $nick ] ] == on){
msg $chan 8,1☼7Welcome Back $nick {
var %dailydec = %iif($calc( 100 - %health [ $+ [ $nick ] ] ) > %health [ $+ [ $nick ] ], $v1, $v2)
}
if (%health <= 0) {
msg $chan Your tummy is empty, !eat before doing anything or you could DIE!!!
return
}

dec %health [ $+ [ $nick ] ] %dailydec
}
}
Posted By: hixxy Re: Help with On JOIN snippet - 05/10/14 10:23 AM
Which part isn't working, and what is it meant to do?

You have a touching bracket on this line:

if (%account [ $+ [ $nick ] ] == on){

It should be:

if (%account [ $+ [ $nick ] ] == on) {

(note the space between 'on)' and '{' )
Posted By: SophisDecay Re: Help with On JOIN snippet - 07/10/14 11:47 PM
i need it to decrease %health by 25 everytime the person in %account joins
© mIRC Discussion Forums