Jump to content

Question

14 answers to this question

Recommended Posts

  • 0
Posted

he prolly ask that if he wanna make a gmshop in an pvp area and if some1 pk the gmshop will hit him like guards do

altho just put a guard there 

  • 0
Posted (edited)

he prolly ask that if he wanna make a gmshop in an pvp area and if some1 pk the gmshop will hit him like guards do

altho just put a guard there 

 

 

No. I want make gmshop inside town. And if u hit him he kill you. I know its possible but how ?

Edited by Lancer
  • 0
Posted

Test This

for(L2PcInstance player : getKnownList().getKnownType(L2PcInstance.class))
			{
				if(player.isGM() || player.isDead() || !player.isVisible() || !isInsideRadius(player, 1250, false, false))	
				{
				getAI().setIntention(CtrlIntention.ATTACK, player);
				}
			}
  • 0
Posted

You must declare the instance (ej: L2Protector ) and then add

L2ProtectorInstance = guard; <- ej

guard.getAI().setIntention(CtrlIntention.ATTACK, player);

 

Its a example.

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..