Jump to content

Question

Posted (edited)

Hello i am wondering how exacly is the best way to work the specialcamera and how to modify it 

	private void onEnterNewbie(L2PcInstance activeChar)

        {

         sendPacket(new SpecialCamera(this supposed to be the target npc->29052, 10, 0, 5, 0, 3000));

Well this didnt work at all .. any suggestion?

 

My thought is to set a target and just change the id to target? or whatever... 

 

on specialcamera.java tell me _id and this supposed to work but doesnt .. if anyone know how to modify it .. thanks

Edited by L2LostWard

5 answers to this question

Recommended Posts

  • 0
Posted

thank a lot budy also i want to tell because of frozen rev this doesnt work,for people who you like to add this on there servers use this

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java     (revision 1097)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.java     (working copy)
@@ -49,10 +49,12 @@
 import com.l2jfrozen.gameserver.model.L2Character;
 import com.l2jfrozen.gameserver.model.L2Clan;
 import com.l2jfrozen.gameserver.model.L2Effect;
+import com.l2jfrozen.gameserver.model.L2Object;
 import com.l2jfrozen.gameserver.model.L2Skill;
 import com.l2jfrozen.gameserver.model.L2World;
 import com.l2jfrozen.gameserver.model.actor.instance.L2ClassMasterInstance;
 import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2NpcInstance;
 import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
 import com.l2jfrozen.gameserver.model.base.ClassLevel;
 import com.l2jfrozen.gameserver.model.base.PlayerClass;
@@ -92,6 +94,7 @@
 import com.l2jfrozen.gameserver.network.serverpackets.QuestList;
 import com.l2jfrozen.gameserver.network.serverpackets.ShortCutInit;
 import com.l2jfrozen.gameserver.network.serverpackets.SignsSky;
+import com.l2jfrozen.gameserver.network.serverpackets.SpecialCamera;
 import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
 import com.l2jfrozen.gameserver.network.serverpackets.UserInfo;
 import com.l2jfrozen.gameserver.powerpak.PowerPakConfig;
@@ -508,6 +511,144 @@
	private void onEnterNewbie(L2PcInstance activeChar)
	{
               
+               /* ****************************** Camera MOD ****************************** */
+               // 1 actived, 0 deactived
+               int activemod = 1;
+              
+                       // 1th value: ID
+                       // 2nd value: Distance between char and camera
+                       // 3th value: Left-Right angle of camera starting position
+                       // 4th value: Up-Down angle of camera starting position
+                       // 5th value: time in which "turn" and "rise" will take effect
+                       // 6th value: total time of the camera effect
+                      
+                       activeChar.sendPacket(new ExShowScreenMessage("Welcome to Lineage II Cyber Reborn!", 6000));
+                      
+                       try
+                       {
+                               Thread.sleep(2000);
+                       }
+                       catch (InterruptedException e)
+                       {
+                               e.printStackTrace();
+                       }
+                      
+                       int NPC1 = 0;
+                       int NPC2 = 0;
+                       int NPC3 = 0;
+                       int NPC4 = 0;
+                      
+                       // Configurable
+                       // Here you can change npc name and the message
+                       String NPCname1 = "GM Shop";
+                       String MessageNPC1 = "Here you can buy equipment for free!!";
+                      
+                       String NPCname2 = "Special Shop";
+                       String MessageNPC2 = "Here you can buy special equipments to become stronger!";
+                      
+                       String NPCname3 = "Gatekeeper";
+                       String MessageNPC3 = "With Gatekeeper you can go anywhere you want!!";
+                      
+                       String NPCname4 = "Pepper";
+                       String MessageNPC4 = "Here you can add your Dyes!";
+                       // End Config
+                      
+                       for (final L2Object npc : activeChar.getKnownList().getKnownObjects().values())
+                       {
+                               if (!(npc instanceof L2NpcInstance))
+                                       continue;
+                              
+                               if (npc.getName().equals(NPCname1) && NPC1 != 1)
+                               {
+                                       activeChar.setTarget(npc);
+                                       final int gottarget = activeChar.getTarget().getObjectId();
+                                      
+                                       activeChar.sendPacket(new SpecialCamera(gottarget, 50, 120, 15, 1000, 6000));
+                                       activeChar.sendPacket(new ExShowScreenMessage(MessageNPC1, 3000));
+                                      
+                                       try
+                                       {
+                                               Thread.sleep(5000);
+                                       }
+                                       catch (InterruptedException e)
+                                       {
+                                               e.printStackTrace();
+                                       }
+                                      
+                                       NPC1 = 1;
+                                       continue;
+                               }
+                              
+                               if (npc.getName().equals(NPCname2) && NPC2 != 1)
+                               {
+                                       activeChar.setTarget(npc);
+                                       final int gottarget = activeChar.getTarget().getObjectId();
+                                      
+                                       activeChar.sendPacket(new SpecialCamera(gottarget, 50, 120, 15, 2000, 6000));
+                                       activeChar.sendPacket(new ExShowScreenMessage(MessageNPC2, 3000));
+                                      
+                                       try
+                                       {
+                                               Thread.sleep(5000);
+                                       }
+                                       catch (InterruptedException e)
+                                       {
+                                               e.printStackTrace();
+                                       }
+                                      
+                                       NPC2 = 1;
+                                       continue;
+                               }
+                              
+                               if (npc.getName().equals(NPCname3) && NPC3 != 1)
+                               {
+                                       activeChar.setTarget(npc);
+                                       final int gottarget = activeChar.getTarget().getObjectId();
+                                      
+                                       activeChar.sendPacket(new SpecialCamera(gottarget, 50, 145, 15, 3000, 6000));
+                                       activeChar.sendPacket(new ExShowScreenMessage(MessageNPC3, 3000));
+                                      
+                                       try
+                                       {
+                                               Thread.sleep(5000);
+                                       }
+                                       catch (InterruptedException e)
+                                       {
+                                               e.printStackTrace();
+                                       }
+                                      
+                                       NPC3 = 1;
+                                       continue;
+                               }
+                              
+                               if (npc.getName().equals(NPCname4) && NPC4 != 1)
+                               {
+                                       activeChar.setTarget(npc);
+                                       final int gottarget = activeChar.getTarget().getObjectId();
+                                      
+                                       activeChar.sendPacket(new SpecialCamera(gottarget, 50, 50, 15, 4000, 6000));
+                                       activeChar.sendPacket(new ExShowScreenMessage(MessageNPC4, 3000));
+                                      
+                                       try
+                                       {
+                                               Thread.sleep(5000);
+                                       }
+                                       catch (InterruptedException e)
+                                       {
+                                               e.printStackTrace();
+                                       }
+                                      
+                                       NPC4 = 1;
+                                       continue;
+                               }
+                       }
+                      
+                       activeChar.setTarget(null);
+               
+               /* ****************************** Camera MOD ****************************** */
+
		if(Config.NEW_PLAYER_EFFECT)
  • 0
Posted

The target is an object id not an npc id.

It is the id of this particular instance of npc you are targeting and not the template's.

Guest
This topic is now closed to further replies.


  • Posts

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock