Jump to content
  • 0

How to code ParticipationFee for Olympiad


Question

10 answers to this question

Recommended Posts

  • 0
Posted

Really easy to do.

 

OlympiadManager.java

 

Check this boolean and think a bit.

 

	/**
 * @param noble - checked noble
 * @param player - messages will be sent to this L2PcInstance
 * @return true if all requirements are met
 */
// TODO: move to the bypass handler after reworking points system
private final boolean checkNoble(L2PcInstance noble, L2PcInstance player)
{

        }

  • 0
Posted

/**
 * @param noble - checked noble
 * @param player - messages will be sent to this L2PcInstance
 * @return true if all requirements are met
 */
// TODO: move to the bypass handler after reworking points system
private final boolean checkNoble(L2PcInstance noble, L2PcInstance player)
{
         
          if (Config.ALLOWOLYFEE)
	{
		player.destroyItemByItemId("Oly Participation Fee", Config.OLY_PARTICIPATION_FEE[0], Config.OLY_PARTICIPATION_FEE[1], true);
	}

        }

 

something like that will work ?

  • 0
Posted

Use your brain, use google, take a look how boolean works.

 

And at least test and try to fix your mistakes, otherwise u won't learn anything, and thats main point.

  • 0
Posted

Look at how the teleporter is configured to take a fee.

 

It has a config, if its true it will take the money. Only thing you have to take out where it loads the fee from the teleport table and set either a configurable fee or a set fee in the core.

 

Check it out should be in l2teleporterinstance

  • 0
Posted

Heya anyone have the know how to create a code for that ??

 

Thanks for help

code for what?

do you seriously think that you'll post ONE word describing what you need and we'll start pasting patches one after another?

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

    • Hello friends, good morning, good afternoon or good evening, depending on the time you are seeing this! I have been trying to decompile and compile again with only the classes that I want LineageEffect.u for a few days now, but I have not been successful. Could someone help me by clearing up some doubts about how I can do this work and be successful?!
    • **INTERLUDE REMASTERED** Moonland is a server that's been running for about three years without wipe, and they don't plan on wiping it anytime soon. I'm selling my items or even the account due to not having much time to play anymore. I'm selling only for $$$. Not going to disclose my nickname in the server, but here are some of the items: Lvl 5 equipment for both mage and fighter +100 mage pvp set 2mastery jewels for fighter, 2 for mage, blessed antharas, blessed queen ant, ring of fallen angel, earring of fafurion. 1k + col, VIP cosmetics for armor, agathion and weapons(duals + mage wep)   I'm only selling for real money via paypal or cs2 skins so don't offer me anything else.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...