A Fake Ping Reply....

An area for those working on addons and mods for Invision and/or mIRC.

Moderators: L|B, cryoa, Riamus, XMog

A Fake Ping Reply....

Postby WiseManLou » Sun May 11, 2003 1:22 pm

Working on a fake ping reply, i got it working on a blank mirc shell but wouldn't even begin to know how to add it to your script it goes something like this.....

PopUps:
.Fake PING reply
..On:fakeping ON
..Off:fakeping OFF

Alias:
if %fakeping == $null { fakeping OFF }

fakeping {
if $1 = ON { set %fakeping ON | echo -a $litbit $uc(Fake Pingreply set) $hc(ON!) }
if $1 = OFF { set %fakeping OFF | echo -a $litbit $uc(Fake Pingreply set) $hc(OFF!) }

Remotes:
ctcp 1:ping:{
if (%fakeping == ON) && ($nick != $me) {
.ctcpreply $nick PING $rand(1,99999) $+ hrs $rand(1,60) $+ mins $rand(1,60) $+ seconds
halt

Variables
%fakeping ON

If you would help me add this to invision 2.0
youg uy's have built an awsome script far more advanced than polaris in my opinion and far more advanced then i would ever get into. i can understand if you won't help me screw with it's integraty but it would be appreciated.

WiseManLou, dalnet|Efnet
WiseManLou
Member
Member
 
Posts: 2
Joined: Sun May 11, 2003 1:16 am

Postby Chron » Tue May 20, 2003 6:41 am

Assuming your script is like that, you can just make a new .ini file ( Remote scripts -> File -> New -> Save as (desired name for ini file))
Put following in it (Only required in the remote scripts, this will add it all to popups and alias as you required, and the variable as automatically added if it doesnt exist, first time it is set.)

menu (remove the parenthesis, and replace this line with one of following as desired: nicklist, channel, status, query, chat or menubar) {
.Fake PING reply
..On:fakeping ON
..Off:fakeping OFF
}
The alias here I dont understand, anyways, instead of the ENTERHERE you type in the /command desired to trigger the alias
Alias ENTERHERE {
if %fakeping == $null { fakeping OFF }

fakeping {
if $1 = ON { set %fakeping ON | echo -a $litbit $uc(Fake Pingreply set) $hc(ON!) }
if $1 = OFF { set %fakeping OFF | echo -a $litbit $uc(Fake Pingreply set) $hc(OFF!) }
}

ctcp 1:ping:{
if (%fakeping == ON) && ($nick != $me) {
.ctcpreply $nick PING $rand(1,99999) $+ hrs $rand(1,60) $+ mins $rand(1,60) $+ seconds
halt
}
}
Good luck, that should work.
Chron
Member
Member
 
Posts: 2
Joined: Tue May 20, 2003 6:22 am
Location: irc.ejeet.net @ #R&A_warez

Postby WiseManLou » Wed May 21, 2003 1:56 am

WiseManLou
Member
Member
 
Posts: 2
Joined: Sun May 11, 2003 1:16 am

Okay, return the favor..

Postby Chron » Fri May 23, 2003 2:57 am

I've never read of processes used like that..

like your
fakeping {
if $1 = ON { set %fakeping ON | echo -a $litbit $uc(Fake Pingreply set) $hc(ON!) }
if $1 = OFF { set %fakeping OFF | echo -a $litbit $uc(Fake Pingreply set) $hc(OFF!) }
}

Could you just throw me a few words on them or show me a place to read about it?
Chron
Member
Member
 
Posts: 2
Joined: Tue May 20, 2003 6:22 am
Location: irc.ejeet.net @ #R&A_warez

hmmm

Postby inHeaven » Mon Oct 27, 2003 10:25 am

nice idea, but after putting the code in remotes for the channelmenu i get this
"error: unknown command: FAKEPING"
now what is going wrong ?
inHeaven
Member
Member
 
Posts: 11
Joined: Sat Mar 30, 2002 10:01 pm

Re: Okay, return the favor..

Postby PD^renegade » Fri Oct 31, 2003 7:39 pm

User avatar
PD^renegade
Member
Member
 
Posts: 337
Joined: Thu Jun 06, 2002 9:01 pm

nop...

Postby Mnemic » Wed Dec 01, 2004 6:12 am

Mnemic
Member
Member
 
Posts: 13
Joined: Fri Nov 12, 2004 5:32 am

Heh

Postby Riamus » Wed Dec 01, 2004 9:58 am

You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.
User avatar
Riamus
Global Moderator
Global Moderator
 
Posts: 1783
Joined: Fri May 03, 2002 9:01 pm
Location: Massachusetts, USA


Return to Developers Corner

Who is online

Users browsing this forum: No registered users and 3 guests

cron