Jump to content

Recommended Posts

Posted

where i place i have a bad english >_<

 

plz place the code in incressespvp

I said dont post if you dont know a shit of java.Just find the first IncreasePvPKills; and place it there.

 

//end

Posted

Leeroy watch your tongue.

If you want the Thread to maintain open please stick to the point, don't start a flaming thread.

Posted

leeroy, have 1 question, with this cade, u can duplicate them, tho get from 1000, 2000, 3000, etc pvps, 1 custom skill? or only can get 1 skill??

Ofcourse you can duplicate it, just make sure you do it right.

Posted

Yeah as horus said you can.But look .. You gotta make a new configs ,but if u're bored ,you can use something like :

if (getPvpKills() == 1000 && getKnownSkill(ID) == null)

 addSkill(SkillTable.getInstance().getInfo(ID, LVL));

right after your old one.

So it has to be like :

			increasePvpKills();
		if (getPvpKills() == Config.PVP_CUSTOM_SKILL_P && getKnownSkill(Config.PVP_CUSTOM_SKILL_ID) == null && Config.PVP_CUSTOM_SKILL)
			  addSkill(SkillTable.getInstance().getInfo(Config.PVP_CUSTOM_SKILL_ID, Config.PVP_CUSTOM_SKILL_LV));
		if (getPvpKills() == 1000 && getKnownSkill(123) == null)
			  addSkill(SkillTable.getInstance().getInfo(123, 123));
		if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL )Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName());
		return;
	}
	else
	{
		// check about wars

 

It wont give an error at all.But its not configurable ,so you gotta edit core if you wanna change it ^^ Pretty easy though.

Posted

ok i will try this, mayb

Yeah as horus said you can.But look .. You gotta make a new configs ,but if u're bored ,you can use something like :

if (getPvpKills() == 1000 && getKnownSkill(ID) == null)

  addSkill(SkillTable.getInstance().getInfo(ID, LVL));

right after your old one.

So it has to be like :

			increasePvpKills();
		if (getPvpKills() == Config.PVP_CUSTOM_SKILL_P && getKnownSkill(Config.PVP_CUSTOM_SKILL_ID) == null && Config.PVP_CUSTOM_SKILL)
			  addSkill(SkillTable.getInstance().getInfo(Config.PVP_CUSTOM_SKILL_ID, Config.PVP_CUSTOM_SKILL_LV));
		if (getPvpKills() == 1000 && getKnownSkill(123) == null)
			  addSkill(SkillTable.getInstance().getInfo(123, 123));
		if ( target instanceof L2PcInstance && Config.ANNOUNCE_PVP_KILL )Announcements.getInstance().announceToAll("Player "+this.getName()+" hunted Player "+target.getName());
		return;
	}
	else
	{
		// check about wars

 

It wont give an error at all.But its not configurable ,so you gotta edit core if you wanna change it ^^ Pretty easy though.

hehe ok, i will try it :)

 

thanks

Guest
This topic is now closed to further replies.



×
×
  • Create New...