Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
24
_module/nss/plc_inf_ondistur.nss
Normal file
24
_module/nss/plc_inf_ondistur.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "sql_inc"
|
||||
#include "chr_inc"
|
||||
#include "dbg_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object chest = OBJECT_SELF;
|
||||
object item = GetInventoryDisturbItem();
|
||||
int type = GetInventoryDisturbType();
|
||||
object pc = GetLastDisturbed();
|
||||
|
||||
|
||||
if (type == INVENTORY_DISTURB_TYPE_ADDED)
|
||||
{
|
||||
CopyItem(item, pc, TRUE);
|
||||
DestroyObject(item);
|
||||
SendMessageToPC(pc, "Please do not put anything in these chests");
|
||||
}
|
||||
else if (type == INVENTORY_DISTURB_TYPE_REMOVED)
|
||||
{
|
||||
CopyItem(item, chest, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user