IF
    InParty(Myself)
    Global("QuillornTimerStarted","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("QuillornTimerStarted","LOCALS",1)
        RealSetGlobalTimer("QuillornManiaTimer","GLOBAL",1800) // 30 minut gry
END

IF
    InParty(Myself)
    See(Player1)
    !StateCheck(Player1,CD_STATE_NOTVALID)
    !StateCheck(Myself,CD_STATE_NOTVALID)
    CombatCounter(0)
    Global("QuillornManiaTalk","GLOBAL",0)
    RealGlobalTimerExpired("QuillornManiaTimer","GLOBAL")
THEN
    RESPONSE #100
        SetGlobal("QuillornManiaTalk","GLOBAL",1)
        StartDialogue("NELLJ",Player1)
END

IF
    InParty(Myself)
    Global("QuillornManiaTalk","GLOBAL",2)
    Global("QuillornDepressionTimerStarted","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("QuillornDepressionTimerStarted","LOCALS",1)
        RealSetGlobalTimer("QuillornDepressionTimer","GLOBAL",2400) // 40 minut po manii
END

IF
    InParty(Myself)
    See(Player1)
    !StateCheck(Player1,CD_STATE_NOTVALID)
    !StateCheck(Myself,CD_STATE_NOTVALID)
    CombatCounter(0)
    Global("QuillornManiaTalk","GLOBAL",2)
    Global("QuillornAskingHealth","GLOBAL",0)
    RealGlobalTimerExpired("QuillornDepressionTimer","GLOBAL")
THEN
    RESPONSE #100
        SetGlobal("QuillornAskingHealth","GLOBAL",1)
        StartDialogue("NELLJ2",Player1)
END

IF
    InParty("Quilorn")
    Global("QuilornWasInParty","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("QuilornWasInParty","LOCALS",1)
END

IF
    !InParty("QUILORN")
    Global("QuilornWasInParty","LOCALS",1)
    Global("QuilornKickedOut","LOCALS",0)
THEN
    RESPONSE #100
        SetGlobal("QuilornKickedOut","LOCALS",1)
        StartDialogue("NELLP",Player1)
END