09-21-2010, 05:05 PM
bugme143 Wrote:Also, I've been making runs named "wuw for infin" and want a way to auto-chat something when someone joins the game. I've messing around with the coding, but haven't had any luck. I tried making the structure the same as you have for a "boss" and it isnt working. What am I doing wrong?
I have a good idea of how to do it, no promises, but I'll see what I can do.
Basically something like...
Code:
if(NTConfig_PublicMode)
Say(player + " tp is up, come join us!");
---------- Post added 09-20-2010 at 11:04 AM ---------- Previous post was 09-18-2010 at 10:34 PM ----------
After working on this for a while it's become clear to me that it's a little more complex then one would think.
It's not that it would be hard to say something like "Hi" when someone joins the game, the problem is if you were running in a public game your screen is going to flood with the word "Hi" far more then you want.
This is where I decided to try whispering instead. And it works, sort of...
The problem I'm having is it tries to whisper the last player stored in the variable "_player". And when I fixed that problem, it only seems to message the first player to enter the game. It's been a never ending tug of war battle, as I fix one problem another occurs or a feature stops working or works differently.
These are some early screen shots I took a day or two ago.
[Player's Message Log]
![[Image: welcomeparty.jpg]](http://img834.imageshack.us/img834/6650/welcomeparty.jpg)
Displays a message when a player joins the game if the bot has invited a player to the Party.
Again I had it set as shown, but chose to use Whisper to help reduce the text on the screen for
player.
[Bot's Message Log]
![[Image: onjoinmsg.jpg]](http://img201.imageshack.us/img201/2540/onjoinmsg.jpg)
[Player's Message Log]
![[Image: invitationsent.jpg]](http://img217.imageshack.us/img217/5011/invitationsent.jpg)
Displays a message in the game when an invite is sent to a player.
Again, whispering is recommended for Public games.
One disadvantage to whispering is that if a player has set "/o igw" they will not see the message.
I'll continue to try an iron things out for another day, but I might just release it "as is" because I have other things that need my attention.[COLOR="Silver"]
---------- Post added at 11:35 PM ---------- Previous post was at 11:04 AM ----------
[/COLOR]I thought it would be best to make a new thread for this so you can find my first release here:
http://www.blizzsector.co/f16/d2nt-relea...post486464