Jump to content

Question

Posted

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?

4 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted (edited)
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
  • 0
Posted
<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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock