Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
17
_module/nss/trap_on_acquire.nss
Normal file
17
_module/nss/trap_on_acquire.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
//Filename: trap_on_acquire
|
||||
//Usage:
|
||||
// Trap companion script for CEP traps...for finding traps.
|
||||
|
||||
#include "zep_inc_scrptdlg"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oItem = GetModuleItemAcquired();
|
||||
object oPC = GetModuleItemAcquiredFrom();
|
||||
if((GetBaseItemType(oItem)==BASE_ITEM_TRAPKIT)&&(GetItemPossessor(oItem)==oPC))
|
||||
{
|
||||
//recovered a trap?
|
||||
string sMessageToPC=GetStringByStrRef(nZEPTrapFind,GENDER_MALE);
|
||||
SendMessageToPC(oPC,sMessageToPC+GetName(GetNearestTrapToObject(oPC)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user