collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Offline AA training timer module  (Read 222649 times)

0 Members and 2 Guests are viewing this topic.

Offline Salpa

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #15 on: June 13, 2010, 10:46:52 pm »
Thanks for answer Getrix, all i need now i your ItemDB hope you got my PM.
Thanks again :)

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #16 on: June 14, 2010, 10:19:49 am »
this module is excellent :) and very useful

Offline rmb

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #17 on: July 06, 2010, 12:11:31 pm »
I have added some colors to the output because it was somewhat hard to read when you have lots of alts.

Now the name of the character and the time remaining is green (or lime to be precise).
If there is no timer set the name stays lime but the message is shown in red.

Modified lines:

126:
Code: [Select]
               return "Offline AA Training Timer for ##lime##$name##end## ends $timeraa_ends (##lime##$diff left of ".$timeraa_cooldown."hrs##end##)";

129:
 
Code: [Select]
else { return "##red##No timer set##end##"; }
152:
 
Code: [Select]
$output .= "##lime##$main##end## ends $timeraa_ends (##lime##$diff left of ".$timeraa_cooldown."hrs##end##)".$this->brfix();
155:
Code: [Select]
  else { $output .= "##lime##$main##end## has ##red##no timer set.##end##".$this->brfix(); }
170:
 
Code: [Select]
$output .= "##lime##$charname##end## ends $timeraa_ends (##lime##$diff left of ".$timeraa_cooldown."hrs##end##)".$this->brfix();
173:
 
Code: [Select]
else { $output .= "##lime##$charname##end## has ##red##no timer set.##end##".$this->brfix(); }

Offline Exodus00FF

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #18 on: July 20, 2010, 09:31:28 pm »
Is it possible to have this module, once an hour check to see which toons have an Timer which ends in 24 Hours, 6 Hours, and 1 Hour.  Then send a message using the Mail Module, Saying your Timer on <Toon Name> will be ending in X Hours.

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: Offline AA training timer module
« Reply #19 on: July 21, 2010, 11:58:26 am »
Anything is possible, getting someone to code it is a different matter though.

Personally I don't see the need for this as you can check the times from any of your toons, if you want that type of functionality then it might be better (and easier) to download some sort of calendar app and put the ending times in there.
-Yite [Crom]

Offline heljeere

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #20 on: October 07, 2010, 09:52:53 am »
With my 17 lvl 80s I got confused trying to read the showall output, so I rewrote it to sort the timers by when they run out. I also cleaned it up a bit so it now does all the work in a single query instead of doing one per toon.

Just replace the timer_show_all function with this:

Code: [Select]
    function timer_show_all($name, $args) {
        if (!empty($args)) {
          $name = mysql_real_escape_string($args);
        }
     
        $findmain = $this -> bot -> db -> select("SELECT main FROM alts WHERE alts.alt='$name'");
        if (empty($findmain)) {$main=$name;}
        else {$main = current($findmain[0]);}
        $output = "<Center>##ao_infoheadline##:::: Offline timer info for $main and alts ::::##end##</Center>".$this->brfix(2);

$notsetoutput = $this->brfix()."<Center>##ao_infoheadline##:::: No timers ::::##end##</Center>".$this->brfix(2);
$chk_time = $this -> bot -> db -> select("SELECT #___timer_aa.*, alts.alt FROM alts LEFT OUTER JOIN #___timer_aa ON alts.alt = timeraa_username WHERE alts.main = '$main' UNION SELECT #___timer_aa.*, '$main' AS alt FROM #___timer_aa WHERE timeraa_username = '$main' ORDER BY timeraa_end ASC");
if (!empty($chk_time)) {
foreach ($chk_time as $aa) {
  $timeraa_start      = $aa[2];
  $timeraa_end        = $aa[3];
  $timeraa_ends       = date("M d H:i:s",$timeraa_end);
  $timeraa_cooldown   = $aa[4];
  $today  = time();
  $diff = $this->get_time_difference($today, $timeraa_end);
  if (!empty($aa[1])) $output .= "##lime##".$aa[5]."##end## ends $timeraa_ends (##lime##$diff left of ".$timeraa_cooldown."hrs##end##)".$this->brfix();
  else $notsetoutput .= $aa[5].$this->brfix();
}
}
       
        $output = $this -> bot -> core("tools") -> make_blob("AA timers for $main", $output.$notsetoutput);
        return $output;
    }

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
b1.0.4 uploaded
« Reply #21 on: October 07, 2010, 12:39:23 pm »
Thanks heljeere!
Added the changes and updated the file in link: http://dump.sjef.biz/aoc/bebot/TimerAA/TimerAA.phps

