}
}
public void start(String event)
{
L2NpcInstance temp_npc = getNpc();
if(event.equals("Start"))
{
L2NpcInstance mc = addSpawn(MC, -56698, -56430, -2008, 32768);
Functions.npcSay(mc, TEXT[0]);
startQuestTimer("1", 30000, mc);
}
else if(TALKS.containsKey(event) && temp_npc != null)
{
String text = TALKS.get(event).text;
String nextEvent = TALKS.get(event).event;
int time = TALKS.get(event).time;
Functions.npcSay(temp_npc, text);
startQuestTimer(nextEvent, time, temp_npc);
}
else if(WALKS.containsKey(event) && temp_npc != null)
{
int x = WALKS.get(event).x;
int y = WALKS.get(event).y;
int z = WALKS.get(event).z;
String nextEvent = WALKS.get(event).event;
int time = WALKS.get(event).time;
temp_npc.moveToLocation(new Location(x, y, z), 0, true);
startQuestTimer(nextEvent, time, temp_npc);
}
else if(event.equals("6") && temp_npc != null)
{
Functions.npcSay(temp_npc, TEXT[6]);
temp_npc.moveToLocation(new Location(-56511, -56647, -2008, 36863), 0, true);
temp_npc.broadcastPacket(new PlaySound(1, "NS22_F", 0, 0, new Location()));
L2NpcInstance elf = addSpawn(singer1, -56344, -56328, -2008, 32768);
elf.moveToLocation(new Location(-56657, -56338, -2008, 33102), 0, true);
L2NpcInstance elf1 = addSpawn(singer2, -56552, -56245, -2008, 36863);
L2NpcInstance elf2 = addSpawn(singer2, -56546, -56426, -2008, 28672);
L2NpcInstance elf3 = addSpawn(singer2, -56570, -56473, -2008, 28672);
L2NpcInstance elf4 = addSpawn(singer2, -56594, -56516, -2008, 28672);
L2NpcInstance elf5 = addSpawn(singer2, -56580, -56203, -2008, 36863);
L2NpcInstance elf6 = addSpawn(singer2, -56606, -56157, -2008, 36863);
startQuestTimer("social1", 6000, elf);
startQuestTimer("social1", 6000, elf1);
startQuestTimer("social1", 6000, elf2);
startQuestTimer("social1", 6000, elf3);
startQuestTimer("social1", 6000, elf4);
startQuestTimer("social1", 6000, elf5);
startQuestTimer("social1", 6000, elf6);
startQuestTimer("7", 215000, temp_npc);
startQuestTimer("7", 215000, elf);
startQuestTimer("7", 215000, elf1);
startQuestTimer("7", 215000, elf2);
startQuestTimer("7", 215000, elf3);
startQuestTimer("7", 215000, elf4);
startQuestTimer("7", 215000, elf5);
startQuestTimer("7", 215000, elf6);
}
else if(event.equals("7") && temp_npc != null)
{
if(temp_npc.getNpcId() == MC)
{
Functions.npcSay(temp_npc, TEXT[7]);
temp_npc.moveToLocation(new Location(-56698, -56430, -2008, 32768), 0, true);
startQuestTimer("8", 12000, temp_npc);
}
else
{
//cancelQuestTimer("social1", npc, null);
temp_npc.moveToLocation(new Location(-56594, -56064, -2008), 0, true);
startQuestTimer("clean_npc", 9000, temp_npc);
}
}
else if(event.equals("10") && temp_npc != null)
{
temp_npc.moveToLocation(new Location(-56483, -56665, -2034), 0, true);
L2NpcInstance npc1 = addSpawn(circus1, -56495, -56375, -2008, 32768);
L2NpcInstance npc2 = addSpawn(circus1, -56491, -56289, -2008, 32768);
L2NpcInstance npc3 = addSpawn(circus2, -56502, -56246, -2008, 32768);
L2NpcInstance npc4 = addSpawn(circus2, -56496, -56429, -2008, 32768);
L2NpcInstance npc5 = addSpawn(circus3, -56505, -56334, -2008, 32768);
L2NpcInstance npc6 = addSpawn(circus4, -56545, -56427, -2008, 32768);
L2NpcInstance npc7 = addSpawn(circus4, -56552, -56248, -2008, 32768);
L2NpcInstance npc8 = addSpawn(circus5, -56493, -56473, -2008, 32768);
L2NpcInstance npc9 = addSpawn(circus5, -56504, -56201, -2008, 32768);
temp_npc.broadcastPacket(new PlaySound(1, "TP05_F", 0, 0, new Location()));
startQuestTimer("npc1_1", 3000, npc1);
startQuestTimer("npc2_1", 3000, npc2);
startQuestTimer("npc3_1", 3000, npc3);
startQuestTimer("npc4_1", 3000, npc4);
startQuestTimer("npc5_1", 3500, npc5);
startQuestTimer("npc6_1", 4000, npc6);
startQuestTimer("npc7_1", 4000, npc7);
startQuestTimer("npc8_1", 3000, npc8);
startQuestTimer("npc9_1", 3000, npc9);
startQuestTimer("11", 100000, temp_npc);
startQuestTimer("11", 100000, npc1);
startQuestTimer("11", 100000, npc2);
startQuestTimer("11", 100000, npc3);
startQuestTimer("11", 100000, npc4);
startQuestTimer("11", 100000, npc5);
startQuestTimer("11", 100000, npc6);
startQuestTimer("11", 100000, npc7);
startQuestTimer("11", 100000, npc8);
startQuestTimer("11", 100000, npc9);
}
else if(event.equals("11") && temp_npc != null)
{
if(temp_npc.getNpcId() == MC)
{
Functions.npcSay(temp_npc, TEXT[10]);
temp_npc.moveToLocation(new Location(-56698, -56430, -2008), 0, true);
startQuestTimer("12", 5000, temp_npc);
}
else
{
temp_npc.moveToLocation(new Location(-56343, -56330, -2008), 0, true);
startQuestTimer("clean_npc", 1000, temp_npc);
}
}
else if(event.equals("14") && temp_npc != null)
{
L2NpcInstance npc1 = addSpawn(individual1, -56700, -56385, -2008, 32768);
startQuestTimer("social1", 2000, npc1);
startQuestTimer("clean_npc", 49000, npc1);
startQuestTimer("15", 7000, temp_npc);
}
else if(event.equals("17") && temp_npc != null)
{
Functions.npcSay(temp_npc, TEXT[15]);
L2NpcInstance npc1 = addSpawn(individual2, -56700, -56340, -2008, 32768);
startQuestTimer("social1", 2000, npc1);
startQuestTimer("clean_npc", 32000, npc1);
startQuestTimer("18", 9000, temp_npc);
}
else if(event.equals("20") && temp_npc != null)
{
L2NpcInstance npc1 = addSpawn(individual3, -56703, -56296, -2008, 32768);
startQuestTimer("social1", 2000, npc1);
startQuestTimer("clean_npc", 13000, npc1);
startQuestTimer("21", 8000, temp_npc);
}
else if(event.equals("23") && temp_npc != null)
{
temp_npc.moveToLocation(new Location(-56702, -56340, -2008), 0, true);
startQuestTimer("24", 2800, temp_npc);
L2NpcInstance npc1 = addSpawn(showstuff1, -56672, -56406, -2000, 32768);
L2NpcInstance npc2 = addSpawn(showstuff2, -56648, -56368, -2000, 32768);
L2NpcInstance npc3 = addSpawn(showstuff3, -56608, -56338, -2000, 32768);
L2NpcInstance npc4 = addSpawn(showstuff4, -56652, -56307, -2000, 32768);
L2NpcInstance npc5 = addSpawn(showstuff5, -56672, -56272, -2000, 32768);
startQuestTimer("social1", 5500, npc1);
startQuestTimer("social1_1", 12500, npc1);
startQuestTimer("28", 19700, npc1);
startQuestTimer("social1", 5500, npc2);
startQuestTimer("social1_1", 12500, npc2);