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("TiLowReputation","GLOBAL",0)
Global("TiMedReputation","GLOBAL",0)
Global("TiHighReputation","GLOBAL",0)
Global("TiBhaal","GLOBAL",0)
Global("TiLeader","GLOBAL",0)
Global("TiFriendTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("TiFriendTalkTime","GLOBAL",1800)
SetGlobal("TiFriendTimerStarted","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("TiFriendTalkTime","GLOBAL")
Global("TiLeader","GLOBAL",0)
THEN
RESPONSE #100
IncrementGlobal("TiLeader","GLOBAL",1)
RealSetGlobalTimer("TiLeaderTime","GLOBAL",10)
Interact(Player1)
END

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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("TiFriendTalkTime","GLOBAL")
Global("KnowBhaal","GLOBAL",1)
Global("TiBhaal","GLOBAL",0)
THEN
RESPONSE #100
IncrementGlobal("TiBhaal","GLOBAL",1)
RealSetGlobalTimer("TiBhaalTime","GLOBAL",10)
Interact(Player1)
END

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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("TiFriendTalkTime","GLOBAL")
ReputationLT(Player1,6)
Global("TiLowReputation","GLOBAL",0)
!Global("TiMedReputation","GLOBAL",2)
!Global("TiHighReputation","GLOBAL",2)
THEN
RESPONSE #100
IncrementGlobal("TiLowReputation","GLOBAL",1)
RealSetGlobalTimer("TiLowReputationTime","GLOBAL",10)
Interact(Player1)
END

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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("TiFriendTalkTime","GLOBAL")
!ReputationLT(Player1,6) !ReputationGT(Player1,18)
!Global("TiLowReputation","GLOBAL",2)
Global("TiMedReputation","GLOBAL",0)
!Global("TiHighReputation","GLOBAL",2)
THEN
RESPONSE #100
IncrementGlobal("TiMedReputation","GLOBAL",1)
RealSetGlobalTimer("TiMedReputationTime","GLOBAL",10)
Interact(Player1)
END

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

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
RealGlobalTimerExpired("TiFriendTalkTime","GLOBAL")
ReputationGT(Player1,18)
!Global("TiLowReputation","GLOBAL",2)
!Global("TiMedReputation","GLOBAL",2)
Global("TiHighReputation","GLOBAL",0)
THEN
RESPONSE #100
IncrementGlobal("TiHighReputation","GLOBAL",1)
RealSetGlobalTimer("TiHighReputationTime","GLOBAL",10)
Interact(Player1)
END

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

//Ajantis quarel
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
InParty("Ajantis")
See("Ajantis")
RealGlobalTimerExpired("DreamTalk","GLOBAL")
Global("TIAJ2","LOCALS",0)
PartyRested()
THEN
RESPONSE #100
SetGlobal("TIAJ2","LOCALS",1)
RealSetGlobalTimer("TiaxAjantis","GLOBAL",10)
Interact(Player1)
END

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



