Jump to content
  • 0

Question

Recommended Posts

  • 0
Posted

ti lete more? ax0ax0xa0ax0axax0ax0 ok den mporei na kanei item ala exei akoma luseis opos pythion or java code gia na to valei sto scripts, twra ama 8eli opos dipote afto to pack as kanei npc oxi item ti skata kanete oli spam kai olo no source no source doste tou ales ides..

εσύ παίζει να είσαι πάρα πολυ χαζός.

ΤΙ ΟΡ JAVA CODE βρε στόκε,σου λέει δεν έχει το source..

ΥΓ;

λέγετε python όχι pythion ουτε pythia

  • 0
Posted

ti lete more? ax0ax0xa0ax0axax0ax0 ok den mporei na kanei item ala exei akoma luseis opos pythion or java code gia na to valei sto scripts, twra ama 8eli opos dipote afto to pack as kanei npc oxi item ti skata kanete oli spam kai olo no source no source doste tou ales ides..

 

esu pou ta 3eris ola tote listou to problima na doume mpwris? i mono na milas 3eris..

  • 0
Posted

Ορίστε πέρνα αυτό και θα είσαι κομπλέ:

 

net.sf.l2j.gameserver.handler.itemhandlers βάλε αυτό εδώ:

package net.sf.l2j.gameserver.handler.itemhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2Player;
import net.sf.l2j.gameserver.model.actor.instance.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;


/**
*
* @author  Nicolas
*/
public class ClanRepItem implements IItemHandler
{
public void useItem(L2PlayableInstance playable, L2ItemInstance item, boolean forceUse)
{
	if (!(playable instanceof L2Player))
	{
		return;
	}

	L2Player player = (L2Player)playable;

	if (player.getClan().getLeader().getPlayerInstance() != player)
	{
		player.sendMessage("You're not the clan leader.You should give the item to your clan's leader.");
		return;
	}
	else if (!(player.getClan().getLevel() >= 6))
	{
		player.sendMessage("Your clan should be more than 5 level to use this item!");
		return;
	}
	if (player.getClan() == null)
	{
		player.sendMessage("How the hell it's possible to use that item without a clan?");
		return;
	}

	player.getClan().setReputationScore(player.getClan().getReputationScore()+Config.CLAN_REP_SCORE, true);
	player.destroyItem("Clan rep item", item, player, true);
	player.sendMessage("You got + "+Config.CLAN_REP_SCORE+" in your clan reputation score.");
}

@Override
public int[] getItemIds() {
	// TODO Auto-generated method stub
	return null;
}

@Override
public void useItem(L2PlayableInstance playable, L2ItemInstance item) {
	// TODO Auto-generated method stub

}
}

 

Μετά κάντο register

net.sf.l2j.gameserver.handler.ItemHandler

 

import net.sf.l2j.gameserver.handler.itemhandlers.ClanRepItem;

if(Config.ALLOW_CLAN_REP_ITEM)
	{
		registerItemHandler(new ClanRepItem());
	}

 

τα configs  sto net.sf.l2j ~>Config.java

 

public static boolean ALLOW_CLAN_REP_ITEM;
    public static int CLAN_REP_SCORE;

/* Clan Rep Item Configs /**/
                 
                 ALLOW_CLAN_REP_ITEM = Boolean.parseBoolean(L2JFortSettings.getProperty("AllowClanRepItem", "false"));
                 CLAN_REP_SCORE = Integer.parseInt(L2JFortSettings.getProperty("ClanRepScore", "300"));

 

Και τέλος τα κλασσικά config:

#-----------------------#
# Clan Reputation Item  #
#-----------------------#
#With this item clan leaders can take + clan reputation score
#Allow clan reputation item?
#Default clan rep points: 300 (Set it by your own)
AllowClanRepItem = True
ClanReputationCoinReputation = 300  

 

Κάντο βήμα βήμα και θα είσαι κομπλέ!

 

 

 

  • 0
Posted

Ορίστε πέρνα αυτό και θα είσαι κομπλέ:

 

