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

37 lines
1015 B
Java
Executable File

package script.poi.factoryliberation;
import script.dictionary;
import script.modifiable_float;
import script.obj_id;
public class pirate extends script.base_script
{
public pirate()
{
}
public static final String pirateEmotes[] =
{
"scratch",
"yawn",
"fidget",
"cough"
};
public int OnLoiterWaiting(obj_id self, modifiable_float time) throws InterruptedException
{
stop(self);
messageTo(self, "emotePirate", null, 4, false);
return SCRIPT_CONTINUE;
}
public int emotePirate(obj_id self, dictionary params) throws InterruptedException
{
int dosocial = rand(1, 4);
if (dosocial == 1)
{
int whichsocial = rand(0, 3);
queueCommand(self, (1780871594), null, pirateEmotes[whichsocial], COMMAND_PRIORITY_DEFAULT);
}
messageTo(self, "resumeDefaultCalmBehavior", null, 3, false);
return SCRIPT_CONTINUE;
}
}