Quote
b1.0.4 Rewrote "showall" to sort the timers by when they run out. Also cleaned it up a bit so it now does all the work in a single query instead of doing one per toon. (Credits: [email protected]/Crom)
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #22 on: October 09, 2010, 08:19:40 am »
This version lets you add the AA you are time training to the list.

Also, it adds some color.

Enjoy.

~Kyr

Edit: Small change to fix a bug when an AA name wasn't included.
« Last Edit: October 11, 2010, 05:36:06 am by Kyr »

Offline SalmonSeller

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #23 on: November 14, 2010, 09:47:30 pm »
Is there any way to have the aa timer info that this module returns displayed as text straight into chat. The reason I ask is that I have been using Conan Chat (Conan To Go now I guess), and whilst you can ping the bot, the links that it returns are of no use on the iPod/iPhone, mobile device, etc.

Perhaps a slightly different command, still sent to the same module though, but would recognise it as to be responded to/displayed in the chat directly, as opposed to creating a link/info box. Currently I get around this by pinging the aatimer module in the bot, and just get someone who is actually in-game to copy and paste my timers to me in chat.

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: Offline AA training timer module
« Reply #24 on: November 15, 2010, 09:15:23 am »
!timeraa show
Will show you the timer for the character you're logged in as in chat.
-Yite [Crom]

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #25 on: November 15, 2010, 06:33:35 pm »
Toon you are logged in on:
Code: [Select]
!timeraa show
Show your toon1, toon2 and toon3:
Code: [Select]
!timeraa show toon1
!timeraa show toon2
!timeraa show toon3

showall will make the link.

Code: [Select]
[Guild] [Toon]: !timeraa show
[Guild] [Bot]: Offline AA Training Timer Toon ends Nov 18 12:13:46 (2 days 18 hours 45 minutes 41 seconds left of 540 hrs) Chromatic Warding V

Code: [Select]
[Guild] [Toon]: !timeraa show Toon2
[Guild] [Bot]: Offline AA Training Timer Toon2 ends Nov 20 03:24:17 (4 days 9 hours 51 minutes 0 seconds left of 126 hrs) Expanded BtD III

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Offline AA training timer module
« Reply #26 on: November 20, 2010, 02:56:31 am »
Thanks for this module Getrix and friends  :D

Edit: don't want to hijack this thread
« Last Edit: November 24, 2010, 02:11:59 am by Kentarii »

Offline SalmonSeller

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #27 on: November 22, 2010, 10:38:24 am »
Aha! Much appreciated Kyr & Yite   :D

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: Offline AA training timer module
« Reply #28 on: November 22, 2010, 11:01:28 am »
Hey Kentarii,

I've played EvE so I know where you're coming from.

There is no API for Conan though so all information would still have to be stored manually.
-Yite [Crom]

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Offline AA training timer module
« Reply #29 on: November 23, 2010, 05:18:19 pm »
Thanks Kyr!
Added the changes and updated the file in link: http://dump.sjef.biz/aoc/bebot/TimerAA/TimerAA.phps

Quote
b1.0.5 Added optional name of AA being trained (Thanks to [email protected])
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 484
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal