Jump to content

Question

11 answers to this question

Recommended Posts

  • 0
Posted

It's core related and if you want to add from database, you will have a lot of work, adding 2 columns.

 

A fixed amount or according to mob - lvl or HPs - is a lot easier...

  • 0
Posted

look man i want players can farm fame+clan points from mob....you know how i can add in mobs drop data?

well...

 

Search doDie method from L2MonsterInstance

 

After

    	if (!super.doDie(killer))
    		return false; 

Add

    	if(killer instanceof L2PlayableInstance)
        {
    		L2PcInstance player = ((L2PcInstance)killer);
     		if (player.getClan() != null)
    		{
			player.getClan().setReputationScore(player.getClan().getReputationScore() + 500, true);
			player.getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(player.getClan()));
    		}
        }

 

I don't know how works about fame..

  • 0
Posted

well...

 

Search doDie method from L2MonsterInstance

 

After

    	if (!super.doDie(killer))
    		return false; 

Add

    	if(killer instanceof L2PlayableInstance)
        {
    		L2PcInstance player = ((L2PcInstance)killer);
     		if (player.getClan() != null)
    		{
			player.getClan().setReputationScore(player.getClan().getReputationScore() + 500, true);
			player.getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(player.getClan()));
    		}
        }

 

I don't know how works about fame..

  • 0
Posted

man i find the    if (!super.doDie(killer))

    return false; 

 

but i add the code if(killer instanceof L2PlayableInstance)

        {

    L2PcInstance player = ((L2PcInstance)killer);

    if (player.getClan() != null)

    {

player.getClan().setReputationScore(player.getClan().getReputationScore() + 500, true);

player.getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(player.getClan()));

    }

        }

and...error!

  • 0
Posted

man i find the    if (!super.doDie(killer))

    return false; 

 

but i add the code if(killer instanceof L2PlayableInstance)

        {

    L2PcInstance player = ((L2PcInstance)killer);

    if (player.getClan() != null)

    {

player.getClan().setReputationScore(player.getClan().getReputationScore() + 500, true);

player.getClan().broadcastToOnlineMembers(new PledgeShowInfoUpdate(player.getClan()));

    }

        }

and...error!

and what error

  • 0
Posted

so if this code works for any mob you kill then it sux.... 20  members (level 20 ++ with buffs) on clan each mob drops 1 c/r point so they can kill gremlins (2 hits) and in few hours they get a lot of points...useless i guess :/

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