Jump to content
  • 0

Create mob Anti-reflect?


Question

Recommended Posts

  • 0
Posted

You are nuts :D

 

I didn't do anything you can't do. I just traced the objects in eclipse by right clicking each object and checking the call hierarchy. I also did this for myself because I want to refactor the AIAccessor and I wanted an overall view of how much of an impact I'll have. Since we're already on the subject anyway I figure I'd just share is so anybody can take a quick peak of it if they have to work with something similar.

 

or just followed the @overdrive...

I guess this macro makes my methods work twice as effectively.

  • 0
Posted

I didn't do anything you can't do. I just traced the objects in eclipse by right clicking each object and checking the call hierarchy. I also did this for myself because I want to refactor the AIAccessor and I wanted an overall view of how much of an impact I'll have. Since we're already on the subject anyway I figure I'd just share is so anybody can take a quick peak of it if they have to work with something similar.

I guess this macro makes my methods work twice as effectively.

 

Hi Tryskell why you made new account? :D

  • 0
Posted

cause he needed a lamer name

 

>Comes in and offers poor advice on a subject he clearly doesn't understand

>Insults other users for things they've never said

>Gets called out on his shit and then proceeds to have hissy fits about it

 

tumblr_lmhw32J6Ro1ql8f37o1_500.jpg

  • 0
Posted

>Comes in and offers poor advice on a subject he clearly doesn't understand

>Insults other users for things they've never said

>Gets called out on his shit and then proceeds to have hissy fits about it

 

tumblr_lmhw32J6Ro1ql8f37o1_500.jpg

 

Ok now i'm scared ( i'm out of this discussion ) :D

  • 0
Posted

>Comes in and offers poor advice on a subject he clearly doesn't understand

>Insults other users for things they've never said

>Gets called out on his shit and then proceed to have hissy fits about it

 

U-Mad-Tho.jpg

 

dude u must hit ur head twice or maybe more on the wall, dont crash it just to wake up, cause ur not getting more and more annoying... mad? for? I just spend why rage?

  • 0
Posted

yeah ok, w/e, another 15 year old child who cant communicate like a man, im out

 

Haha, have you ever even read how you communicate initially with other people here? Once again, you came in here attacking the help I offered to OP and you made fun of my name. Once again you're being called out on your bullshit and you're pretending like you're the bigger man by walking away from it, after starting it.

 

I have one last question how the hell that happends?

Create mob Anti-reflect? how this topic becomes STAR WARS? :D

 

That's because our lovely forum member xdem is not really good at trying to bullshit people. First he comes in here and attempts to talk with authority on subjects he doesn't really understand. Then he'll take the offensive when somebody tells him and as soon as he sees he has no ground to stand on, he backs away and tries to paint the picture that he's the more mature & better man.

 

But really who cares, we're just a bunch of no-names here anyway.

 

As for the original question I'd suggest adding a new method to the AIAcessor. But I'm not sure how much OP knows about java or these objects.

 

The quick and dirty advice would be to do a check on reflect damage for instances of type L2Npc. L2Npc subclasses into all of the 'attackable' NPC types. However if you do this, refer back to my picture. You'll also be influencing the behavior of probably more than you originally intended.

  • 0
Posted

L2Attackable would work for any instances extending L2Attackable, so yes, RBs are taken in consideration. If you want it only affect monsters, use L2MonsterInstance.

 

Finally Silv3rMoon :

- if your reply doesn't (try to) answer the question, consider to avoid to type a reply (that's logical and simple to understand, isn't it ?).

- if you count to troll, avoid to make it on a board I "moderate". Take it as a warning.

- that's the second topic you "almost" insult dpbBryan. Keep friendly. Take it as a second warning.

- ^Wyatt's answer is normally ok, meaning you are wrong and than I correct you.

 

There is easy way... make this

Decrease Mob HP and increase Mob P/M Def...

Its easy

I smiled reading that. From someone insulting another ppl of "nuts", that's ironic.

Guest
This topic is now closed to further replies.



  • Posts

    • So dont plat that waste time&money server.   GM promises pie in the sky, but does nothing. It's all about money, money, money. And wipe.   SCAM server!
    • I'm looking for someone to remove GameGuard from a game that uses XTRAP. The game no longer uses XTRAP. I have a game server. But the client is kicked from the game after a few minutes of logging in. If I try to remove XTRAP (just by deleting it), the game opens and closes quickly.   Send me a PM. The game is Audition, a dance game.
    • 🎉 L2Dead StuckSub - GRAND OPENING 14 February 2026🎉 After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come. L2Dead StuckSub is officially opening its gates on 14 February 2026.   ⚔️What to expect: ✦Main Class +6 Stuck Sub system ✦Balanced PvP & custom party farm areas ✦Custom events, bosses and strong rewards ✦Competitive clan scene with castle rewards   📌Until the opening: ✦Create your clans and register them in the Clan-Register channel ✦Invite your friends / old parties / CPs ✦Stay tuned for more information (rates, events, siege times, etc.)   Get your setups ready, prepare your macros and your Discord/voice. On 14 February 2026 20:00 GMT+2, we write the first chapter of L2Dead together. 🔥 https://www.l2dead.com/ https://discord.gg/TGnATuZmdt
    • Here’s the **clean, L2jAcis-style way** to make **Auto Loot work ONLY for Premium players** on **Interlude**.   I’ll give you **two options** — pick what fits your server philosophy.   ---   ## ✅ OPTION 1 (BEST PRACTICE): Premium-Only Auto Loot (Code-based)   ### 🔹 Step 1: Add config option   **`config/Premium.properties`**   ```properties # Enable auto loot only for premium players PremiumAutoLoot = True ```   ---   ### 🔹 Step 2: Read config   **`Config.java`**   ```java public static boolean PREMIUM_AUTO_LOOT; ```   Load it:   ```java PREMIUM_AUTO_LOOT = Premium.getProperty("PremiumAutoLoot", false); ```   ---   ### 🔹 Step 3: Modify drop handling   **File:**   ``` net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance ```   Find **dropItems()** or **doItemDrop()** Replace / modify logic like this:   ```java if (player != null && player.isPremium() && Config.PREMIUM_AUTO_LOOT) {     for (ItemInstance item : items)         player.getInventory().addItem("AutoLoot", item, player, this); } else {     for (ItemInstance item : items)         dropItem(player, item); } ```   ✅ Result:   * **Premium players** → instant loot * **Normal players** → loot on ground   ---   ## ✅ OPTION 2: Auto Loot via Character Variable (More Flexible)   Useful if you want **GM control** per character.   ### 🔹 Premium activation   When premium is added:   ```java player.setVar("AUTO_LOOT", "1"); ```   ### 🔹 Drop check   ```java if (player != null && player.getVarB("AUTO_LOOT")) {     player.addItem("AutoLoot", item, player, true); } else {     dropItem(player, item); } ```   ---   ## 🎯 BONUS (Recommended Add-Ons)   ### 🔸 Adena always auto-loot (even non-premium)   ```java if (item.getItemId() == 57) {     player.addAdena("Loot", item.getCount(), this, true);     continue; } ```   ### 🔸 Party check (premium leader only)   ```java player.isInParty() && player.getParty().getLeader().isPremium() ```   ---   ## ⚠️ Notes (Interlude Safe)   ✔ Compatible with **L2jAcis Interlude** ✔ No client-side changes ✔ No exploit risk ✔ Retail-like behavior   ---      
  • 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..