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.



  • Posts

    • Dear players, We remind you, that on April 11 at 18:00 server time (GMT +2), the open beta test of our upcoming Chronicle 2 update will begin! To participate in open beta testing, download the client from one of the links below. Download links: Download client | Download updater
    • MoMoProxy Offers $850 for 1TB Plan. anyone interested in can view details as follow: https://momoproxy.com/residential-proxies
    • Yes there are many problems. Im trying to fix there slowly, cause i i put already a lot of work in this files. I think it will not be easy to move the project to other builds
    • You probably wanted to write l2jmobius. I would recommend that you change the build because it has a lot of problems with the movement of npcs and players. Even if you find bots you will have to correct the movement or the bots will get stuck, fly, teleport
    • Complete Server Pack + Source Files: C4 Scions Of Destiny: P656 Retail X1 L2OFF Server Pack + Source: Price: 100EUR --------------------------------------------------------------------------------------------------------------------------------------------- C4 Scions Of Destiny: P656 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR -------------------------------------------------------------------------------------------------------------------------------------------- C6 Interlude: P756 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 150EUR The same as C4 but in C6 Client  ----------------------------------------------------------------------------------------------------------------------------------------------   C6 Interlude: P746 L2Gold L2OFF Server Pack + Source: Price: 150EUR   https://imgur.com/a/pts-l2gold-interlude-p746-9kB3oA9#MbP2aJh -------------------------------------------------------------------------------------------------------------------------------------------------   C6 - Classic Interlude: P110 ESL2 Athena x45 L2OFF Server Pack + Source: Price: 350EUR   https://imgur.com/a/pts-l2off-p110-classic-interlude-athena-x45-Z2kZxuv#YlZU9hF -------------------------------------------------------------------------------------------------------------------------------------------------   DISCORD - MMOPROMOOO TELEGRAM - MMOPROMO 
  • Topics

×
×
  • Create New...