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

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);

 

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...

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