Jump to content
  • 0

Dungeon Instance With Stages


Question

Posted

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

15 answers to this question

Recommended Posts

  • 0
Posted
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..?

  • 0
Posted

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?

  • 0
Posted
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?..

  • 0
Posted
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) ???

  • 0
Posted
Just now, melron said:

setInstanceId(id) ???

raid.setInstanceId(instance);

activeChar.setInstanceId(instance);

  • 0
Posted
Just now, cicos said:

raid.setInstanceId(instance);

activeChar.setInstanceId(instance);

by doing this, player and raidboss can see each other

  • 0
Posted
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..

  • 0
Posted
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

  • 0
Posted
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 ..

  • 0
Posted (edited)
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
  • 0
Posted
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.

  • 0
Posted
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);

  • 0
Posted
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.

  • 0
Posted
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.

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