mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
29 lines
930 B
Java
Executable File
29 lines
930 B
Java
Executable File
package script.npe;
|
|
|
|
import script.library.npe;
|
|
import script.library.utils;
|
|
import script.obj_id;
|
|
import script.string_id;
|
|
|
|
public class npe_notify_map extends script.base_script
|
|
{
|
|
public npe_notify_map()
|
|
{
|
|
}
|
|
public int OnReceivedItem(obj_id self, obj_id srcContainer, obj_id transferer, obj_id item) throws InterruptedException
|
|
{
|
|
if (isPlayer(item))
|
|
{
|
|
if (!utils.hasScriptVar(item, "npe.map"))
|
|
{
|
|
obj_id building = getTopMostContainer(item);
|
|
obj_id droid = utils.getObjIdScriptVar(building, "objDroidInvis");
|
|
string_id popMap = new string_id("npe", "pop_map");
|
|
npe.commTutorialPlayer(droid, item, 8, popMap, "sound/c3po_46.snd", "object/mobile/c_3po.iff");
|
|
utils.setScriptVar(item, "npe.map", 1);
|
|
}
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
}
|