Skip to content

Shift+Click To Npcs [Acis 350]

Featured Replies

You can made it like mine and if you want to using "RequestBypassToServer.java"

DY0IRC0.png
 

Edited by StinkyMadness

  • Author

You can made it like this if you want using "RequestBypassToServer.java"

 

DY0IRC0.png

 

Great design. gj mate!

[GR] gj poli kalo kai gia kapion pou to xriazete kai gia kapion pou mporei apla na to anabathmisi.

sinexise etsy :)

Great design. gj mate!

 

Thanks dude

 

[GR] gj poli kalo kai gia kapion pou to xriazete kai gia kapion pou mporei apla na to anabathmisi.

sinexise etsy :)

 

[GR] Δεν είναι ο κώδικας του "Designatix" είναι δικός μου από έναν Server που είχα... Μπορεί να το κάνω Share αν το θέλει κόσμος [/GR]

[EN] It is not the code of "Designatix" is mine from a Server I had... i can share it if peoples like it [/EN]

Edited by StinkyMadness

i can share it if peoples like it

Please don't. All noobish servers are the same by features, you want em to have even htm 1:1 the same? :lol:

Please don't. All noobish servers are the same by features, you want em to have even htm 1:1 the same? :lol:

 

:okey: :D

  • Author

[GR] gj poli kalo kai gia kapion pou to xriazete kai gia kapion pou mporei apla na to anabathmisi.

sinexise etsy :)

[gr] ευχαριστώ αγορίνα

 

Thanks dude

 

 

[GR] Δεν είναι ο κώδικας του "Designatix" είναι δικός μου από έναν Server που είχα... Μπορεί να το κάνω Share αν το θέλει κόσμος [/GR]

[EN] It is not the code of "Designatix" is mine from a Server I had... i can share it if peoples like it [/EN]

[gr] εγώ το θέλω πάντως, το δικό σου design είναι πιο ωραίο, στείλε σε pm αν θές η link στο φβ

  • 1 month later...

Now the Configs

    public static boolean ENABLE_SHIFT_CLICK_TO_NPCS;


    ENABLE_SHIFT_CLICK_TO_NPCS = npcs.getProperty("EnableShiftClickToNpcs", false);

 

 

 

Where actually have to put this?

Now the Configs

public static boolean ENABLE_SHIFT_CLICK_TO_NPCS;

 

 

ENABLE_SHIFT_CLICK_TO_NPCS = npcs.getProperty("EnableShiftClickToNpcs", false);

 

 

 

Where actually have to put this?

Config.java

Just find the property of npcs.

I think with your code you can see and Gatekeeper droplist :P
So you have to add a check so dont work at all npcs
 

This is one way:

+++ java/net/sf/l2j/gameserver/model/actor/L2Npc.java

import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.L2WorldRegion;
import net.sf.l2j.gameserver.model.ShotType;
+import net.sf.l2j.gameserver.model.actor.instance.L2ChestInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2FestivalMonsterInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2FishermanInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2GrandBossInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2MerchantInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2RaidBossInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2TeleporterInstance;



else if (Config.ENABLE_SHIFT_CLICK_TO_NPCS)
{
	if (this instanceof L2MonsterInstance || this instanceof L2RaidBossInstance || this instanceof L2GrandBossInstance || this instanceof L2FestivalMonsterInstance || this instanceof L2ChestInstance)
	{
		final NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
		html.setFile("data/html/mods/npcinfo.htm");
		html.replace("%class%", getClass().getSimpleName());
		html.replace("%id%", getTemplate().getNpcId());
		html.replace("%lvl%", getTemplate().getLevel());
		html.replace("%name%", getTemplate().getName());
		html.replace("%race%", getTemplate().getRace().toString());
		html.replace("%tmplid%", getTemplate().getIdTemplate());
		html.replace("%aggro%", getTemplate().getAggroRange());
		html.replace("%corpse%", StringUtil.getTimeStamp(getTemplate().getCorpseTime()));
		html.replace("%enchant%", getTemplate().getEnchantEffect());
		html.replace("%hp%", (int) getCurrentHp());
		html.replace("%hpmax%", getMaxHp());
		html.replace("%mp%", (int) getCurrentMp());
		html.replace("%mpmax%", getMaxMp());
		html.replace("%patk%", getPAtk(null));
		html.replace("%matk%", getMAtk(null, null));
		html.replace("%pdef%", getPDef(null));
		html.replace("%mdef%", getMDef(null, null));
		html.replace("%accu%", getAccuracy());
		html.replace("%evas%", getEvasionRate(null));
		html.replace("%crit%", getCriticalHit(null, null));
		html.replace("%rspd%", getWalkSpeed());
		html.replace("%aspd%", getPAtkSpd());
		html.replace("%cspd%", getMAtkSpd());
		player.sendPacket(html);
	}
}

Config.java

Just find the property of npcs.

 

I can't make the VoicedCommandHandler

net.sf.l2j.gameserver.handler.VoicedCommandHandler.java <- not exist

 

btw I think that cuz i use а new version of acis

I can't make the VoicedCommandHandler

[/background][/size][/font]

I can't understand why author uses voicedcommand anyway...

Skip this part. Useless..

You don't need voiced command.

So u have mean to edit only net.sf.l2j.gameserver.model.actor.L2Npc.java and net.sf.l2j.config.java and config.npcs.properties , are u?

I can't make the VoicedCommandHandler

net.sf.l2j.gameserver.handler.VoicedCommandHandler.java <- not exist

 

btw I think that cuz i use а new version of acis

 

You can use "RequestBypassToServer.java" for this part of code with some changes

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.