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

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
Answer this question...

×   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...