mIRC Home    About    Download    Register    News    Help

Print Thread
#248308 02/10/14 11:47 PM
Joined: Sep 2014
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2014
Posts: 24
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
}
}

Last edited by SophisDecay; 02/10/14 11:49 PM.

-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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 '{' )

Joined: Sep 2014
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2014
Posts: 24
i need it to decrease %health by 25 everytime the person in %account joins


-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net

Link Copied to Clipboard