mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Need help with scripting. #141773 13/02/06 02:17 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
In the scripts editor on the popups menu I have:

STAB!:/me stabs $$1 with a Divine Blade!/stab
FIRE!:/me Fire blazes upon $$1!!/fire
EAT!$$2 eats $$1, and then digest $$1../eat
DIE!:/me stabs $$1 to death. ^.^/die
Slap!:/me slaps $$1 around a bit with a large trout./slap

But when I type in /slap user it says unknown command...

Why won't it work?

Last edited by FireDivine; 13/02/06 02:18 AM.
Re: Need help with scripting. #141774 13/02/06 02:22 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
The popups editor allows you to add items to the right-click menu of various windows. If you want to type /slap, you need to add an alias to the alias editor.

Code:
slap if ($active ischan) describe $active slaps $$1 with a salmon


-genius_at_work

Re: Need help with scripting. #141775 13/02/06 02:23 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Oh ok. Thanks. Now i'll see if it works. ^.^

Re: Need help with scripting. #141776 13/02/06 02:32 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
If someone typed in fish how can you make something to auto reply to fish? without me typing it in?

Last edited by FireDivine; 13/02/06 02:33 AM.
Re: Need help with scripting. #141777 13/02/06 02:54 AM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Place this in the Remote area of the script editor.
Code:
on *:TEXT:[color:red]fish bowl[/color]:#:{
  /msg $chan [color:green]<reply message here>[/color]
}

You could replace fish bowl with anything you want replyed to

Where <reply message here> just make that what you want fish bowl to be replyed with...


-blk-
Re: Need help with scripting. #141778 13/02/06 03:44 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Many thaks.

Re: Need help with scripting. #141779 13/02/06 04:20 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
I am trying out a new code but it is not working for some reason.

I am putting it into Remote:

on *:TEXT:slowdeath $$1:#:{
/msg $active *Slowly kills $$1*
}

Where $active is the person typing the code and $$1 is the target.

Re: Need help with scripting. #141780 13/02/06 04:21 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:TEXT:slowdeath *:#: msg $nick *Slowly kills $$2*

Re: Need help with scripting. #141781 13/02/06 04:24 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
cool. thanks again.

Re: Need help with scripting. *DELETED* #141782 13/02/06 04:34 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Post deleted by FireDivine

Last edited by FireDivine; 13/02/06 04:38 AM.
Re: Need help with scripting. #141783 13/02/06 04:42 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What is the exact error message? I haven't heard of anything like that before and it's definitely not coming from the script.

Re: Need help with scripting. #141784 13/02/06 04:45 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
I'm sorry. I got it working now.

on *:TEXT:slowdeath *:#:{
/msg $chan $nick *Slowly kills $$2*
}

Last edited by FireDivine; 13/02/06 04:48 AM.
Re: Need help with scripting. #141785 13/02/06 05:02 AM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
If you want it to make it an action -
Code:
on *:TEXT:slowdeath *:#:{
  /describe $chan Slowly kills $2
}


-blk-
Re: Need help with scripting. #141786 13/02/06 05:07 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
OK thanks for the tip.

One last question I think.

How can I make the name change to something different besides my own?

$chan seems to display my name in front of everything.

What if I wanted to use another name for the intro line?

Like Monster instead of my user name.

Last edited by FireDivine; 13/02/06 05:08 AM.
Re: Need help with scripting. #141787 13/02/06 05:11 AM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Oh yea, you could make it
Code:
on *:TEXT:slowdeath *:#:{
  /describe $chan Slowly kills $2 for $nick
}


lol, other than that there is no other way..


-blk-
Re: Need help with scripting. #141788 13/02/06 05:13 AM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
or like
Code:
on *:TEXT:slowdeath *:#:{
  /describe $chan has a monster slowly kill $2
}

smirk just ideas :tongue:


-blk-
Re: Need help with scripting. #141789 13/02/06 05:14 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
ok I get it. Thanks for all the help.

Re: Need help with scripting. *DELETED* #141790 13/02/06 06:36 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Post deleted by FireDivine

Re: Need help with scripting. #141791 13/02/06 06:52 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Could you rephrase that? I don't understand..

Re: Need help with scripting. #141792 13/02/06 07:03 AM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Sorry. I found out what caused the loop though.

Hiya * waits for the command
the reply hiya (name)

caused it to loop.

Now I got it like this:

on *:TEXT:Hiya *:#:{
/msg $chan <3 HIYA!
}

It got rid of the loop but after the HIYA! I would like it to have the name that originally put Hiya *

Last edited by FireDivine; 13/02/06 07:04 AM.
Page 1 of 2 1 2