Jump to content

Question

Posted

Hey guys i found that code which is supposed to be at data/scripts/custom and not inserted via eclipse.

 

There is 1 file named poker.java ..i tried to adapt it for L2JFrozen but I still got problems that I don't know how to fix..If anyone has the knowledge and the skills to do that it would be pretty nice...Here's the code:

 

http://pastebin.com/3YDFAdhW  (it was too long to post it here)

 

Here you can see the ERRORS I get :

1. https://postimg.org/image/d9qog45bd/

2. https://postimg.org/image/3yx7773a7/

3. https://postimg.org/image/vfc9r2vnl/

4. https://postimg.org/image/us7fv7td1/

5. https://postimg.org/image/77gr6jg85/

 

and here is the original code posted on maxcheaters: http://www.maxcheaters.com/topic/115260-poker-game/

5 answers to this question

Recommended Posts

  • 0
Posted

Sweets, I can't learn how to use java or anything else that has to do with it..I don't have the knowledge to adapt it...All i know is simple things...like changing the imports and some other staff that you've told me or you've posted here on maxcheaters..All I can do is ask for some help ..if someone can help me then ..great! I'd be very thankful...if anyone can't help me then I can't do sth about that...i'll just have to move on and simply skip those codes..thanks for ur time!

  • 0
Posted (edited)

That's what I'm trying to say. Everyone was in the same place. Everything looks hard, I know that. That's what I'm trying to say, if you can't then skip the code. Find another code to adapt, play with. Slowly, with time when you understand how given line works - you find out that other files use the line that you have error - you know the solution.

 

In short, if you don't know to +-, then don't try to learn how to *. :P

 


 

Add this code in Eclipse as well, so you get erros, tips, solution from Eclipse side.

 

About htm issue and other things, a tip. Use search in Eclipse and search for "HtmCache.getInstance()" you will get many results, compare both structures and you will find out what to remove.

Edited by SweeTs
  • 0
Posted

Thanks for your advices I really appreciate that ..keep on staying positive and helping people..But before posting I had already tried it on eclipse and that's why i thought i should come here and post it to get some help..I did everything I could possibly do :P

But anyway..Thanks again for your time and your help :)

 

*Don't forget to be nice to ppl y'all.

  • 0
Posted (edited)

drop getHtmlPrefix, as it's for H5.

String content = HtmCache.getInstance().getHtm("data/html/teleporter/50000.htm");

The cash, must be int, not long - currency check for adena was * long value, as in H5 it's using long.

player.destroyItemByItemId("PokerAdena", currencyId, cash, null, true)
Edited by SweeTs

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