Jump to content
  • 0

Dungeon Instance With Stages


cicos

Question

i register dungeon with normal player etc and start at stage 1 fine. teleported to my location fine and another mobs and npcs setted invis for this player and with administrator account i cant see player ither with normal soo.. my question is where i can see this code to allow see players or another mobs when event start etc.. help me guys.

1.jpg

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0
Just now, SweeTs said:

Find the script and simply remove logic responsible for new world instance.

i cant find.. you now new world instance where located or example of simple code..?

Link to comment
Share on other sites

  • 0
4 minutes ago, melron said:

Do you want to be able as admin to see the all the objects even if they are not the same instance id with you?

i want this instance id to add somewhere other event or etc and add another things but i cant find this instance id where is possible to be?..

Link to comment
Share on other sites

  • 0
Just now, cicos said:

i want this instance id to add somewhere other event or etc and add another things but i cant find this instance id where is possible to be?..

setInstanceId(id) ???

Link to comment
Share on other sites

  • 0
Just now, cicos said:

raid.setInstanceId(instance);

activeChar.setInstanceId(instance);

by doing this, player and raidboss can see each other

Link to comment
Share on other sites

  • 0
Just now, melron said:

by doing this, player and raidboss can see each other

yeah i know i only what this but dont working at my other source and its working at my old source i cant find my mistake or what to add to work also and another source..

Link to comment
Share on other sites

  • 0
2 minutes ago, cicos said:

yeah i know i only what this but dont working at my other source and its working at my old source i cant find my mistake or what to add to work also and another source..

try to add a second constructor of l2spawn and add the isntance id there, before doSpawn take place set the instance id to see if its working

Link to comment
Share on other sites

  • 0
2 minutes ago, melron said:

try to add a second constructor of l2spawn and add the isntance id there, before doSpawn take place set the instance id to see if its working

final L2NpcTemplate template = NpcTable.getInstance().getTemplate(stage.getRaidId());
        try
        {
            final L2Spawn spawn = new L2Spawn(template);
            final Location raidLoc = stage.getRaidLoc();
            spawn.setLocx(raidLoc.getX());
            spawn.setLocy(raidLoc.getY());
            spawn.setLocz(raidLoc.getZ());
            spawn.setHeading(0);
            spawn.setAmount(1);
            raid = spawn.doSpawn();
            raid.setInstanceId1(instance);
            //raid.setIsNoRndWalk(true);
        }

 

i got this already also doSpawn but when event start i cant see the raid + the player ..

Link to comment
Share on other sites

  • 0
1 minute ago, cicos said:

final L2NpcTemplate template = NpcTable.getInstance().getTemplate(stage.getRaidId());
        try
        {
            final L2Spawn spawn = new L2Spawn(template);
            final Location raidLoc = stage.getRaidLoc();
            spawn.setLocx(raidLoc.getX());
            spawn.setLocy(raidLoc.getY());
            spawn.setLocz(raidLoc.getZ());
            spawn.setHeading(0);
            spawn.setAmount(1);
            raid = spawn.doSpawn();
            raid.setInstanceId1(instance);
            //raid.setIsNoRndWalk(true);
        }

 

i got this already also doSpawn but when event start i cant see the raid + the player ..

spawn.setAmount(1);
raid.setInstanceId1(instance);
raid = spawn.doSpawn();

try like that

 

Edit. why the method name is setInstanceId1? there is another one without '1'?

Edited by melron
Link to comment
Share on other sites

  • 0
Just now, melron said:

spawn.setAmount(1);
raid.setInstanceId1(instance);
raid = spawn.doSpawn();

try like that

 

Edit. why the method name is setInstanceId1? there is another one without '1'?

i wrote it now to check l2object worl is = 0 i am going to try then.

Link to comment
Share on other sites

  • 0
2 minutes ago, melron said:

spawn.setAmount(1);
raid.setInstanceId1(instance);
raid = spawn.doSpawn();

try like that

 

Edit. why the method name is setInstanceId1? there is another one without '1'?

for player also i got this

activeChar.setInstanceId(instance);
        SoloEventMisc.saveData(activeChar);
        activeChar.setIsInSoloEvent(true);

Link to comment
Share on other sites

  • 0
4 hours ago, cicos said:

when event start i cant see the raid + the player ..

It's obvious.. Because you set new instance for the player when the event start.. If you don't want to force new world, simply remove those lines, but then the solo event can't be continuous. Dunno what you are trying to achieve, you explain it wrong or your idea to remove instance is simply bad as hell. If you want to change the place, simply simply edit the teleport coordinates from the code / xml.

Link to comment
Share on other sites

  • 0
On 10/20/2019 at 11:20 PM, SweeTs said:

It's obvious.. Because you set new instance for the player when the event start.. If you don't want to force new world, simply remove those lines, but then the solo event can't be continuous. Dunno what you are trying to achieve, you explain it wrong or your idea to remove instance is simply bad as hell. If you want to change the place, simply simply edit the teleport coordinates from the code / xml.

fixed thanks sir.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...