Jump to content
  • 0

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

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