mIRC Home    About    Download    Register    News    Help

Print Thread
#252472 15/04/15 02:33 PM
Joined: Jul 2010
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Jul 2010
Posts: 3
Hello!
Several years ago I was a good programer in "mSL" but it seems that I get the amnesia flu or something... because I dont remember how to do aliases scripts.

I got this Idea that I want to recover:

Code:
alias 870 {

  inc %870
  inc %870.$1
  say takes his 870 shotgun, put inside several shells, aim against  $1 and fires..  (Shoots with his 870: %870 ,Shoots against $1: %870.$1 )

}


Ye, its awful.

now if we get a example case:
in aliases we got

%870 5
%870.pedro 5

(I dont have dat... I erease that awful aliases)

so I shoot 5 times against pedro, and now I shoot against dunno... "mIRC"

so the text must show:

RichardWinters takes his 870 shotgun, put inside several shells, aim against mIRC and fires.. (Shoots with his 870: 6 ,Shoots against mIRC: 1 )

but it doesnt works. it keep sayin

RichardWinters takes his 870 shotgun, put inside several shells, aim against mIRC and fires.. (Shoots with his 870: 6 ,Shoots against mIRC: 6 )


like if mIRC were Pedro. but mIRC is not Pedro.

So what is getting wrong? (apart my grammar)


User from irc.onlinegamesnet.net
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
alias 870 {
  inc %870
  inc %870 $+ $1
  say takes his 870 shotgun, put inside several shells, aim against  $1 and fires..  (Shoots with his 870: %870 ,Shoots against $1: $eval($($+(%,870.,$1),2) $+ )
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #252474 15/04/15 02:51 PM
Joined: Jul 2010
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Jul 2010
Posts: 3
Well
I am starting to remember somethin but still giving trouble bud.

(write /870 Obscurion )
Answer:
09:49 Winters|On • takes his 870 shotgun, put inside several shells, aim against Obscurion and fires.. (Shoots with his 870: 1 ,Shoots against Obscurion: <--- Blank Space.


User from irc.onlinegamesnet.net
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
That's my bad, I deleted a dot in your variable, use :

Code:
alias 870 {
  inc %870
  inc %870. $+ $1
  say takes his 870 shotgun, put inside several shells, aim against  $1 and fires..  (Shoots with his 870: %870 ,Shoots against $1: $eval($($+(%,870.,$1),2) $+ )
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard