Post by Drake™ on Oct 31, 2010 13:33:20 GMT -6
Here we go...a nice release to the community to have fun with. This is a new scripting style that is being tested.
In a short summary, this is multiple functions in one function. I will explain how it is used after posting it.
First odd thing you'll notice is that the function name is "dot_op_name". Well this will not be how the function is typed out.
To use:
1. Copy and paste the above function into your console.cs and save. Presto, new function to be joyjoy about.
2. Whenever you wish to modify your name, use the function as follows:
add.name("whatever"); - This adds onto your name instead of completely clearing it for whatever you put in.
set.name("whatever"); - This sets your name to whatever you put in the quotes.
clear.name(); - Clears your name completely. Although just highlighting in the box and hitting backspace is just as easy..thought to make an entry anyway.
reset.name(); - If you make a mistake, this will reset your name to the way it was when you entered a server.
Note: You MUST be in a server for this to work.
Note2: You MUST click in the area your name is in then hit enter for any changes to take place.
Short and sweet reasoning behind this release: those who wish to modify their name with special characters and/or change colors or add them into their name can do so through the use of console without leaving the server. Joyjoy.
Have fun.
In a short summary, this is multiple functions in one function. I will explain how it is used after posting it.
function dot_op_name(%object, %input)
{
if(%object == "ADD")
{
control::settext(IDPIC_PLAYER_NAME, $client::name @ %input);
control::performclick(IDPIC_PLAYER_NAME);
}
else if(%object == "set")
{
control::settext(IDPIC_PLAYER_NAME, %input);
control::performclick(IDPIC_PLAYER_NAME);
}
else if(%object == "CLEAR")
{
control::settext(IDPIC_PLAYER_NAME, "");
control::performclick(IDPIC_PLAYER_NAME);
}
else if(%object == "reset")
{
control::settext(IDPIC_PLAYER_NAME, $client::name);
control::performclick(IDPIC_PLAYER_NAME);
}
else
{
echo("Invalid Script Prefix: " @ %object);
}
}
First odd thing you'll notice is that the function name is "dot_op_name". Well this will not be how the function is typed out.
To use:
1. Copy and paste the above function into your console.cs and save. Presto, new function to be joyjoy about.
2. Whenever you wish to modify your name, use the function as follows:
add.name("whatever"); - This adds onto your name instead of completely clearing it for whatever you put in.
set.name("whatever"); - This sets your name to whatever you put in the quotes.
clear.name(); - Clears your name completely. Although just highlighting in the box and hitting backspace is just as easy..thought to make an entry anyway.
reset.name(); - If you make a mistake, this will reset your name to the way it was when you entered a server.
Note: You MUST be in a server for this to work.
Note2: You MUST click in the area your name is in then hit enter for any changes to take place.
Short and sweet reasoning behind this release: those who wish to modify their name with special characters and/or change colors or add them into their name can do so through the use of console without leaving the server. Joyjoy.
Have fun.