Ahh, I did not know there was another one around. That's why I made this one.
I am just going to add any helpful things that people post here to the guide(Spaghetti recipies, maybe?), giving credit to the contributor, of course.
Hmm, well, I might as well post my HP calculator script here, just copy it all into a .cs file in your config, and add exec("HPCalc.cs"); to your autoexec.cs
// Version 2.1b
// ~Credits: CDWhistler, for making dustcalc so I could copy the code, therefore making this file a piece of cake to create.
// Also, I'd like to thank burritos, because they taste so good. And root beer, because that tastes good too, especially with burritos
//Note: There may be scraps of totally worthless code in this, feel free to straighten them up if you're that way...
// Version History:
//
// Version 1.1
// Fixed a few problems
//
// Version 1.2
// Added the twelve hit points from $MinHP
//
// Version 2.0
// Added a cool new feature that allows the calculations to be sent in global.
//
// Version 2.1a
// Updated the previous feature to support any command.
//
// Version 2.1b
// Limited the previous feature to support only speech commands. (Sends a message signifying an invalid command error.)
// Cleaned up the script so it looks less shoddy.
//
//
//
//
// Instructions: Just stick this in tribes/config, and add exec("Hpcalc.cs"); to your autoexec.
//
//
//
//
// @2008 Troggie
// Okay, so I took CDWhistler's dustcalc code, as you can probably see, and changed it into a max hit points calculator.
// The code belongs to him, and he deserves just about all the credit as I am a noob scripter and would not have been able to do this without his work.
//------------------------------------------------------------------------------------------------------------------------
//
//Calculates how much hp you will have at x remort and x level.
$publichpcalculator = 1; // change this to 0 to turn it off, 1 to turn it on. Duh.
$pubcalctimer2 = 0;
Event::Attach(eventClientMessage, CD::hpCalcMsg);
function CD::hpCalcMsg(%client, %msg) {
if(%client)
$lastClientMessage = %client;
else {
if($publichpcalculator == 1 && $pubcalctimer2 == 0) {
%pubhpcalcy = Match::String(%msg, "You say, \"* HP at RL *, LVL *\"");
if(%pubhpcalcy) {
$pubcalctimer2 = 1;
%person = Client::GetName(GetManagerID());
%TypeofSpeech = Match::Result(0);
%PlayerRemort = Match::Result(1);
%PlayerLevel = Match::Result(2);
if(%TypeofSpeech == "global" || %TypeofSpeech == "zone" || %TypeofSpeech == "shout" || %TypeofSpeech == "say" || %TypeofSpeech == "whisper" || %TypeofSpeech == "tell" || %TypeofSpeech == "group")
Schedule("showhpmax(" @ %PlayerRemort @ "," @ %PlayerLevel @ ",\"" @ %TypeofSpeech @ " " @ %person @ ",\");", 1.0);
else {
Schedule("Say(0, \"#tell " @ %person @ ", Sorry, '" @ %TypeofSpeech @ "' is not a valid speech command. Please use global, zone, shout, say, whisper, tell, or group.\");", 1.0);
}
Schedule("$pubcalctimer2 = 0;", 4.0);
return;
}
%pubhpcalc = Match::String(%msg, "[li] * \"* HP at RL *, LVL *\"");
if(%pubhpcalc) {
$pubcalctimer2 = 1;
%person = Match::Result(1);
%TypeofSpeech = Match::Result(2);
%PlayerRemort = Match::Result(3);
%PlayerLevel = Match::Result(4);
if(%TypeofSpeech == "global" || %TypeofSpeech == "zone" || %TypeofSpeech == "shout" || %TypeofSpeech == "say" || %TypeofSpeech == "whisper" || %TypeofSpeech == "tell" || %TypeofSpeech == "group")
Schedule("showhpmax(" @ %PlayerRemort @ "," @ %PlayerLevel @ ",\"" @ %TypeofSpeech @ " " @ %person @ ",\");", 1.0);
else {
Schedule("Say(0, \"#tell " @ %person @ ", Sorry, '" @ %TypeofSpeech @ "' is not a valid speech command. Please use global, zone, shout, say, whisper, tell, or group.\");", 1.0);
}
Schedule("$pubcalctimer2 = 0;", 4.0);
return;
}
%pubhpcalcs = Match::String(%msg, "* says, \"* HP at RL *, LVL *\"");
if(%pubhpcalcs) {
$pubcalctimer2 = 1;
%person = Match::Result(0);
%TypeOfSpeech = Match:Result(1);
%PlayerRemort = Match::Result(2);
%PlayerLevel = Match::Result(3);
if(%TypeofSpeech == "global" || %TypeofSpeech == "zone" || %TypeofSpeech == "shout" || %TypeofSpeech == "say" || %TypeofSpeech == "whisper" || %TypeofSpeech == "tell" || %TypeofSpeech == "group")
Schedule("showhpmax(" @ %PlayerRemort @ "," @ %PlayerLevel @ ",\"" @ %TypeofSpeech @ " " @ %person @ ",\");", 1.0);
else {
Schedule("Say(0, \"#tell " @ %person @ ", Sorry, '" @ %TypeofSpeech @ "' is not a valid speech command. Please use global, zone, shout, say, whisper, tell, or group.\");", 1.0);
}
Schedule("$pubcalctimer2 = 0;", 4.0);
return;
}
%pubhpcalct = Match::String(%msg, "* tells you, \"* HP at RL *, LVL *\"");
if(%pubhpcalct) {
$pubcalctimer2 = 1;
%person = Match::Result(0);
%TypeOfSpeech = Match::Result(1);
%PlayerRemort = Match::Result(2);
%PlayerLevel = Match::Result(3);
if(%TypeofSpeech == "global" || %TypeofSpeech == "zone" || %TypeofSpeech == "shout" || %TypeofSpeech == "say" || %TypeofSpeech == "whisper" || %TypeofSpeech == "tell" || %TypeofSpeech == "group")
Schedule("showhpmax(" @ %PlayerRemort @ "," @ %PlayerLevel @ ",\"" @ %TypeofSpeech @ " " @ %person @ ",\");", 1.0);
else {
Schedule("Say(0, \"#tell " @ %person @ ", Sorry, '" @ %TypeofSpeech @ "' is not a valid speech command. Please use global, zone, shout, say, whisper, tell, or group.\");", 1.0);
}
Schedule("$pubcalctimer2 = 0;", 4.0);
return;
}
}
}
}
function showhpmax(%RemortLevel,%Level,%say) {
if(%say == "") {
%say = "say";
}
%RemortLevel = floor(%RemortLevel);
%Level = floor(%Level);
if(%RemortLevel < 0) %RemortLevel = 0;
if(%Level < 0) %Level = 0;
if(%RemortLevel > 250000) %RemortLevel = 250000;
if(%Level > 1500) %Level = 1500;
%Skillcaps = (%Level * 10) + %RemortLevel + 20;
%RL = (%RemortLevel * %Skillcaps) / 8;
%LVL = (%Skillcaps * 0.6) + %Level;
%MaxHitpoints = round(%RL + %LVL + 12);
say(0, "#" @ %say @ " At remort level " @ %RemortLevel @ ", Level " @ %Level @ " You will have about " @ %MaxHitpoints @ " Hit points with maxed endurance.");
}