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("JaPCTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("JaFriendTalkTime","GLOBAL",1800)
SetGlobal("JaPCTimerStarted","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
CombatCounter(0)
Global("JaFriendTalk","GLOBAL",0)
GlobalLT("X#IMGBody","GLOBAL",3)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself)
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
Global("JaFriendTalk","GLOBAL",0)
!GlobalLT("X#IMGBody","GLOBAL",3)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",2)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
CombatCounter(0)
Global("JaFriendTalk","GLOBAL",2)
InParty("KHALID")
See("KHALID")
!StateCheck("KHALID",STATE_SLEEPING)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END

IF
InParty(Myself)
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
Global("JaFriendTalk","GLOBAL",2)
!InParty("KHALID")
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",2)
END


IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("JaFriendlyTalkTime","GLOBAL")
OR(3)
Global("JaFriendTalk","GLOBAL",1)
Global("JaFriendTalk","GLOBAL",3)
Global("JaFriendTalk","GLOBAL",5)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendTalkTime","GLOBAL",18000)
END


IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
Global("KnowBhaal","GLOBAL",1)
Global("JaFriendTalk","GLOBAL",4)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END




