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 :/

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