Author Topic: Event: Settag  (Read 1092 times)

What this does it sets your clan prefix. This is my first script so i want to know if you can see any errors. It warks but i just want to know if there is any errors. Please note this is my first script.
Code: [Select]
registerOutputEvent(Player, "SetTag", "list NONE 1 ChatMessage 2 CenterPrint 3 BottomPrint 4\tint 1 9 3\tstring " @ $pref::server::maxChatLen / 2 SPC $pref::server::maxChatLen);
function player::setTag(%this, %arg0, %arg1, %arg2, %client)
{
if(!isObject(%this))
{
return;
}

%newInput = strReplace(%arg2, "%1", %client.clanprefix);

if(%newInput $= %arg2)
{
%newInput = %newInput @ %client.clanprefix = %newinput ;
}

%this.clanprefix(%newinput);

if(isObject(%client) && isObject(%this.client) && %this.client == %client)
{
if(%arg0 == 1)
{
centerPrint(%client, "", %arg1);
}

if(%arg0 == 2)
{
messageClient(%client, '', "\c2Your player Tag has been set to \c6'" @ %newInput @ "'");
}

if(%arg0 == 3)
{
centerPrint(%client, "\c2Your player Tag has been set to \c6'" @ %newInput @ "'", %arg1);
}

if(%arg0 == 4)
{
bottomPrint(%client, "\c2Your player Tag has been set to \c6'" @ %newInput @ "'", %arg1);

}
}
}

Where did you get this code and what is with new scripters wanting to change the clan prefixes and stuff? Also, why would you want to set the clan prefix to the chat message? Wait, what the hell? Center Print Bottom print? I thought this was for setting a clan prefix? What is this?

Ok the center print chat mes and bottom print tells you what you set your clan tag too.

How is that gonna work when you naturally have to restart to add tags?

How is that gonna work when you naturally have to restart to add tags?

Recently it seems you've been consistently proving yourself to be incompetent at scripting, maybe take a break from the Coding Help forum for a bit before you go around misinforming people?

You don't have to restart to apply clan tags if the server is the one setting them. Clan tags are sent from client -> server on connection so if the client wanted to change theirs they'd have to rejoin.

Recently it seems you've been consistently proving yourself to be incompetent at scripting, maybe take a break from the Coding Help forum for a bit before you go around misinforming people?

You don't have to restart to apply clan tags if the server is the one setting them. Clan tags are sent from client -> server on connection so if the client wanted to change theirs they'd have to rejoin.

I've always wondered why I had to rejoin, thanks Ephi :)

With the release of this addon, prepare for mile-long clan tags

With the release of this addon, prepare for mile-long clan tags
Qft

I don't think it has a point:

<centerprint><font:Impact:99><color:ffffff>YOUR CLAN PREFIX HAS BEEN CHANGED TO DAHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!

I know that's not how to use centerprint, just so you know it's like really huge print, max in game is 64 I think...

Recently it seems you've been consistently proving yourself to be incompetent at scripting, maybe take a break from the Coding Help forum for a bit before you go around misinforming people?

You don't have to restart to apply clan tags if the server is the one setting them. Clan tags are sent from client -> server on connection so if the client wanted to change theirs they'd have to rejoin.
I got ephiflamed. :C  I thought he was my friend...

You need to seriously re-evaluate your definition of getting flamed. See, what I was doing there was telling you not to be a forgettard and flood the minds of kids with your misinformation and incompetence because it just makes the whole process of learning TorqueScript that much harder when they have to unlearn all the stuff you crapped onto a plate for them.

Why even bother coming to the Coding Help forum to answer questions when you barely know anything yourself? Leave it to people who actually do understand the mechanics of the game instead of guessing.

I don't think it has a point:

<centerprint><font:Impact:99><color:ffffff>YOUR CLAN PREFIX HAS BEEN CHANGED TO DAHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!

I know that's not how to use centerprint, just so you know it's like really huge print, max in game is 64 I think...
Its not your add-on damnit i can do what ever i want. It was my first script i was testing things if i do release and there is no point just dont use it.

Recently it seems you've been consistently proving yourself to be incompetent at scripting, maybe take a break from the Coding Help forum for a bit before you go around misinforming people?
He bugs me 24/7 to fix all his scripts, and give him more. I'm very close to banning him from my server. I completely agree.