Skip to content

Featured Replies

HI all, how i can change Range for anti-pk guard? I have this syntax.
 

<npc id="9996" displayId="30346" name="Sentry" usingServerSideName="true" title="Map Guard" usingServerSideTitle="true" type="L2Guard">
		<sex>MALE</sex>
    <ai type="BALANCED" aggroRange="900" clanHelpRange="1000" isAggressive="false">
		</ai>
		<stats str="99" int="99" dex="99" wit="99" con="99" men="99">
			<vitals hp="999999999" mp="100" />
			<attack physical="100000000" magical="50000000" attackSpeed="5000" range="900" critical="100"/>
			<defence physical="50000000" magical="50000000" />
			<attribute>
				<defence fire="99" water="99" wind="99" earth="99" holy="99" dark="99" />
			</attribute>
			<speed>
				<walk ground="180" />
				<run ground="350" />
			</speed>
		</stats>
		<collision>
			<radius normal="7" />
			<height normal="25" />
		</collision>
	</npc>

I change Range, nothing, i change aggroRange, same distance. I try to add distance="100" He see pk from x distance. How i can fix this?

  • Author

My npcs are xml, not database. And i want to set antipk to see pk player from a big distance and attack instantly

31 minutes ago, 0flee said:

My npcs are xml, not database. And i want to set antipk to see pk player from a big distance and attack instantly

doesnt matter if it's xml or sql. If you apply stats changes you have to delete the npc and respawn aswell

Edited by Zake

  • Author
<ai type="BALANCED" aggroRange="1900" clanHelpRange="3000" isAggressive="true">
		</ai>
<attack physical="100000000" magical="50000000" attackSpeed="5000" range="999" distance="150" critical="100"/>

Anything i change here, guard attack from fix distance...:/

He don't see pk from a big distance..:/

Anyone can help me please?

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.