l2redkiller Posted March 24, 2011 Posted March 24, 2011 Heya anyone have the know how to create a code for that ?? Thanks for help Quote
0 vampir Posted March 24, 2011 Posted March 24, 2011 u mean like, when some1 participate to olympiad, he is losing 1kk adena? i think, wouldnt be so hard Quote
0 l2redkiller Posted March 24, 2011 Author Posted March 24, 2011 ye something like that just need in config itemid and amount of it :D will be nice for help thanks Quote
0 Matim Posted March 24, 2011 Posted March 24, 2011 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) { } Quote
0 l2redkiller Posted March 24, 2011 Author Posted March 24, 2011 /** * @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 ? Quote
0 Matim Posted March 24, 2011 Posted March 24, 2011 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. Quote
0 Matim Posted March 25, 2011 Posted March 25, 2011 okay i try and try We can always provide some hint/tips aswell. Quote
0 l2redkiller Posted March 25, 2011 Author Posted March 25, 2011 i try more if i am back @home :P Quote
0 SlyWhiteSheep Posted March 25, 2011 Posted March 25, 2011 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 Quote
0 mogo Posted March 26, 2011 Posted March 26, 2011 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? Quote
Question
l2redkiller
Heya anyone have the know how to create a code for that ??
Thanks for help
10 answers to this question
Recommended Posts
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.