Jump to content

Recommended Posts

Posted

Klemenh H IDEA!!!

jezus?

I never said thats its mine idea but the difference is that i code it and share it public >.>

Posted

I agree with Coyote or the one who said that it should be like that : typing .reward and receiving an item which when you click on it you get the skill!

 

But it's a good idea mate... keep creating with java!

Posted

I agree with Coyote or the one who said that it should be like that : typing .reward and receiving an item which when you click on it you get the skill!

 

But it's a good idea mate... keep creating with java!

Thats i think first this i code so :D

thanks :]

  • 1 month later...
Posted

how can I change this line:

 

 L2Skill skill = SkillTable.getInstance().getInfo(56,2);              
+              activeChar.addSkill(skill);

 

To give an item like a bracelet or a agathion?

 

So instead of getting a skill the player will get an item when he type .reward

 

Thank you.

 

 

 

Posted

how can I change this line:

 

 L2Skill skill = SkillTable.getInstance().getInfo(56,2);              
+              activeChar.addSkill(skill);

 

To give an item like a bracelet or a agathion?

 

So instead of getting a skill the player will get an item when he type .reward

 

Thank you.

 

 

 

If u need item instead of reward you should change the whole code not only this line
Posted

the code is done wrong >.> also the destroy method is a boolean in case the item cant be destroyed >.> should of taken advantage of that, with the current code it can be hacked.

 

also disorder25, you can just simply delete those two lines and add the item creation ones >.>

activeChar.addItem("Crapcode", 57, 2000000, activeChar, true);

Posted

the code is done wrong >.> also the destroy method is a boolean in case the item cant be destroyed >.> should of taken advantage of that, with the current code it can be hacked.

 

also disorder25, you can just simply delete those two lines and add the item creation ones >.>

activeChar.addItem("Crapcode", 57, 2000000, activeChar, true);

Noone mention it,till now :D

Anyway thanks for it >.>

Posted

can u tell me what this line is?

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)

i dont understand this well...it is to read the activeChar?

Posted

can u tell me what this line is?

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)

i dont understand this well...it is to read the activeChar?

no, its to remove ur title cus ur an idiot.

Thats an interface method, that method is called when the user is doing a voiced command, the parameters activeChar and target are defined when the method is called by the player in Say2 client packet.

Posted

no, its to remove ur title cus ur an idiot.

Thats an interface method, that method is called when the user is doing a voiced command, the parameters activeChar and target are defined when the method is called by the player in Say2 client packet.

pfff kill your self men i am just asking...i dont tell you an idiot...so stfu because you are not God men . have a life noob!
Posted

the code is done wrong >.> also the destroy method is a boolean in case the item cant be destroyed >.> should of taken advantage of that, with the current code it can be hacked.

 

also disorder25, you can just simply delete those two lines and add the item creation ones >.>

activeChar.addItem("Crapcode", 57, 2000000, activeChar, true);

 

Thanks Setekh And how can I fix that problem that you are talking about.

What can I use instead of use destroyItemByItemId

I Appreciate.

 

 

 

 

 

If u need item instead of reward you should change the whole code not only this line

 

It is working fine, and the item is a reward, I just don't want a skill.

Posted

Thanks Setekh And how can I fix that problem that you are talking about.

What can I use instead of use destroyItemByItemId

I Appreciate.

 

 

 

 

 

It is working fine, and the item is a reward, I just don't want a skill.

well i sayd that the method is a boolean just use its return.

if(activeChar.getInventory().destroyItemByItemId("Item", 3470, 1, activeChar, activeChar.getTarget()))
{
              activeChar.sendMessage("You have been rewarded");          
            // stuff u need
}

 

 

pfff kill your self men i am just asking...i dont tell you an idiot...so stfu because you are not God men . have a life noob!

HAHA whos talkin xD also i explained smart ass l2jdev >.>

Posted

I have it like this, it's working but I don't want any exploit.

 

           if (activeChar.getInventory().getItemByItemId(14720) == null)
          {
           activeChar.sendMessage("You don't have the items required to take this reward");
           return false;
          }
             activeChar.getInventory().destroyItemByItemId("Item", 14720, 1, activeChar, activeChar.getTarget());                   
             activeChar.sendMessage("You have been rewarded");
		  activeChar.addItem("Loot", 3470, 1, reward, true);
             activeChar.sendMessage("One Event - Apiga has dissapeared");

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

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • 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