Jump to content
  • 0

L2 Site Script


Question

Posted

Paidia mpori kapios na me boh8isei me ena mono script gia n  mporw meta na ta kanw monos m?

 

p.x

Auto to script ti 8a alla3w k pou 8a to anebasw gia na douleuh??

Einai gia ta top 10 player..To brika apo ena site p ekana download.

 

 

 

14 answers to this question

Recommended Posts

  • 0
Posted

Exo kanei ena guide pou sou leei to pos na kaneis add + edit ta arxeia gia to website sou.

 

An psakseis , tha to breis . ' how to edit your website using ftp client '

 

Sto meros pou lew pos na baleis ta arxeia sto website sou , esy bazeis auta ta php scripts.

 

PS : Prepei na kaneis edit ta configs , gia na mporei na sindethi me ton server sou. Mysql ktlp.

  • 0
Posted

Exo kanei ena guide pou sou leei to pos na kaneis add + edit ta arxeia gia to website sou.

 

An psakseis , tha to breis . ' how to edit your website using ftp client '

 

Sto meros pou lew pos na baleis ta arxeia sto website sou , esy bazeis auta ta php scripts.

 

PS : Prepei na kaneis edit ta configs , gia na mporei na sindethi me ton server sou. Mysql ktlp.

Wraia file 8a to psa3w..

Pirazei p o server einai se allo pc k to script se allo?

dld prepei n einai k ta 2 se ena?

  • 0
Posted

Wraia file 8a to psa3w..

Pirazei p o server einai se allo pc k to script se allo?

dld prepei n einai k ta 2 se ena?

 

Einai kalitero na exeis kai to site + ton server se ena pc.

 

Allios an exeis ton server kai to site se diaforetika pc , tha xriasteis ena allo php script to opoio tha sindeei to site me ton server sou. ( bazontas ip's etc. )

  • 0
Posted

Ok file..

Exw auto to code...

<?php

//first you need to define db info

 define('mySQL_hostname', '127.0.0.1'); pws 8a dw to hostname apo to mysql?  //database IP

 define('mySQL_database', 'Database');pws 8a dw to onoma apo tin database?? //database name

 define('mySQL_username', 'User')To user einai root?;  //database user

 define('mySQL_password', 'Pass') ean dn exw kodiko ti bazw??;  //database password

 

//connects to mysql

 $db_link = mysql_pconnect( mySQL_hostname, mySQL_username, mySQL_password )

   or die( 'Error connecting to mysql<br><br>'.mysql_error() );

 

//connects to Database

 $db_select = mysql_select_db( mySQL_database, $db_link )

   or die( 'Error connecting to Database<br><br>'.mysql_error() );

 

//selects desired table

  $chars=mysql_query("SELECT * FROM characters");

 

//tells how much rows are there (will come helpfull with while loops)

  $rows =mysql_numrows($characters);

 

  $i=0;

  $x=0;

 

//while $i is smaller than number of rows repeat the code

  while ($i < $rows) {

   $online=mysql_result($chars,$i,"online"); //looks into characters table, under column online(if player is online its "0" else "1"), at row $i

   if ($online == 1) { $x++; } // if column online at row $i is "1", increase $x

   $i++; //increase $ia

   }

  print 'Online players:<em>'.$x.'<em>'; //prints out the $x number of players online

?>

Auto to code pws 8a to fria3w dld 8a ani3w ena notepad k 8a to kanw c/p??

Pws mporo na brw script..?Search---> Site script??

  • 0
Posted

To mySQL hostname eine localhost.

 

To onoma tis database sou tha to breis apo navicat.

 

To username tis db eine sinithos root.

 

An den exeis password , den bazeis tipota.

  • 0
Posted

File akoma kt pws to ftiaxno anige notepad k c/p?

To onoma tis database dld l2jdb?

 

Notepad i wordpad . Oti se boleuei.

 

An exeis auto to onoma gia database , nai.

  • 0
Posted

Kai meta anigw smartftp k to bazw mesa ekei?

 

Nai . Kserontas omos prota pos na ta kaneis install . Den ta bazeis opou thes.

  • 0
Posted

Nai . Kserontas omos prota pos na ta kaneis install . Den ta bazeis opou thes.

 

:S:S mesa sto guide s ta leei auta?

  • 0
Posted

:S:S mesa sto guide s ta leei auta?

 

Einai to idio . Kai ta arxeia enos template .php einai.Min agxonesai kai tha ta katafereis.

 

Request to lock.

Guest
This topic is now closed to further replies.


  • Posts

    • in conclusion when somebody who has a project for 10+ years still on development writes an e-say to try until you succeed and then advertises his project, one of the reasons is he needs money, so l2j has once more become pure expensive hobby, you wont make money out of it.   You can still use L2jFrozen and get better results for this, i know some people that done it    keep in mind that C in aCis stands for Crappy, and after all these years its not a cool wordplay anymore, its a fact, prove me wrong.
    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
  • Topics

×
×
  • 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