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


  • Posts

    • Really? Really Completely? Completely We're sorry too. It's been a great way of 10 years, and we are grateful to you for every activation you made. All the details about the closure are available on the website.    Important! The SMS-Activate brand no longer exists. There appear websites that duplicate our name — these are scammers, we have no connection to them. If you receive messages from “SMS-Activate employees”, be sure it's a scam. Currently, our technical support is only processing withdrawals from balances.
    • We are entering another season, the year 2026, which marks 20 years since the beginning of preparations for the first Chronicle server - Gracia Final.     The plans are the same as 20 years ago: to prepare a new generation of the game with the help of our edited game client, New Era.   There will be special new locations and dungeons for solo players and clans, clan quests and a clan shop, as well as special items and jewelry with attributes.     Enjoy the game at Dark Dragon             https://www.darkdragon.club/wp-content/uploads/2025/12/Dark_Dragon_login_New_Era.mp4    
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh
    • Coming soon — New Year promotions across the entire SOCNET ecosystem We are preparing special offers, bonuses, and surprises across all our projects. Follow updates on our social media — you definitely don’t want to miss them. News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh
  • Topics

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