mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2005
Posts: 4
i want scripter help me to manage this code i made it by my simple mind , it is not working , need anyone to resolve it for me and make it work , i will be glad for that thx smile
Code:
  
on 1:text:!sms $num $msg:#:{ /url http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&pass=abcd1234
&message=$msg&numero=$num}



THanks blush

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:text:!sms & *:#:{ url $+(http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&pass=[color:red]********[/color]
&message=, $replace($2-, $chr(32), +), &numero=, $1) }


I'm guessing the site uses a '+' to replace spaces in the message, if not you'll have to change it a little bit.

I'd also remove your password from your post wink


New username: hixxy
Joined: Apr 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2005
Posts: 4
i made it wotk somehow with error
<MaTRiKaTiONZZ> !sms +20127588592 hey+hany
it opened this
Code:
 http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&amp;pass=********&amp;message=+20127588592+hey+hany&amp;numero=!sms 


it i need to open it :

Code:
 http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&amp;pass=********&amp;message=hey+hany&amp;numero=+20127588592 


thx tidy_trax but i need more help from u smile

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
tidy forgot the word !sms in the trigger I guess smile

Code:
on *:text:!sms &amp; *:#:{ url $+(http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&amp;pass=********&amp;message=, $replace([color:red]$3-[/color], $chr(32), +), &amp;numero=, [color:red]$2[/color]) }

Joined: Apr 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Apr 2005
Posts: 4
thx Kelder :
i want to add something like successful msg like :

Code:
  /msg $nick $chan UR messge is sent successfuly



where i put that smile
and thx for help

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Doing a task like that you'd be better off using sockets.

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Code:
on *:text:!sms &amp; *:#:{ 
  url $+(http://www.smsmode.com/fr/1.0/sendSMS.do?pseudo=jean&amp;pass=********&amp;message=, $replace($3-, $chr(32), +), &amp;numero=, $2)
  .msg $nick Your message is sent!
}


Sockets might be better indeed, but are also a lot more difficult...

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Very true but if you want a true result they are needed.

For instance we aren't checking if $2 isnum and is greater than 6 and less than 11 for example.

And some SMS messages don't allow you to exceed a certain number of characters so a warning for that might be needed too. smile


Link Copied to Clipboard