net.sf.l2j.gameserver.handler.itemhandlers βάλε αυτό εδώ:

package net.sf.l2j.gameserver.handler.itemhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2Player;
import net.sf.l2j.gameserver.model.actor.instance.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;


/**
*
* @author  Nicolas
*/
public class ClanRepItem implements IItemHandler
{
public void useItem(L2PlayableInstance playable, L2ItemInstance item, boolean forceUse)
{
	if (!(playable instanceof L2Player))
	{
		return;
	}

	L2Player player = (L2Player)playable;

	if (player.getClan().getLeader().getPlayerInstance() != player)
	{
		player.sendMessage("You're not the clan leader.You should give the item to your clan's leader.");
		return;
	}
	else if (!(player.getClan().getLevel() >= 6))
	{
		player.sendMessage("Your clan should be more than 5 level to use this item!");
		return;
	}
	if (player.getClan() == null)
	{
		player.sendMessage("How the hell it's possible to use that item without a clan?");
		return;
	}

	player.getClan().setReputationScore(Config.CLAN_REP_SCORE, true);
	player.destroyItem("Clan rep item", item, player, true);
	player.sendMessage("You got + "+Config.CLAN_REP_SCORE+" in your clan reputation score.");
}

@Override
public int[] getItemIds() {
	// TODO Auto-generated method stub
	return null;
}

@Override
public void useItem(L2PlayableInstance playable, L2ItemInstance item) {
	// TODO Auto-generated method stub

}
}

 

Μετά κάντο register

net.sf.l2j.gameserver.handler.ItemHandler

 

import net.sf.l2j.gameserver.handler.itemhandlers.ClanRepItem;

if(Config.ALLOW_CLAN_REP_ITEM)
	{
		registerItemHandler(new ClanRepItem());
	}

 

τα configs  sto net.sf.l2j ~>Config.java

 

public static boolean ALLOW_CLAN_REP_ITEM;
    public static int CLAN_REP_SCORE;

/* Clan Rep Item Configs /**/
                 
                 ALLOW_CLAN_REP_ITEM = Boolean.parseBoolean(L2JFortSettings.getProperty("AllowClanRepItem", "false"));
                 CLAN_REP_SCORE = Integer.parseInt(L2JFortSettings.getProperty("ClanRepScore", "300"));

 

Και τέλος τα κλασσικά config:

#-----------------------#
# Clan Reputation Item  #
#-----------------------#
#With this item clan leaders can take + clan reputation score
#Allow clan reputation item?
#Default clan rep points: 300 (Set it by your own)
AllowClanRepItem = True
ClanReputationCoinReputation = 300  

 

Κάντο βήμα βήμα και θα είσαι κομπλέ!

 

 

 

 

author nicolas?k.
  • 0
Posted

εσύ παίζει να είσαι πάρα πολυ χαζός.

ΤΙ ΟΡ JAVA CODE βρε στόκε,σου λέει δεν έχει το source..

ΥΓ;

λέγετε python όχι pythion ουτε pythia

stoke script* lew des kalutera lol ti skata na kanei to source se java script (data/scripts/custom/.... gt me treleneis kiolas :P )?? niw8eis ti lew?? ok ty pou m to pes den to 3era oti legete python..
  • 0
Posted

Δεν θα δουλεψει ο κωδικας αυτος διοτι δινει απλα ποντους δεν προσθετει σε αυτους που ηδη υπαρχουν.

  • 0
Posted

stoke script* lew des kalutera lol ti skata na kanei to source se java script (data/scripts/custom/.... gt me treleneis kiolas :P )?? niw8eis ti lew?? ok ty pou m to pes den to 3era oti legete python..

...

όταν περάσει λίγος καιρός και θα καταλάβεις 2-3 πράγματα παραπάνω,θα ξαναδείς αυτό το reply σου και θα γελάς,αυτά απο εμένα.

  • 0
Posted

Δεν θα δουλεψει ο κωδικας αυτος διοτι δινει απλα ποντους δεν προσθετει σε αυτους που ηδη υπαρχουν.

Οκ το έφτιαξα

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