mirror of
https://github.com/PhantomGamesDevelopment/TWM2.git
synced 2026-03-10 16:00:44 +00:00
Fixed Trevor's Internal Tags, Implemented New Challenge Menu Code
Fixed the internal tags for Lordranius Trevor, Grapple Hook balance, round 2, implemented automenu system for challenges (No more mega files, yay!)
This commit is contained in:
parent
fee3eb044b
commit
b316f2fdbe
16 changed files with 1031 additions and 2211 deletions
|
|
@ -370,75 +370,4 @@ function serverCmdScopeCommanderMap(%client, %scope)
|
|||
%client.scopeCommanderMap(%scope);
|
||||
|
||||
commandToClient(%client, 'ScopeCommanderMap', %scope);
|
||||
}
|
||||
|
||||
//From Battlelord:
|
||||
function GetHigherNumber(%num1, %num2) {
|
||||
//Are they equal?
|
||||
if(%num1 == %num2) {
|
||||
return %num1;
|
||||
}
|
||||
else if(%num1 > %num2) {
|
||||
return %num1;
|
||||
}
|
||||
else {
|
||||
return %num2;
|
||||
}
|
||||
}
|
||||
|
||||
//EXP
|
||||
function getMaxGainedEXP(%client) {
|
||||
if($MaxGainable $= "") {
|
||||
%num1 = $TWM2::BossXPAward["Yvex"];
|
||||
%num2 = $TWM2::BossXPAward["CnlWindshear"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["GhostOfLightning"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Vengenor"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["LordRog"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Insignia"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Stormrider"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Trebor"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["GhostOfFire"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Vardison3"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
$MaxGainable = %num1;
|
||||
}
|
||||
else {
|
||||
%num1 = $TWM2::BossXPAward["Yvex"];
|
||||
%num2 = $TWM2::BossXPAward["CnlWindshear"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["GhostOfLightning"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Vengenor"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["LordRog"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Insignia"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Stormrider"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Trebor"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["GhostOfFire"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
%num2 = $TWM2::BossXPAward["Vardison3"];
|
||||
%num1 = GetHigherNumber(%num1, %num2);
|
||||
//Sirens!!! We have a hack in!
|
||||
//Close the server and inform Phantom139
|
||||
if($MaxGainable != %num1) {
|
||||
MessageAll('MsgAlert', "\c5TWM2: Server Hack-In Detected, Max EXP Has been Tampered. ~wfx/misc/red_alert.wav");
|
||||
MessageAll('MsgAlert', "\c5TWM2: This server is forced to Satellite Mode, all EXP Gain has been canceled.");
|
||||
MessageAll('MsgAlert', "\c5TWM2: An E-Mail has been dispatched to \c3Phantom139\c5 Server Shutdown in 5 Seconds.");
|
||||
schedule(5000, 0, "DestroyServer");
|
||||
schedule(8000, 0, "Quit");
|
||||
}
|
||||
}
|
||||
return %num1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue