temp.txt deleted online with Bitbucket

This commit is contained in:
Alan Elliott
2018-03-23 16:29:56 -07:00
committed by CekisSWG
parent f52aebcfb1
commit a72a84cef8
82556 changed files with 4633262 additions and 4288 deletions
@@ -0,0 +1,41 @@
package script.data_item;
import script.library.loot;
import script.obj_id;
import script.string_id;
public class dropoff extends script.item.container.add_only
{
public dropoff()
{
}
public static final string_id SID_DATA_ONLY = new string_id("error_message", "data_only");
public int OnAboutToReceiveItem(obj_id self, obj_id srcContainer, obj_id transferer, obj_id item) throws InterruptedException
{
if (isPlayer(transferer) && !loot.isFactionalDataItem(item)){
sendSystemMessage(transferer, SID_DATA_ONLY);
return SCRIPT_OVERRIDE;
}
return SCRIPT_CONTINUE;
}
public int OnReceivedItem(obj_id self, obj_id srcContainer, obj_id transferer, obj_id item) throws InterruptedException
{
if (isPlayer(transferer) && loot.isFactionalDataItem(item)){
if (!loot.redeemFactionCoupon(getContainedBy(self), transferer, item))
{
debugSpeakMsg(transferer, "redeem failed: returning coupon to source container!");
putIn(item, srcContainer);
}
return SCRIPT_CONTINUE;
}
return SCRIPT_CONTINUE;
}
public int OnClosedContainer(obj_id self, obj_id who) throws InterruptedException
{
obj_id[] contents = getContents(self);
for (obj_id content : contents) {
destroyObject(content);
}
return SCRIPT_CONTINUE;
}
}