Jump to content

Shift+Click To Npcs [Acis 350]


Psyancy

Recommended Posts

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

DY0IRC0.png
 

Edited by StinkyMadness
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

[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 στο φβ

Link to comment
Share on other sites

  • 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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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);
	}
}
Link to comment
Share on other sites

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

Link to comment
Share on other sites

I can't make the VoicedCommandHandler

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

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

Skip this part. Useless..

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...