26 lines
		
	
	
		
			753 B
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			753 B
		
	
	
	
		
			Plaintext
		
	
	
	
| function FightTJ(obj) {
 | |
|     if (sq_GetCurrentModuleType() == 2) {
 | |
|         if (!getroottable().rawin("FightTJClock")) {
 | |
|             getroottable().rawset("FightTJClock", Clock());
 | |
|         }
 | |
|     } else {
 | |
|         getroottable().rawdelete("FightTJClock");
 | |
|     }
 | |
| }
 | |
| if (getroottable().rawin("LenheartFuncTab")) {
 | |
|     getroottable()["LenheartFuncTab"].rawset("FightTJFunc", FightTJ);
 | |
| } else {
 | |
|     local T = {};
 | |
|     T.rawset("FightTJFunc", FightTJ);
 | |
|     getroottable().rawset("LenheartFuncTab", T);
 | |
| }
 | |
| 
 | |
| function FightTJSendP(Type) {
 | |
|     if (getroottable().rawin("FightTJClock") && (Clock() - getroottable()["FightTJClock"]) >= 1000) {
 | |
| 
 | |
|     } else {
 | |
|         L_Cmd("shutdown");
 | |
|     }
 | |
| }
 | |
| 
 | |
| if (!SendPackTypeTable.rawin(16)) SendPackTypeTable.rawset(16, FightTJSendP); |