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.



×
×
  • Create New...