mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-12 23:45:12 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
package script.systems.cw_data;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
public class cluster_wide_response_manager extends script.base_script
|
||||
{
|
||||
public cluster_wide_response_manager()
|
||||
{
|
||||
}
|
||||
public int OnClusterWideDataResponse(obj_id self, String manage_name, String name, int request_id, String[] element_name_list, dictionary[] dungeon_data, int lock_key) throws InterruptedException
|
||||
{
|
||||
LOG("doLogging", "Recieved CWData. Name = " + name);
|
||||
if (name.startsWith("restuss_event"))
|
||||
{
|
||||
obj_id restuss_event_controller = dungeon_data[0].getObjId("dungeon_id");
|
||||
messageTo(restuss_event_controller, "beginSpawning", null, 1, false);
|
||||
releaseClusterWideDataLock(manage_name, lock_key);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
detachScript(self, "systems.cw_data.cluster_wide_response_manager");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
trigger OnClusterWideDataResponse(string manage_name, string name, int request_id, string[] element_name_list, dictionary[] dungeon_data, int lock_key)
|
||||
{
|
||||
LOG("doLogging", "Recieved CWData. Name = "+name);
|
||||
if (name.startsWith("restuss_event"))
|
||||
{
|
||||
obj_id restuss_event_controller = dungeon_data[0].getObjId("dungeon_id");
|
||||
messageTo(restuss_event_controller, "beginSpawning", null, 1, false);
|
||||
|
||||
releaseClusterWideDataLock(manage_name, lock_key);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
|
||||
detachScript(self, "systems.cw_data.cluster_wide_response_manager");
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
Reference in New Issue
Block a user