mIRC Home    About    Download    Register    News    Help

Print Thread
pm help #79640 17/04/04 01:32 PM
Joined: Oct 2003
Posts: 32
M
misterman Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2003
Posts: 32
i got this thing:

if i pm the bot with this command whoami he replys some thing back. but now i want the thing he replys in the pm in a dialog. i know it possible but don't know how.

the thing he replys is:

You are junior, the level 35 hacker. Next level in 1 days, 00:44:38

Please help me!

Thanks Alex Calsbeek

Re: pm help #79641 17/04/04 01:41 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
dialog whoami {
  title "whoami"
  size -1 -1 113 13
  option dbu
  edit "", 1, 0 2 113 10
}
on *:text:you are * the level * * next level in ? days*:?:{ 
  if $nick == idlerpg {
  if !$dialog(whoami) { dialog -m whoami whoami }
  did -ra whoami 1 $3-7
  }
}


New username: hixxy
Re: pm help #79642 17/04/04 01:44 PM
Joined: Oct 2003
Posts: 32
M
misterman Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2003
Posts: 32
thanks for the fast respond

greets alex


sorry but i does not work at my script

Last edited by misterman; 17/04/04 01:51 PM.
Re: pm help #79643 17/04/04 02:37 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
were you talking about the idlerpg bot?


New username: hixxy
Re: pm help #79644 17/04/04 02:38 PM
Joined: Oct 2003
Posts: 32
M
misterman Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2003
Posts: 32
yep but its the idlerpg bot on otherside

Re: pm help #79645 17/04/04 02:59 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Make sure you paste the script into wordpad first, otherwise the crlf's will get messed up and the script won't be in correct format inside remote.


New username: hixxy
Re: pm help #79646 18/04/04 11:03 AM
Joined: Oct 2003
Posts: 32
M
misterman Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2003
Posts: 32
next thingy:

johny, the andrew, has attained level 46! Next level in 6 days, 09:47:08.

that line i get when i attained the next level.
but now i want to set a countdown timer for the next level time.

If any could help thx,

Alex Calsbeek

Re: pm help #79647 18/04/04 03:17 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:text:& the & has attained level & next level in & days &:?:{
if $nick == idlerpg { 
set %n $1
set %c $3
set %l $7
set %d $11
set %h $gettok($13,1,$asc(:))
set %m $gettok($13,2,$asc(:))
set %s $gettok($13,3,$asc(:))
.timerlevel $calc((86400 * %d) + (%h *3600) + (%m *60) + %s) 1 nlevel $(%n,0) 
}
}
alias nlevel {
did -ra dname id %n the %c has attained level %l next level in %d days %h $+ : $+ %m $+ : $+ %s 
if %s == 01 { 
%s = 60 
if %m == 01 {
%m = 60
if %h == 01 { 
%h = 60 
if %d == 1 { .timerlevel off }
elseif %d > 1 { dec %d }
}
elseif %h > 1 { dec %h }
}
elseif %m > 1 { dec %m }
}
elseif %s > 1 { dec %s }
}


-untested


New username: hixxy
Re: pm help #79648 04/05/04 11:25 AM
Joined: Oct 2003
Posts: 32
M
misterman Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Oct 2003
Posts: 32
sorry but that doesnt works for me