Files
dsrc/sku.0/sys.server/compiled/game/script/hnguyen/cwdm_test2.java
T
2018-06-07 00:32:29 +01:00

32 lines
1.4 KiB
Java
Executable File

package script.hnguyen;
import script.dictionary;
import script.obj_id;
public class cwdm_test2 extends script.base_script
{
public cwdm_test2()
{
}
public int OnHearSpeech(obj_id self, obj_id objSpeaker, String strText) throws InterruptedException
{
if (strText.equals("cwdm_doit"))
{
LOG("***HUY***", "OnHearSpeech() initiating cluster wide data test");
int requestId = getClusterWideData("dungeon", "Corellian Corvette - Instance 1", true, self);
LOG("***HUY***", "getClusterWideData() to lock data for initial registration returned request Id (" + requestId + ")");
}
return SCRIPT_CONTINUE;
}
public int OnClusterWideDataResponse(obj_id self, String strManagerName, String strElementNameRegex, int requestID, String[] elementNameList, dictionary[] dictionaryList, int lockKey) throws InterruptedException
{
LOG("***HUY***", "OnClusterWideDataResponse() manager name (" + strManagerName + ") element name regex (" + strElementNameRegex + ") request id (" + requestID + ") match count (" + elementNameList.length + ") lock key (" + lockKey + ")");
for (int i = 0; i < elementNameList.length; ++i)
{
LOG("***HUY***", "element " + (i + 1) + " is (" + elementNameList[i] + ")");
LOG("***HUY***", "dictionary " + dictionaryList[i].toString());
}
return SCRIPT_CONTINUE;
}
}