#include "NW_O2_CONINCLUDE" #include "NW_I0_GENERIC" void main() { object oPlayer=GetEnteringObject(); object oBarmaid=GetObjectByTag("CF_BARMAID"); object oSitter01=GetObjectByTag("CF_PATRON",0); object oSitter02=GetObjectByTag("CF_PATRON",1); object oSitter03=GetObjectByTag("CF_PATRON",2); // Start barmaid if (GetLocalInt(oBarmaid, "BARMAID_STATE")==0 && GetIsObjectValid(oBarmaid)) SignalEvent(oBarmaid, EventUserDefined(7000)); //Grab a seat if you dont have one if (GetIsObjectValid(oSitter01)) SignalEvent(oSitter01, EventUserDefined(7001)); if (GetIsObjectValid(oSitter02)) SignalEvent(oSitter02, EventUserDefined(7001)); if (GetIsObjectValid(oSitter03)) SignalEvent(oSitter03, EventUserDefined(7001)); if(!GetIsPC(oPlayer)) return; else { if(GetLocalInt(oPlayer, "lv_dwregular")!=1) return; if (GetIsObjectValid(oSitter01)) AssignCommand(oSitter01, SpeakString(GetName(oPlayer) + " !")); if (GetIsObjectValid(oSitter02)) AssignCommand(oSitter02, SpeakString("Look who it is!")); if (GetIsObjectValid(oSitter03)) AssignCommand(oSitter03, SpeakString(GetName(oPlayer) + "... come buy me a drink !")); } }