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

    • Doesn't matter. Just funny that staff would ban your account for false accusations.   There's just too much controversial topics regarding your name, I wouldn't trust that if I were a new customer.   But huh, glad I am not one of them. Crazy to think about that people sometimes have to wait 2-3 weeks for a recycled launcher.  
    • What a deductive skills. What is it, 2012? And would You ask for unban with false accusations? I don't have to prove YOU anything. Have fun.
    • Released new security update for Faceit anti-cheat and Gamers Club. Cheat is available again! We also added a few more slots for 1 month subscription and 6 months.
    • This post originally appeared on zupyak.   If you're diving into MLB The Show 25, you know how essential stubs are for building a powerhouse team. Whether you're aiming to snag elite players, upgrade your roster, or stock up on packs, stubs are the key to success. The good news? You don't need to spend real money to earn them. With a little strategy and effort, you can rake in stubs and dominate the diamond.  Here are the top five strategies to maximize your MLB The Show stub earnings and create the ultimate team without breaking the bank.    1. Earning Stubs with Diamond Quest Diamond Quest is a goldmine for stubs. By completing challenges in this mode, you can earn Diamond cards, which often have high sell values. Once you've earned these cards, sell them in the in-game Marketplace for a quick influx of stubs. Additionally, the packs you earn from Diamond Quest can be opened for more cards to sell or use in collections.   2. Completing Conquest Maps Conquest Maps are another excellent way to rack up stubs. Focus on capturing territories and completing map-specific goals. Many maps offer hidden rewards, including packs and stubs, which can significantly boost your earnings. You don't always need to conquer Strongholds—simply taking over territories can yield great rewards.   3. Flipping Cards in the Marketplace The Marketplace is your playground for flipping cards. Look for cards with a significant gap between their "Buy Now" and "Sell Now" prices. Place a Buy Order slightly above the current "Sell Now" price, then list the card for a "Sell Order" just below the "Buy Now" price. After the 10% Marketplace tax, you'll still make a profit. This strategy works best with high-value cards but requires patience and consistency.     4. Leveraging Player Exchanges Player Exchanges are an underrated method for earning stubs. Purchase cheap Silver cards near their quick-sell value, then exchange them for Gold players. These Gold players can either be used in your lineup or sold for a profit. This method is especially effective early in the game when Gold cards hold higher value.   5. Selling Things You Don't Need Don't let unused items clutter your inventory. Regularly check for duplicate cards, equipment, or other items you don't need. Sell these through the Marketplace to free up space and earn extra stubs. Even Bronze and Silver cards can add up over time, so don't overlook them. With these strategies, you'll be well on your way to building a dream team without spending real money. Let me know if you'd like to dive deeper into any of these methods!   Final Thoughts Building your dream team in MLB The Show 25 doesn't have to cost real money. With these five strategies—earning rewards through Diamond Quest, conquering Conquest Maps, flipping cards in the Marketplace, leveraging Player Exchanges, and selling unused items—you'll be well on your way to amassing stubs and creating a roster that rivals even the best in the game. Remember, consistency is key! Whether you're grinding through challenges or flipping cards daily, every little bit adds up over time. Stick with these methods, and soon enough, you'll have the stubs you need to dominate the diamond. Let us know which strategy works best for you—or if you've discovered any additional tips that deserve a spot on this list! Happy grinding!   
  • Topics

×
×
  • Create New...