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
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, 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.


  • Posts

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..