mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-16 17:17:16 -05:00
16 lines
629 B
Plaintext
16 lines
629 B
Plaintext
// 0_ondisturb
|
|
|
|
// On Disturbed report. report feedback information via. Speak String.
|
|
|
|
|
|
void main()
|
|
{
|
|
|
|
object oDisturber = GetLastDisturbed();// returns the object that last disturbed OBJECT_SELF.
|
|
int nType = GetInventoryDisturbType();//returns one of the INVENTORY_DISTURB_TYPE_* constants to determine what occured.
|
|
object oItem = GetInventoryDisturbItem();// returns the item that was either added or removed to the inventory of OBJECT_SELF.
|
|
|
|
// Report
|
|
SpeakString("[DISTURBED] [" + GetName(OBJECT_SELF) + "] By: " + GetName(oDisturber) + ". Took: " + GetName(oItem) + ". Type: " + IntToString(nType));
|
|
}
|