IF
PartyHasItem("CLCK05")
Global("Baldurian","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("Baldurian","GLOBAL",3)
END

IF
Global("Chapter","GLOBAL",7)
!Exists("zizi1")
!Exists("zizi2")
!Exists("zizi3")
!Exists("zizi4")
Global("ZiziExists","GLOBAL",0)
   THEN
   RESPONSE #100
    SetGlobal("ZiziExists","GLOBAL",1)
   CreateCreature("X#HARL1",[587.415],0) //1st location
   CreateCreature("X#HARL2",[2205.376],0) //2nd location
   CreateCreature("X#HARL3",[2164.1607],0) //3rd location
   CreateCreature("X#HARL4",[524.1579],0) //4th location
 END
 
 IF
 InParty("Xzar")
Global("XzarSlime","GLOBAL",1)
THEN
   RESPONSE #100
   SetGlobal("XzarSlime","GLOBAL",2)
   ActionOverride("xzar",StartDialogueNoSet(Player1))
END
 
//1st location

IF
Global("Chapter","GLOBAL",7)
   InParty("xzar")
   Global("SlimeCraze","GLOBAL",1)
   Global("TalkedToZizi","GLOBAL",1)
   !Exists("xzslime")
THEN
RESPONSE #100
   RealSetGlobalTimer("SlimeMultiple","GLOBAL",10)
   SetGlobal("SlimeCraze","GLOBAL",2)
   CreateCreature("X#slime",[587.415],0)
   CreateCreature("X#JELLY",[587.420],0)
   CreateCreature("X#JELLY",[587.410],0)
   CreateCreature("X#JELLY",[587.405],0)
END

IF
Global("TalkedToZizi","GLOBAL",1)
RealGlobalTimerExpired("SlimeMultiple","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",2)
Global("SlimeCraze","GLOBAL",4)
Global("SlimeCraze","GLOBAL",6)
Global("SlimeCraze","GLOBAL",8)
Global("SlimeCraze","GLOBAL",10)
!Dead("xzslime")
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMult","GLOBAL",1)
IncrementGlobal("SlimeCraze","GLOBAL",1)
CreateCreature("X#JELLY",[587.415],0)
ActionOverride("harlot",Attack("xzjelly"))
END

IF
Global("TalkedToZizi","GLOBAL",1)
RealGlobalTimerExpired("SlimeMult","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",3)
Global("SlimeCraze","GLOBAL",5)
Global("SlimeCraze","GLOBAL",7)
Global("SlimeCraze","GLOBAL",9)
Global("SlimeCraze","GLOBAL",11)
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMultiple","GLOBAL",30)
IncrementGlobal("SlimeCraze","GLOBAL",1)
END

//2nd location
IF
Global("Chapter","GLOBAL",7)
   InParty("xzar")
   Global("SlimeCraze","GLOBAL",1)
   Global("TalkedToZizi","GLOBAL",2)
   !Exists("xzslime")
THEN
RESPONSE #100
   RealSetGlobalTimer("SlimeMultiple","GLOBAL",10)
   SetGlobal("SlimeCraze","GLOBAL",2)
   CreateCreature("X#slime",[2205.376],0)
   CreateCreature("X#JELLY",[2205.376],0)
   CreateCreature("X#JELLY",[2205.376],0)
   CreateCreature("X#JELLY",[2205.376],0)
END

IF
Global("TalkedToZizi","GLOBAL",2)
RealGlobalTimerExpired("SlimeMultiple","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",2)
Global("SlimeCraze","GLOBAL",4)
Global("SlimeCraze","GLOBAL",6)
Global("SlimeCraze","GLOBAL",8)
Global("SlimeCraze","GLOBAL",10)
!Dead("xzslime")
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMult","GLOBAL",1)
IncrementGlobal("SlimeCraze","GLOBAL",1)
CreateCreature("X#JELLY",[2205.376],0)
ActionOverride("harlot",Attack("xzjelly"))
END

IF
Global("TalkedToZizi","GLOBAL",2)
RealGlobalTimerExpired("SlimeMult","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",3)
Global("SlimeCraze","GLOBAL",5)
Global("SlimeCraze","GLOBAL",7)
Global("SlimeCraze","GLOBAL",9)
Global("SlimeCraze","GLOBAL",11)
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMultiple","GLOBAL",30)
IncrementGlobal("SlimeCraze","GLOBAL",1)
END

//3rd location
IF
Global("Chapter","GLOBAL",7)
   InParty("xzar")
   Global("SlimeCraze","GLOBAL",1)
   Global("TalkedToZizi","GLOBAL",3)
   !Exists("xzslime")
THEN
RESPONSE #100
   RealSetGlobalTimer("SlimeMultiple","GLOBAL",10)
   SetGlobal("SlimeCraze","GLOBAL",2)
   CreateCreature("X#slime",[2164.1607],0)
   CreateCreature("X#slime",[2164.1607],0)
   CreateCreature("X#slime",[2164.1607],0)
   CreateCreature("X#slime",[2164.1607],0)
END

IF
Global("TalkedToZizi","GLOBAL",3)
RealGlobalTimerExpired("SlimeMultiple","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",2)
Global("SlimeCraze","GLOBAL",4)
Global("SlimeCraze","GLOBAL",6)
Global("SlimeCraze","GLOBAL",8)
Global("SlimeCraze","GLOBAL",10)
!Dead("xzslime")
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMult","GLOBAL",1)
IncrementGlobal("SlimeCraze","GLOBAL",1)
CreateCreature("X#JELLY",[2164.1607],0)
CreateCreature("X#JELLY",[2164.1607],0)
ActionOverride("harlot",Attack("xzjelly"))
END

IF
Global("TalkedToZizi","GLOBAL",3)
RealGlobalTimerExpired("SlimeMult","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",3)
Global("SlimeCraze","GLOBAL",5)
Global("SlimeCraze","GLOBAL",7)
Global("SlimeCraze","GLOBAL",9)
Global("SlimeCraze","GLOBAL",11)
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMultiple","GLOBAL",10)
IncrementGlobal("SlimeCraze","GLOBAL",1)
END

//4th location
IF
Global("Chapter","GLOBAL",7)
   InParty("xzar")
   Global("SlimeCraze","GLOBAL",1)
   Global("TalkedToZizi","GLOBAL",4)
   !Exists("xzslime")
THEN
RESPONSE #100
   RealSetGlobalTimer("SlimeMultiple","GLOBAL",5)
   SetGlobal("SlimeCraze","GLOBAL",2)
   CreateCreature("X#slime",[524.1579],0)
   CreateCreature("X#slime",[524.1579],0)
   CreateCreature("X#slime",[524.1579],0)
   CreateCreature("X#slime",[524.1579],0)
END

IF
Global("TalkedToZizi","GLOBAL",4)
RealGlobalTimerExpired("SlimeMultiple","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",2)
Global("SlimeCraze","GLOBAL",4)
Global("SlimeCraze","GLOBAL",6)
Global("SlimeCraze","GLOBAL",8)
Global("SlimeCraze","GLOBAL",10)
!Dead("xzslime")
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMult","GLOBAL",1)
IncrementGlobal("SlimeCraze","GLOBAL",1)
CreateCreature("X#JELLY",[524.1579],0)
CreateCreature("X#JELLY",[524.1579],0)
ActionOverride("harlot",Attack("xzjelly"))
END

IF
Global("TalkedToZizi","GLOBAL",4)
RealGlobalTimerExpired("SlimeMult","GLOBAL")
OR(5)
Global("SlimeCraze","GLOBAL",3)
Global("SlimeCraze","GLOBAL",5)
Global("SlimeCraze","GLOBAL",7)
Global("SlimeCraze","GLOBAL",9)
Global("SlimeCraze","GLOBAL",11)
THEN
RESPONSE #100
RealSetGlobalTimer("SlimeMultiple","GLOBAL",10)
IncrementGlobal("SlimeCraze","GLOBAL",1)
END

IF
PartyHasItem("misc78")
InParty("xzar")
Global("XzUnder","GLOBAL",0)
OR(6)
InLine("xzslime","xzar")
InLine("xzjelly","xzar")
InLine("zizi1","xzar")
InLine("zizi2","xzar")
InLine("zizi3","xzar")
InLine("zizi4","xzar")
THEN
   RESPONSE #100
   SetGlobal("XzUnder","GLOBAL",1)
   ActionOverride("Xzar",StartDialogueNoSet(Player1)
END
