mIRC Homepage

pm help

Posted By: misterman

pm help - 17/04/04 01:32 PM

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
Posted By: tidy_trax

Re: pm help - 17/04/04 01:41 PM

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
  }
}
Posted By: misterman

Re: pm help - 17/04/04 01:44 PM

thanks for the fast respond

greets alex


sorry but i does not work at my script
Posted By: tidy_trax

Re: pm help - 17/04/04 02:37 PM

were you talking about the idlerpg bot?
Posted By: misterman

Re: pm help - 17/04/04 02:38 PM

yep but its the idlerpg bot on otherside
Posted By: tidy_trax

Re: pm help - 17/04/04 02:59 PM

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.
Posted By: misterman

Re: pm help - 18/04/04 11:03 AM

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
Posted By: tidy_trax

Re: pm help - 18/04/04 03:17 PM

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
Posted By: misterman

Re: pm help - 04/05/04 11:25 AM

sorry but that doesnt works for me
© 2019 mIRC Discussion Forums