Page 1 of 1

[BETA][LOW] MithrilMine - Only 3 sec. in instance?

Posted: Sun Dec 08, 2013 2:16 pm
by u3games
» Find Revision
L2J Revision Number: 6308
L2JDP Revision Number: 10059

When you enter in instance MithrilMine, you only have 3 seconds to complete. This is correct? :?

Code: Select all

startQuestTimer("FINISH", 3000, npc, _player, true);

Code: Select all

startQuestTimer("TIMER", 3000, npc, talker);startQuestTimer("BUFF", 3500, npc, talker);

Re: [BETA][LOW] MithrilMine - Only 3 sec. in instance?

Posted: Sun Dec 08, 2013 9:22 pm
by Konstantinos
i think retail is 30m? :mrgreen:

Re: [BETA][LOW] MithrilMine - Only 3 sec. in instance?

Posted: Sun Dec 08, 2013 9:26 pm
by St3eT
I think it's invalid, because when kegor spawn it's set repeatable questTimer 3sec

Code: Select all

startQuestTimer("FINISH", 3000, npc, _player, true);
And it will end instance just when _count is >= 5
So there every 3sec are checked if player already kill 5 monsters and if he kill 5 or more monster instance will end.

Code: Select all

             case "FINISH":            {                if (_count >= 5)                {                    npc.setScriptValue(2);                    npc.setTarget(player);                    npc.setWalking();                    npc.getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, player);                    npc.broadcastPacket(new NpcSay(npc.getObjectId(), Say2.NPC_ALL, npc.getId(), NpcStringId.I_CAN_FINALLY_TAKE_A_BREATHER_BY_THE_WAY_WHO_ARE_YOU_HMM_I_THINK_I_KNOW_WHO_SENT_YOU));                    InstanceWorld world = InstanceManager.getInstance().getWorld(npc.getInstanceId());                    InstanceManager.getInstance().getInstance(world.getInstanceId()).setDuration(3000);                    cancelQuestTimers("FINISH");                }                break;            } 

Re: [BETA][LOW] MithrilMine - Only 3 sec. in instance?

Posted: Sun Dec 08, 2013 10:35 pm
by Adry_85
Yes, is invalid, surely that part could be written better, check every 3 seconds if player kills mithril milliped that Kegor spawn :)

Re: [BETA][LOW] MithrilMine - Only 3 sec. in instance?

Posted: Mon Dec 09, 2013 5:22 am
by VlLight
First of all, location of

Code: Select all

    private int _count = 0;    private L2PcInstance _player = null;
is wrong. Them should be members of MMWorld class, not MithrilMine class, because them are certain instance, but not global script variables.
Second, why you're ignoring spawnGroup() method and prefers to define MOB_SPAWNS in script?
Third (but I can mistake here, core is changing): did you test situation, when Kegor kills the monster? I think, onKill() isn't called here, so you should to find another way to track monster deaths. So
Adry_85 wrote:Yes, is invalid, surely that part could be written better, check every 3 seconds if player kills mithril milliped that Kegor spawn :)
actually, can be easily tracked in onKill, not by timer, but situation when Kegor kills mithril milliped that Kegor spawn, requires timer.