mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
21 lines
665 B
Plaintext
21 lines
665 B
Plaintext
//inlcudes
|
|
include library.utils;
|
|
include library.space_utils;
|
|
include library.npe;
|
|
|
|
trigger OnReceivedItem(obj_id srcContainer, obj_id transferer, obj_id item)
|
|
{
|
|
if(isPlayer(item))
|
|
{
|
|
if(!utils.hasScriptVar(item, "npe.pop_clone"))
|
|
{
|
|
string_id popClone = new string_id("npe", "pop_clone");
|
|
obj_id building = getTopMostContainer(item);
|
|
obj_id droid = utils.getObjIdScriptVar(building, "objDroidInvis");
|
|
//space_utils.tauntPlayerWithSound(item, droid, popClone, "");
|
|
npe.commTutorialPlayer(droid, item, 8, popClone, "sound/c3po_24.snd", "object/mobile/c_3po.iff");
|
|
utils.setScriptVar(item, "npe.pop_clone", 1);
|
|
}
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
} |