mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
21 lines
680 B
Plaintext
21 lines
680 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_objects"))
|
|
{
|
|
obj_id building = getTopMostContainer(item);
|
|
obj_id droid = utils.getObjIdScriptVar(building, "objDroidInvis");
|
|
string_id popObjects = new string_id("npe", "pop_objects");
|
|
//space_utils.tauntPlayerWithSound(item, droid, popObjects, "");
|
|
npe.commTutorialPlayer(droid, item, 5, popObjects, "sound/vo_c3po_9b.snd", "object/mobile/c_3po.iff");
|
|
utils.setScriptVar(item, "npe.pop_objects", 1);
|
|
}
|
|
}
|
|
return SCRIPT_CONTINUE;
|
|
} |