AOWiki :: AODevs Forums :: Arcanum :: AO Official Forums :: AOC US/EU Official Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
+  AOdevs.com
|-+  AO 3rd Party Dev.» General Discussion» Need ideas for advanced info box.
Username:
Password:
 
Pages: [1]
  Print  
Author Topic: Need ideas for advanced info box.  (Read 575 times)
perch
Rollerrat
*
Offline Offline

Posts: 3


View Profile
« on: August 31, 2008, 01:25:21 »

Here's what I'm trying to do...I'd like to have a panel that would have a link that when clicked would add your target's name to something. But more than that "keep track" of it some way.

Example: run script that opens panel. click link in panel that copies the name of you current target. tab or click to another target and do the same...what I'd like is for it to keep adding the names of characters you've clicked to something.

Scenario: You have several members of your org at a meeting or celebration or something. While some kind of proceeding is taking place you are clicking or tabbing to players and then clicking link in panel. This is adding everyone you've clicked to something. When done you click another link that would use all the names you've "gathered" to produce a chat command for each player.
Sample:
Code:
/s Congrats %1
/delay 2500
/s Congrats %2
/delay 2500
/s Congrats %3
Only the %1 etc. would be taken from the "list" that you've created of previously clicked on characters.

Basically I'd like to have a %1 %2 etc defined with out having to type /script name1 name2. I was thinking that the only way to do this would be to have multiple scripts for each "%" but i have no idea how I could make it do that for me dynamically. Perhaps some kind of parser to a text file. Not sure. Ideas?

I should mention this would not be people that are all in the same org or bot so using a bot other than AO's bots would be out of the question.
 
Logged
Shaella
Reet
**
Offline Offline

Posts: 55


View Profile
« Reply #1 on: August 31, 2008, 01:44:48 »

That is easy to implement either as a separate bot or a plugin to an existing bot. A plugin would make the most sense.

Not a bad idea at all imo Smiley
Logged
perch
Rollerrat
*
Offline Offline

Posts: 3


View Profile
« Reply #2 on: August 31, 2008, 03:24:04 »

Well yes. A plugin would be easy. But I'm not using a bot. Hmm...okay here's an example. Let's say I already had a script that spammed an emote and it looked like this:
Code:
/me hugs %t.
/delay 2500
/me hugs %t.
/delay 2500
/me hugs %t.
/delay 2500
In theory, you could hit tab or click someone new after every emote and it would emote a different name every time without having to tab, click emote, tab, click emote and so on. This part is easy obviously. But now lets say there were certain people you might tab on to that you didn't want to send the emote out to. I know obviously you could just tab away quickly but I want a more fail safe method. So what I want to do is gather the names first and then hit the emote script and have it do the right people for me based on the names I've already gathered.

What I've been able to do so far is to write an info box that pops up with a clickable button in it. The button is simple chat command of "/text %t". Then I click or tab onto a different person and if I want them in the list I click the button again. This generates a list in the chat window of names basically. And is displayed only to me. Then I select all the names and 'Ctrl-C'. Then on my emote script instead of %t i have %1 %2 etc. So all I have to do is type the /script and hit 'Ctrl-V' to paste the names I've gathered. It works. But what I want is something more automated. No cutting and pasting. And something, like a panel of scripts or a 3rd party tool, that I could use and distribute to others.
Logged
Shaella
Reet
**
Offline Offline

Posts: 55


View Profile
« Reply #3 on: August 31, 2008, 13:57:45 »

I see where you're going. Afaik you will need a bot module for this.

What can be done is..
You send "/tell xxxBot !Charlist" to open an info box with a link that sends "/tell xxxBot !Charlist add %t" when you click it.
Behind the scenes the bot would have a database where it stores current list for you (much like helpbot does with that itemslist function where you send items to it and get html back or something).
So at all times you would have a list that is linked to you only where you can add/remove characters and send out messages etc in some way, f.ex. "/tell xxxBot !Charlist message [Your Message]" which would then send out a message to everyone in your list of characters. Also, it could be nice to have something like "/tell xxxBot !Charlist clear" to empty the list i guess...

Anyway, to do this you need a bot that can do this and handles saving of character names based on who is sending commands. Like I said implementing this would be very similar to the helpbot function I can't remember the name of atm Tongue

So if someone makes a module for say vhabot or bebot or something that does this, you can add it to your guild bot and this could be a scenario:

/tell xxxBot !charlist add player1
/tell xxxBot !charlist add player2
/tell xxxBot !charlist message Congrats to you!
..
/tell xxxBot !charlist clear

..xxxBot would then send "Congrats to you!" to player1 and player2.
The downside, the message isn't coming from you, but rather from the bot Smiley
And you can't use emotes.


Hmm as i wrote this I came up with another idea that might be more powerful.

A 3rd party desktop application can be made that is running on your pc that handles everything.
By parsing the log.txt of your chat window you could actually add chars locally (and store them locally on your pc) through the chat and just run a script more like you explained when the list is complete.
Then you can do stuff like "/me hugs player1", "/me hugs player2" etc or you can send tells or whatever to everyone since the application would dynamically create scripts according to player list.

Bottom line, some coding must be done, an info box isn't gonna cut it in any of the two cases :s

Did any of this brainstorming help? Smiley
Logged
Pages: [1]
  Print  

 
Jump to:  

Page created in 0.58 seconds with 17 queries.