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

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
u3games
Posts: 1156
Joined: Sun Feb 27, 2011 7:00 pm
Location: España
Contact:

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

Post 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);
Image
User avatar
Konstantinos
Posts: 501
Joined: Wed Feb 08, 2012 12:19 pm

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

Post by Konstantinos »

i think retail is 30m? :mrgreen:
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

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

Post 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;            } 
If i should be black sheep for sure no as punishment
Image
User avatar
Adry_85
DP Team Leader
DP Team Leader
Posts: 742
Joined: Thu Jun 15, 2006 10:00 am

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

Post 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 :)
Image
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

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

Post 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.
Post Reply