540541542543544545546547548549550
if (monitor != null) { monitor.stop(); } if (eventNotifier != null) { eventNotifier.notifyEvent( new ServiceEndEvent(null), requestContext); } } // finally
318319320321322323324325326327328
// Retrieve HTTP session HttpSession session = request.getSession(true); eventNotifier = EventNotifierFactory.getEventNotifier(); eventNotifier.notifyEvent( new ServiceStartEvent(session), requestContext); // Trace only after calling listener, so the session id can be written on log files TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.DEBUG,
476477478479480481482483484485486
5859606162636465666768
if(q1 != null) { st.giveItems(ADENA_ID, 18100); st.addExpAndSp(60000, 3000, true); QuestState qs1 = q1.newQuestState(player, STARTED); q1.notifyEvent("30621-01.htm", qs1, npc); st.playSound(SOUND_MIDDLE); st.exitCurrentQuest(false); } return null; }
7172737475767778798081
Quest q2 = QuestManager.getQuest(_185_NikolasCooperationConsideration.class); if(q2 != null) { st.giveItems(ADENA_ID, 18100); QuestState qs2 = q2.newQuestState(st.getPlayer(), STARTED); q2.notifyEvent("30621-01.htm", qs2, npc); st.playSound(SOUND_MIDDLE); st.exitCurrentQuest(false); } return null; }
979899100101102103104105106107
Quest q1 = QuestManager.getQuest(_142_FallenAngelRequestOfDawn.class); if(q1 != null) { st.exitCurrentQuest(false); QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED); q1.notifyEvent("warehouse_chief_natools_q0141_01.htm", qs1, npc); return null; } } else if(event.equalsIgnoreCase("quest_accept_143")) {
108109110111112113114115116117118
Quest q1 = QuestManager.getQuest(_143_FallenAngelRequestOfDusk.class); if(q1 != null) { st.exitCurrentQuest(false); QuestState qs1 = q1.newQuestState(st.getPlayer(), STARTED); q1.notifyEvent("warehouse_chief_natools_q0141_01.htm", qs1, npc); return null; } } return htmltext; }
6970717273747576777879
Quest q1 = QuestManager.getQuest(_184_NikolasCooperationContract.class); if (q1 != null) { st.giveItems(ADENA_ID, 26866); QuestState qs1 = q1.newQuestState(player, STARTED); q1.notifyEvent("30621-01.htm", qs1, npc); st.playSound(SOUND_MIDDLE); st.exitCurrentQuest(false); } return null; }
8283848586878889909192
Quest q2 = QuestManager.getQuest(_185_NikolasCooperationConsideration.class); if (q2 != null) { st.giveItems(ADENA_ID, 18100); QuestState qs2 = q2.newQuestState(st.getPlayer(), STARTED); q2.notifyEvent("30621-01.htm", qs2, npc); st.playSound(SOUND_MIDDLE); st.exitCurrentQuest(false); } return null; }
4950515253545556575859
for (Player player : World.getAroundPlayers(getActor(), 300, 200)) { QuestState questState = player.getQuestState(_024_InhabitantsOfTheForestOfTheDead.class); if ((questState != null) && (questState.getCond() == 3)) { q.notifyEvent("seePlayer", questState, getActor()); } } } return super.thinkActive(); }