Jump to content
  • 0

How to code ParticipationFee for Olympiad


Question

10 answers to this question

Recommended Posts

  • 0
Posted

u mean like, when some1 participate to olympiad, he is losing 1kk adena?

i think, wouldnt be so hard

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

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


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