Jump to content

Recommended Posts

Posted (edited)

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
Posted

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:

Posted

[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...
Posted

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?

Posted

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.

Posted

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);
	}
}
Posted

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

Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...