Central Forums Helpbot
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: 1 ... 7 8 9 [10]
 on: January 04, 2012, 07:54:07 PM 
Started by Llie - Last post by Llie
Right. My question was how one would accomplish that.

 on: January 02, 2012, 06:19:40 PM 
Started by Ellarisa - Last post by veremit
Glad to hear that seems to work .. we'll try to get that patched for future versions Smiley

 on: January 02, 2012, 06:16:35 PM 
Started by Llie - Last post by veremit
I have done this for our bot .. will see if the function is enabled for our running version of the plugin Smiley

FYI, its simply a matter of 'faking' the !online command when a user joins the private channel - just as it does in the normal way when a user logs on.

 on: December 31, 2011, 01:52:36 AM 
Started by Ellarisa - Last post by Ellarisa
looks like it's as vhab says, cause when i raise the timer interval to 20 seconds it seems to work (10 seconds didn't seem to work either).
Another issue solved (for me at least  Smiley ), thanks for the help!


 on: December 30, 2011, 01:05:56 AM 
Started by Llie - Last post by Llie
I've been spending a fair amount of time in our org bot's Guest Channel lately as I've been trying to level an out-of-org alt.

I'd really like to get the automated listing of who's online when I join the channel.  Unfortunately !Online is handled by vh_Online.cs and Guest Channel notify is handled by vh_PrivateGroup.cs.  Is there a simple way for PrivateGroup to trigger a Online? 

 on: December 28, 2011, 11:59:05 AM 
Started by Ellarisa - Last post by Vhab
It's likely an issue where invites are sent out too early after reconnecting.
I suspect the chat server ignores certain packets when they come in really early.
The private message is unaffected as it goes into a separate more throttled packet queue.

I suggest trying to add a bigger delay between the moment the bot connects and the moment re-invites are sent out.

 on: December 27, 2011, 11:57:00 PM 
Started by Ellarisa - Last post by veremit
I've always been perplexed as to why this doesn't work as expected .. particularly if the bot crashes or disconnects and then nobody re-connects to the guest-chat. It seems sporadic, sometimes it works .. sometimes it doesn't .. and I have tried a few bodges to make it work better, without succeeding at fixing the original problem.

It -could- potentially be a problem with invite flood .. but that doesn't seem to occur with the 'bodges' I've created.

We'll look into it further ... !

PS. Llie .. I wondered whether it was an issue with the db table .. so used it to track people who should be On the guestchat .. since I didn't understand the original purpose for the db table .. still with mixed results. Any thoughts welcomed!

 on: December 24, 2011, 04:34:40 PM 
Started by Ellarisa - Last post by Llie
This is strange, I've looked at the reinvite code and I can't see anything really "wrong" with it, though in my experience I've never gotten the reinvite message if I accidentally or intentionally clicked the "no" button on when bot invites one of my toons to guest channel.

If the bot is able to invite you, it should be able to reinvite you.  It appears to be the same function call, and if you're getting the reinvite message, you should be getting the invitation.

If you look in the plugins directory at the file vh_PrivateGroup.cs in a text editor and scroll down to where you get sent the reinvite message, you should see:

                foreach (UInt32 user in users)
                    this._database.ExecuteNonQuery("DELETE FROM pg WHERE user = " + user);
                    this._bot.SendPrivateMessage(user, this._bot.ColorHighlight + "You have been reinvited to the private channel");

That's the only place I see the "You have been reinvited" message in the bot code.  It seems to trigger for guest channel members who are not in guest chat every 5000 seconds.  If you got sent the message, the very next thing that should happen is that you get sent the invite.  If you look elsewhere in the code, the "join", "invite", and logon trigger all use bot.PrivateChannel.Invite(user).

If you're timer code above doesn't include the bot.PrivateChannel.Invite line after the bot.SendPrivateMessage, then that would be the problem.

 on: December 21, 2011, 07:22:43 PM 
Started by Ellarisa - Last post by Ellarisa
ello all,

just updated to version 0.7.9 and it resolved the issues with level, symb and pb, so that's awesome. but still having this problem with guestlist reinvite. When bot restart it tells me (sometimes) "You have been reinvited to the private channel" but it never actually does so...

anyone an idea what the problem here could be?



side note: bot still running great on my linux machine Cheesy

 on: December 18, 2011, 01:13:07 AM 
Started by Nuclearsmeg [rk1] - Last post by Llie
This is a much requested feature from the regular city raiders in our org.  The main use is for a solo raid or a "team just waits for the AI General to come" type raid, where the person or team that's raiding sits in the org HQ or player shop or what not and waits for each wave of aliens to pass by and pops out to kill the General and get AI phatz.  Usually accompanied by logging an out-of-org alt to instapwn the level 1 alien that spawns at each round because there are no people from org in the city.

Here's what I think it should look like but I have no way of testing this:

diff Plugins.Default/vh_City.cs Plugins.Default.Working/vh_City.cs
--- a/Plugins.Default/vh_City.cs        Thu Dec 15 17:19:34 2011 -0800
+++ b/Plugins.Default/vh_City.cs        Sat Dec 17 16:08:19 2011 -0800
@@ -140,6 +140,42 @@
             //if (this._state == VhCityState.Unknown) return;
             if (this._reminders == VhCityRemindState.Unknown) return;
             TimeSpan span = this.TimeExpired;
+            // Inserting AI Wave Timing here
+            if ( ( this._reminders == VhCityRemindState.Disabled ) && ( span.TotalMinutes < 30 ) )
+            {
+                // 1st wave ~5 minutes after lowering cloak
+                // 2nd wave ~3 minutes after 1st wave
+                // 3rd wave ~2 minutes after 2nd wave
+                // 4th wave ~2 minutes after 3rd wave
+                // 5th wave ~2 minutes after 4th wave
+                // 6th wave ~2 minutes after 5th wave
+                // 7th wave ~2 minutes after 6th wave
+                // 8th wave ~2 minutes after 7th wave
+                // General ~2 minutes after 8th wave
+                // delay between waves in seconds
+                int[] WaveInc = new int[9] { 300, 180, 120, 120, 120, 120, 120, 120, 120 };
+                // array to hold total time for waves
+                int[] WaveTimes = new int[9];
+                // array of wave names
+                string [] WaveNames = new string[9] { "First wave", "Second wave", "Third wave", "Fourth wave", "Fifth wave", "Sixth wave", "Seventh wave", "Eighth wave", "General" };
+                WaveTimes[0] = WaveInc[0];
+                for ( int i=0; i<9; i++ )
+                {
+                    if ( i > 0 )
+                        WaveTimes[i] = WaveTimes[i-1] + WaveInc[i];
+                    // put in a span of 60 seconds to make sure we catch the event on minute scale.
+                    if ( ( span.TotalSeconds > WaveTimes[i]-30 ) && ( span.TotalSeconds < WaveTimes[i]+30 ) )
+                    {
+                        this.SendMessage(this._bot, WaveNames[i] + " incoming. ");
+                    }
+                }
+            }
+            // back to your regularly scheduled plugin
             int minutes = 30;
             if (this._reminders == VhCityRemindState.FiveMinutes)
                minutes += 25;

Needs testing before I'm willing to commit it.

Pages: 1 ... 7 8 9 [10]