Jump to content

Recommended Posts

Posted (edited)

Don't use mysql (deprecated) / mysqli! There is PDO and nothing else. :lol:

 

Also, you can build something like a template engine...

For example:

 

index.php

<?php

function render($tplFile, array $data) {
    ob_start();
    extract($data, EXTR_SKIP);
    require "template/{$tplFile}";
    echo ob_get_clean();
}

$someData = [
    'title' => 'Cool Page Title',
    'text' => 'Some cool text'
];

render('home.php', $someData);
template/home.php

<!DOCTYPE html>
<html>
    <head>
        <title><?= $data['title']; ?></title>
    </head>
    <body>
        <div><?= $data['text']; ?></div>
    </body>
</html>
Edited by Tessa
Posted

I know pdo is used on the updated version.

First adding more donation options and debugging the system as best i can.

i will try to keep this in mind when i'm going to worry about templates ^^

Posted

It's not about templates. When you separate the HTML (also known as 'view') from the programming logic, your code becomes more readable. You can also separate the database logic and your application will be even easier to debug. :)

Posted

It's not about templates. When you separate the HTML (also known as 'view') from the programming logic, your code becomes more readable. You can also separate the database logic and your application will be even easier to debug. :)

 

I still prefer the good clean jsp and servlets

Posted

I still prefer the good clean jsp and servlets

PHP can be clean too, there are a lot of frameworks you can use to do that.

 

For a web apps I prefer Python + Django. Python is sweet, Django is powerful. :lol:

Posted

I'm not that good at coding. if something comes out, its mostly chaotic.

But yea i'm trying my best to give a free tool to the l2j community.

I'm mostly working alone at it so some help is welcome.

Maby giving ideas to better handle the code.

With example would be very usefull :)

  • 3 weeks later...
Posted (edited)

Yes i will explain it a bit on how to test.

 

Login: https://developer.paypal.com/webapps/developer/applications/ipn_simulator

Step1: choose your ipn file and select web accept:

8546e594-d0f2-11e5-9338-b30f01f1b338.png

 

Step2: check if its instant, confirmed and verified:

e00a54fe-d0f0-11e5-8946-cc45eae5b663.png

 

step3: you can select every donation option just change mc_gross and custom field:

66eaeb78-d0f1-11e5-842e-f07d08eb4f25.png

 

Options for custom field:

 

// Note for selecting the correct option (coins karma pk) use the correct mc_gross amount same as your config.
Charactername|Coins
Charactername|Karma
Charactername|Pkpoints

 

// These ones are for the enchant option.

charname|Enchitems|Shirt
charname|Enchitems|Helmet
charname|Enchitems|Necklace
charname|Enchitems|Weapon
charname|Enchitems|FullarmorBreastplate
charname|Enchitems|Shield
charname|Enchitems|Ring1
charname|Enchitems|Ring2
charname|Enchitems|Earring1
charname|Enchitems|Earring2
charname|Enchitems|Gloves
charname|Enchitems|Leggings
charname|Enchitems|Boots
charname|Enchitems|Belt

 

Change  MC_gross = donation amount. Same as your config otherwise the donations wont work.

It will get logged into admin/donationoverview because the donation amount is not correct.

 

And turn sandbox mode on in config if you are testing trough the ipn simulator. Otherwise it will also fail.

 

Edit: Also good to know this system is not tested good yet, and maby it could burn your server in the near future :P.

 

Still working on it i just dont have so mutch time lately to learn and code.

When i have more time i will try to make it better.

Edited by dasoldier
  • 2 months later...
Posted (edited)

Hey all,

 

I have shared a donation system.

Still improving it and try to solve problems i have encountered.

Note: Spanish is not in there yet.

https://github.com/Dasoldier1/Donation_Center

 

* register form

* Now players connect their character to their donation center account

 

5aaeba7c-29bd-11e6-903e-53b355093e91.jpg

 

5ad06a00-29bd-11e6-9bd6-46b5c4090123.jpg

 

It is exerimental so if you encounter some problems with the system inform us and we will look for a solution.

 

Greetings,

Dasoldier

Edited by dasoldier
  • 3 years later...
Posted (edited)

When you donate with a sandbox personal account to a sandbox business account, payment status is set to Pending for some reason and not Completed. So be aware guys

Edited by Zake

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
Reply to this topic...

×   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

    • Hello, I’m working on decrypting the Init packet that the server sends to the client during login. This packet is treated specially and contains the Blowfish keys used to encrypt and decrypt subsequent packets. Although it isn’t encrypted irreversibly and should be reversible, I haven’t succeeded yet. My goal is to extract the Blowfish key to decrypt certain client packets without disrupting the normal session flow. I can inject a DLL to sniff the packets, and with that I plan to develop a module that extends the client’s functionality. For example, after logging in, this module would capture all the data the client receives (character data, etc.). Additionally, it could listen for real-time server events, enabling integrations with Discord SDKs or other systems, thereby expanding Lineage 2’s capabilities. Init packet(0x00) LoginServer. Currently in the java Cores I checked there is no decode function for this package, only encript.
    • whats password from the archivie ?
    • All that shit are false positives of the vanganth cliext, sources are well and who sell it is a big scammer
    • Information Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription. Includes Git support and access to compiled or full source code. Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.   General Project Specifications: JDK Version: 23 -> 24 Chronicle: HighFive Structure: Core & Datapack merged into a single project Database: MariaDB Database Driver: HicariCP GIT Website: gitlab.com   Features include (but are not limited to):   1. Tournament Single & Party (Check Youtube Video) 2. Faction (Check Youtube Video) 3. Event Engine (Check Youtube Video) 4. Sell Buff System (Check Youtube Video) 5. Start UP System (Check Youtube Video) 6. User Panel 7. Visual - Dress me System 8. Donate Store 9. Automatic Farm System (Check Youtube Video) 10. Captcha (Anti-BOT) (Check Youtube Video) 11. Auction (Check Youtube Video) 12. Vote (API) 13. Admin Real Time Balance (Check Youtube Video) 14. Achievements (Check Youtube Video) 15. Daily Mission (Check Youtube Video) 16. A.I. Bot (Check Youtube Video) 17. Rebirth 18. Daily Reward  19. Skill Tree - Ability System 20. Craft System 21. Twitch Automatic Reward (Check Youtube Video) 22. Quiz Game (Check Youtube Video) 23. Automatic Item Enchant (Check Youtube Video) 24. Secondary Auth Using Google Authenticator (Check Youtube Video) 25. Gm Shop - Gatekeeper - Scheme Buffer   How to get Access (Payment Subscription): To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.  Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.   Price per Month (Source) in GIT: 250 Eur Price per Month (Compiled) in GIT: 100 Eur   Contact: To get Access or ask further information join discord  https://discord.gg/gKAsAhJNuq      
  • Topics

×
×
  • Create New...