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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("QuFriendTalkTime","GLOBAL")
Global("QuFriendTalk","GLOBAL",0)
See("Player1") !StateCheck("Quayle",STATE_SLEEPING) 
THEN
RESPONSE #100
IncrementGlobal("QuFriendTalk","GLOBAL",1)
RealSetGlobalTimer("QuFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF 
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("QuFriendlyTalkTime","GLOBAL")
Global("QuFriendTalk","GLOBAL",1)
THEN
RESPONSE #100
IncrementGlobal("QuFriendTalk","GLOBAL",1)
RealSetGlobalTimer("QuFriendTalkTime","GLOBAL",18000)
END



