IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("DreamTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("DreamTalk","GLOBAL",180)
SetGlobal("DreamTimerStarted","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("DyPCTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("DyFriendTalkTime","GLOBAL",1800)
SetGlobal("DyPCTimerStarted","GLOBAL",1)
END


IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
!StateCheck(Player1,STATE_SLEEPING)
RealGlobalTimerExpired("DyFriendTalkTime","GLOBAL")
See(Player1)
CombatCounter(0)
OR(3)
Global("DyFriendTalk","GLOBAL",0)
Global("DyFriendTalk","GLOBAL",2)
Global("DyFriendTalk","GLOBAL",4)
THEN
RESPONSE #100
IncrementGlobal("DyFriendTalk","GLOBAL",1)
RealSetGlobalTimer("DyFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("DyFriendlyTalkTime","GLOBAL")
OR(3)
Global("DyFriendTalk","GLOBAL",1)
Global("DyFriendTalk","GLOBAL",3)
Global("DyFriendTalk","GLOBAL",5)
THEN
RESPONSE #100
RealSetGlobalTimer("DyFriendTalkTime","GLOBAL",3600)
IncrementGlobal("DyFriendTalk","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
!StateCheck(Player1,STATE_SLEEPING)
RealGlobalTimerExpired("DyFriendTalkTime","GLOBAL")
See(Player1)
CombatCounter(0)
Global("KnowBhaal","GLOBAL",1)
Global("DyFriendTalk","GLOBAL",6)
THEN
RESPONSE #100
IncrementGlobal("DyFriendTalk","GLOBAL",1)
RealSetGlobalTimer("DyFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("DyFriendlyTalkTime","GLOBAL")
Global("DyFriendTalk","GLOBAL",7)
THEN
RESPONSE #100
RealSetGlobalTimer("DyFriendTalkTime","GLOBAL",18000)
IncrementGlobal("DyFriendTalk","GLOBAL",1)
END

//DYBR1
IF
RealGlobalTimerExpired("DreamTalk","GLOBAL")
InParty(Myself) CombatCounter(0) !See([ENEMY])
InParty("MINSC")
InParty("BRANWEN")
Global("DYBR1","GLOBAL",0)
PartyRested()
THEN
RESPONSE #100
SetGlobal("DYBR1","GLOBAL",1)
RealSetGlobalTimer("DyFriendlyTalkTime","GLOBAL",10)
Interact("BRANWEN")
END

IF 
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("DyFriendlyTalkTime","GLOBAL")
Global("DYBR1","GLOBAL",1)
THEN
RESPONSE #100
IncrementGlobal("DYBR1","GLOBAL",1)
RealSetGlobalTimer("DreamTalk","GLOBAL",180)
END



