//////////////////////////////////////////////////////////////////////////////// // Real Time Strategy =- NWN - Sludge Factory - Turn off/on //============================================================================== // By Deva Bryson Winblood. 3/11/2003 //////////////////////////////////////////////////////////////////////////////// void main() { object oPC=GetLastUsedBy(); string sID=GetLocalString(oPC,"sTeamID"); int nOn=GetLocalInt(OBJECT_SELF,"nOn"); if (sID=="UNC") { // unclean if (nOn==TRUE) { // turn off SendMessageToPC(oPC,"You turn the Sludge factory off"); SetLocalInt(OBJECT_SELF,"nOn",FALSE); } // turn off else { // turn on SendMessageToPC(oPC,"You turn the Sludge factory on"); SetLocalInt(OBJECT_SELF,"nOn",TRUE); } // turn on } // unclean else SendMessageToPC(oPC,"You don't understand what this strange goblin device is yet alone how to use it. It is also really disgusting and you do not want to touch it."); }