mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-07-16 07:14:32 +00:00
Updated script
This commit is contained in:
parent
120fd5a19b
commit
4c0f51b22b
1 changed files with 29 additions and 17 deletions
|
|
@ -14,22 +14,34 @@ function tsExtensionLoop()
|
||||||
$TSExtension::LastUpdateHandle = schedule(32,0,"tsExtensionLoop");
|
$TSExtension::LastUpdateHandle = schedule(32,0,"tsExtensionLoop");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$TSExtension::isActive)
|
package TSExtension
|
||||||
loadMod("TSExtension");
|
|
||||||
tsExtensionLoop();
|
|
||||||
|
|
||||||
// Test
|
|
||||||
function Whatever::onSocketCreationFailed(%this){ error("Failed to create Socket"); }
|
|
||||||
function Whatever::onConnectFailed(%this, %wsaError){ error(%wsaError); }
|
|
||||||
function Whatever::onConnected(%this){ echo("GOOD"); }
|
|
||||||
function Whatever::onDNSFailed(%this){ error("DNS Failed"); }
|
|
||||||
function Whatever::onDisconnect(%this){ echo("Disconnected"); }
|
|
||||||
|
|
||||||
function Whatever::onLine(%this, %line)
|
|
||||||
{
|
{
|
||||||
echo(%line);
|
function LoginDlg::onWake(%this)
|
||||||
%this.buffer = %this.buffer @ %line;
|
{
|
||||||
|
parent::onWake(%this);
|
||||||
|
|
||||||
//if (trim(%line) $= "")
|
if (!$TSExtension::isActive)
|
||||||
// %this.altDisconnect();
|
{
|
||||||
}
|
loadMod("TSExtension");
|
||||||
|
schedule(2000,0,"tsExtensionLoop");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function GameGUI::onWake(%this)
|
||||||
|
{
|
||||||
|
parent::onWake(%this);
|
||||||
|
|
||||||
|
if (!$TSExtension::isActive)
|
||||||
|
{
|
||||||
|
//loadMod("TSExtension");
|
||||||
|
//schedule(2000,0,"tsExtensionLoop");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!isActivePackage(TSExtension))
|
||||||
|
activatePackage(TSExtension);
|
||||||
|
|
||||||
|
memPatch("005BD190","C3");
|
||||||
|
memPatch("005BD1F0","C3");
|
||||||
|
memPatch("005BD210","C3");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue