Jump to content
  • 0

[REQUEST] Auto reward for owning castle (interlude)


Question

7 answers to this question

Recommended Posts

  • 0
Posted

 

Well it kinda explains for its self right?

At the end of the siege the victor clan members get a reward with the items you added in the configs :)

Its made in a way it will keep your code clean and also its pretty damn easy to use :D

 

Well I had in mind code which checks every 1 hour if giran castle have owner and if it has that clan gets to his warehouse 5k aa.

  • 0
Posted

thats sounds like a Task

take a look at java/com/l2jserver/gameserver/taskmanager/

and extend another task

 

Yes i think i can make the task but how to check what clan is owning giran and add to his warehouse an item?

  • 0
Posted

Just overload the task giving money to castle warehouse... Or at least, take exemple of.

 

Could you give me example of code which adds item to castle warehouse?

  • 0
Posted

Could you give me example of code which adds item to castle warehouse?

 

In net/sf/l2j/gameserver, there is a class called CastleUpdater.

This is the task you are looking for.

And this is the example(5k aa per hour.)

if (_RunCount % 1 == 0)
    warehouse.addItem("Castle", 5575, 5000, null, null);

 

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