Jump to content

carlos_69

Members
  • Posts

    54
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by carlos_69

  1. Game Chronicle: FREYA

     

    Server web site: http://l2naia.webs.com/

    Server forum: http://l2naia.darkbb.com/

     

    Features:

     

    Safe enchant: +3

    Max enchant: +20

    Unique 5-10-15 enchant system

    Enchant rate: 66%

    Blessed Enchant: 50% (due to enchant system)

    Olympiad: 2 weeks period

    PvP Reward System: 10 killing spree

    PvP Colour System (pvp/pk ranking)

    Unique PvP Zone

    Freya areas with custom mobs (with spoil)

    Mobs are like NPCs

    Class balance (even dwarfs playable)

    Team vs Team Event (every 2 hours)

    Global GK

    GM Shop (all what you need)

    Crafting (some items)

    Buffer (scheme, pet buffs)

    Buffs duration: 1h (24/12 buff slots)

    Attribute System (lvl 4 to balance pvp)

    Subclass lvl 85

     

    5-10-15 enchant system: means safe values 5,10,15. Exemple: if you fail enchanting from +6 to +7, enchant drops to 5; if you fail enchanting from +11 to +12, enchant drops to 10 and so on...

     

    PvP reward system: after killing 10 players in pvp you will get Festival Adena. You can then use it in GM Shop.

     

    Custom pvp zone: when you enter this zone you will get PvP flag.

     

    Mobs are like NPCs - mobs appearance is like players.

     

    Afkers (no active players) at tvt will not get a reward. You must get at least 1 kill.

     

    ...and much more

     

    Join us and have fun...

    Naia

  2. what chronicle you use maybe its not there)

     

    Gracia Final

     

    Dunno.. i just tried to delete aggroList check and Interact check, and put just an AI_INTENTION_ATTACK and it kinda worked...

     

    So code should be like this?

     

    public void onAction(L2PcInstance player)
    {
    	if (!canTarget(player))
    		return;
    
    	// Check if the L2PcInstance already target the L2GuardInstance
    	if (getObjectId() != player.getTargetId())
    	{
    		if (_log.isDebugEnabled())
    			_log.debug(player.getObjectId() + ": Targetted guard " + getObjectId());
    
    		// Set the target of the L2PcInstance player
    		player.setTarget(this);
    	}
    	else
    	{
                    player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);
    	}
           }

     

    Once again thank you guys for your time to help me ;)

  3. Hi:)

    I have less than 10 posts so I have to post my question here.

     

    I would like to make Guards attackable as a small kind of "bot protection". Bot choses targets randomly but cant target a PK Guard (ctrl needed). I would like to set a guard to be targeted without a ctrl.

     

    I found this:

    L2GuardInstance.java

    if (containsTarget(player))

    {

    if (_log.isDebugEnabled())

    _log.debug(player.getObjectId() + ": Attacked guard " + getObjectId());

     

    // Set the L2PcInstance Intention to AI_INTENTION_ATTACK

    player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this);    <-----this should be modified

     

    Please help me and give any info how do do this.

     

    Thank you.

    Regards.

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