Author Topic: DeathAdders Code TidBits.  (Read 4178 times)

0 Members and 1 Guest are viewing this topic.

DeathAdder

  • Orc Thrasher
  • ***
  • Posts: 137
  • Reputation: +0/-0
    • http://www.los.planetubh.com
DeathAdders Code TidBits.
« on: November 30, 2004 07:07 pm CST »
K, well I'll be adding things here and there to help ppl out.

First on the list is a reverse global mute, everything but zone, and global messages will be muted with this. If your familier with the consol the "~" key, than you can use my little bit of code here.

If you have PrestoPack, add this underneath everything you might have in your autoexec.cs, and than in game, just type exec(autoexec); in consol, or restart, either way works :p

Code: [Select]
function SpamBlocker(%client, %msg)
{
for(%word=0; %word <= 10; %word++)
%Word[%word] = getWord(%msg, %word);

if($ReverseGlobalMute == "true")
{
if((%word[0] == "[GLBL]") || (%word[0] == "[ZONE]"))
{
return;
}
else
{
return mute;
}
}
}

Event::Attach(eventClientMessage, SpamBlocker);

If you don't have presto/DeusPack... Put this in your autoexec.cs

Code: [Select]
function onClientMessage(%client, %msg)
{
for(%word=0; %word <= 10; %word++)
%Word[%word] = getWord(%msg, %word);

if($ReverseGlobalMute == "true")
{
if((%word[0] == "[GLBL]") || (%word[0] == "[ZONE]"))
{
return;
}
else
{
return mute;
}
}
}


You can change the $ReverseGlobalMute to anything you want, just make sure in the consol you type $yourvalue = "true"; to turn it off and than make that "true" to anything elts to turn it off.



There, you now have a reverse mute script... A few other things should be comming soon. Such as my planned Message hud, just a toggle'able hud that will log all #tells to you and any message containing a nickname ppl refer to you as, all can be set by YOU, all this will be logged in a hud you can scroll up and down to see what ppl are saying about or to you :p
« Last Edit: December 31, 1969 06:00 pm CST by DeathAdder »
<img src="http://www.pcrpg.org/pics/hosted/dadder.jpg">

DeathAdder

  • Orc Thrasher
  • ***
  • Posts: 137
  • Reputation: +0/-0
    • http://www.los.planetubh.com
(No subject)
« Reply #1 on: December 1, 2004 12:59 am CST »
- = : |NEW SCRIPT| : = -


PrivateMessageHud !!!!

http://http://www.geocities.com/deathadder_sr/PMhud.zip

Download, and throw scripts into the config folder, and add exec(pmhud); to your autoexec.

Make sure you read the prefs file and change what you need to to make it the way you want.

What this will do is put any $tells and if you set words in $Nicks = in the prefs, it will send messages containing those words into the Hud that you can toggle on and off through the DeusChatMenu, If you do not have DuesRPGPack, get it :p.
« Last Edit: December 31, 1969 06:00 pm CST by DeathAdder »
<img src="http://www.pcrpg.org/pics/hosted/dadder.jpg">

DeathAdder

  • Orc Thrasher
  • ***
  • Posts: 137
  • Reputation: +0/-0
    • http://www.los.planetubh.com
(No subject)
« Reply #2 on: December 1, 2004 01:13 am CST »
Sorry people, there was a mistake I found, if you find that your getting your healing self messages in your hud, redownload and install the PMhud.cs and change what you changed in the first one.

