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

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

Οκ το έφτιαξα

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.



  • Posts

    • someone ban again this piece of shit this guy is a virus we should make an antikara or karabytes
    • 🍂 The cost on Vibe-sms is dropping, like autumn leaves falling from the trees.     It’s a little sad to watch the last days of summer fade away with its warmth, but that’s how the world works  every season has its own rules. The same goes for our prices: they are gradually but steadily going down, opening up new opportunities and great deals. 💸   🌍 USA is already at the minimum, and Europe, Asia, and dozens of other countries will follow soon. Don’t miss out  fresh rates are waiting for you!   Website link — https://vibe-sms.net/ Our Telegram channel — https://t.me/vibe_sms
    • You didn't tell me anywhere that you wanted core.jar as proof, I have everything ready for an independent developer to review. All the conversations, all your edits. I won't settle anything with you, so you can threaten me again and damage my name.
    • So what? Did i say anything wrong? You have no idea what source/compile is. I still wait for your .jar or source to be posted since you say i destroyed the compiled version of yours. Why you don't post it? Are you afraid that people will just see few addon lines and you did not even know that your source and compiled had different things? I should not even waste 2 minute to fix your raidboss_spawnlist thing.    Your mentally ill. What you posted is our primary deal nothing against me.  Because all he does is post whatever i write as if i hide and i did not say any mod to join and check my discord. i want him actual post something against me or any offenses i did. I also requested him several hours ago to post his .jar where my code "HACKED" his server but he wont post.    Nobody should allow open a random topic and cause issues to other's life without proofs. I demand punishment and soon unless he post evidence that i hurt his server or left him or did not make what he asked. 
  • 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