Sorry. :(
« Last Edit: December 31, 1969 06:00 pm CST by DeathAdder »
<img src="http://www.pcrpg.org/pics/hosted/dadder.jpg">

Sinister

  • Uber Menace
  • *******
  • Posts: 1,125
  • Reputation: +0/-0
    • http://www.stormpages.com/snowmann69
(No subject)
« Reply #3 on: December 1, 2004 04:43 am CST »
You, Taurik and I must think on the same wavelength.  We were just talking about making one of those the other night and now....BAAAM !! there it is!  Thanks man, ill check it out.
« Last Edit: December 31, 1969 06:00 pm CST by Sinister »

Hersh

  • Elvin Legion
  • *****
  • Posts: 413
  • Reputation: +0/-0
(No subject)
« Reply #4 on: December 1, 2004 12:46 pm CST »
Offtopic.

Sinister, please understand I don't mean any offense, but games are not fun if they don't require any work.

Stop trying to make this game easier for people to play.

It was bad enough when all you had to do was swing and run away every now and then to heal, but after auto-fire and auto-cast you can do both of those things without touching the keyboard.  :?
« Last Edit: December 31, 1969 06:00 pm CST by Hersh »

I kissed a drunk girl on the lips.
This post, by its very length, defends itself against the risk of being read.

Frantic

  • Elvin Legion
  • *****
  • Posts: 662
  • Reputation: +0/-0
(No subject)
« Reply #5 on: December 1, 2004 01:49 pm CST »
The game was never hard, and it never will be. It requires absolutely no skill, or thinking. It no longer requires any work, either. I got to RL 25 and more than 2/3 of those LVLs were done while AFK.
« Last Edit: December 31, 1969 06:00 pm CST by Frantic »

DeathAdder

  • Orc Thrasher
  • ***
  • Posts: 137
  • Reputation: +0/-0
    • http://www.los.planetubh.com
(No subject)
« Reply #6 on: December 1, 2004 03:48 pm CST »
I see where you guys are going, but I'm not here to make the game easier, the scripts I make for the public are there to make things either more interesting, or add a usefull component to the game. Such as my PrivateMessageHUD, all it does is alow you to read messages ppl #tell you when you might have completely missed it :/, or even messages where people mention your name, its only there to help keep people aware of the situations going on arround them. So I respectfully ask you not to be critisizing my work in the manner you are. If your not aiming at me with those remarks than it's all good, but I would like to keep this for a resource of helpful hints and scripts that I may be putting up here and there. ^_^

ThanX, -DeathAdder-
« Last Edit: December 31, 1969 06:00 pm CST by DeathAdder »
<img src="http://www.pcrpg.org/pics/hosted/dadder.jpg">

DeathAdder

  • Orc Thrasher
  • ***
  • Posts: 137
  • Reputation: +0/-0
    • http://www.los.planetubh.com
(No subject)
« Reply #7 on: December 1, 2004 04:43 pm CST »
- = : | Script Proposal | : = -

Although I do have my PrivateMessageHud script made, who thinkgs having a mutation to it that would have actuall private conversation huds.

What I was thinking was if you wanted to talk to someone who had the same script youd type like "!msg -DeathAdder- Hey whats up?", than that would send a signal to thier script to make a small indevidual hud in the bottom left corner with the name of the person talking to you at the top and the Hud Number that you use to respond like this, "! 1 Hey, not much" where ! is the command and 1 is the hud number, that will send your message to your hud and thiers so you can have a private conversation in a completely seperate hud. I also have a way of having multiple huds out, using 1, 2, 3... for the numbers and if ones out it just makes a new one, with 1 nimber higher and on top of the previous one. That way you can talk with more than one person quickly and without confusion :p

What do you guys think, should I make it?
« Last Edit: December 31, 1969 06:00 pm CST by DeathAdder »
<img src="http://www.pcrpg.org/pics/hosted/dadder.jpg">

Frantic

  • Elvin Legion
  • *****
  • Posts: 662
  • Reputation: +0/-0
(No subject)
« Reply #8 on: December 1, 2004 05:23 pm CST »
It's cool if you want to make it, but what's wrong with the regular chat HUD way?
« Last Edit: December 31, 1969 06:00 pm CST by Frantic »

UnderGod

  • Centurian Lord
  • ********
  • Posts: 2,691
  • Reputation: +0/-0
(No subject)
« Reply #9 on: December 1, 2004 10:09 pm CST »
It would not work unless you had a 3rd party application running in the background or the code was server-side as well.

At least from what I understand you are trying...

Be more descriptive on how you are covering your bases.
« Last Edit: December 31, 1969 06:00 pm CST by UnderGod »
"The right man in the wrong place can make all the difference in the world"

12Stones

  • Minotaur Rager
  • ******
  • Posts: 967
  • Reputation: +2/-0
(No subject)
« Reply #10 on: December 3, 2004 01:49 am CST »
Quote from: "DeathAdder"
- = : | Script Proposal | : = -

Although I do have my PrivateMessageHud script made, who thinkgs having a mutation to it that would have actuall private conversation huds.

What I was thinking was if you wanted to talk to someone who had the same script youd type like "!msg -DeathAdder- Hey whats up?", than that would send a signal to thier script to make a small indevidual hud in the bottom left corner with the name of the person talking to you at the top and the Hud Number that you use to respond like this, "! 1 Hey, not much" where ! is the command and 1 is the hud number, that will send your message to your hud and thiers so you can have a private conversation in a completely seperate hud. I also have a way of having multiple huds out, using 1, 2, 3... for the numbers and if ones out it just makes a new one, with 1 nimber higher and on top of the previous one. That way you can talk with more than one person quickly and without confusion :p

What do you guys think, should I make it?


That's just overkill.  I rather keep all my #tells in one seperate hud, instead of having to keep track of what number people are and having to scan over 3 and 4 huds constantly..  it's an interesting concept though.  Maybe some people will like it..
« Last Edit: December 31, 1969 06:00 pm CST by 12Stones »

Quote from: "Aphex"
mmm so many different types of music, so little time.

|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ASCII FAN\\\|]

Lidge Farkley

  • Uber Menace
  • *******
  • Posts: 1,357
  • Reputation: +2/-3
    • http://www.angelfire.com/ca2/psychosworld2/
(No subject)
« Reply #11 on: December 24, 2004 10:27 pm CST »
I like the extended Idea you posted, DA.

I suggest you check out Adium (for mac OSX) for the message-box ideas.
If you could tab the people you are talking to, that would be pretty cool... I would make the tabs the 4th line in the transparent chat hud though... provided you could add such a feature.

I am probably just being imaginative right now. :-p

heh... cool concepts so far though!
« Last Edit: December 31, 1969 06:00 pm CST by Lidge Farkley »
Lend your heart unto the divine mineral TOPAZ;
from which our reverent hearts and minds sprang.
Also Known As:  Alcoholic 007
My Page of tribes Tools and Helpful "FAQ" Stuff

12Stones

  • Minotaur Rager
  • ******
  • Posts: 967
  • Reputation: +2/-0
(No subject)
« Reply #12 on: January 4, 2005 06:17 am CST »
You'd be a pioneer if you made an interactive hud like that..  I doubt you could do a graphical menu that you could control with your mouse, but you might be able to set a hotkey to scroll through them all in one hud..  that would rock.
« Last Edit: December 31, 1969 06:00 pm CST by 12Stones »

Quote from: "Aphex"
mmm so many different types of music, so little time.

|\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ASCII FAN\\\|]