Jump to content

Recommended Posts

Posted

Παρατήρησα οτι πολλα άτομα ψαχνουν και αναφερουν πως δεν βρισκουν κατι για να σηκώσουν την κατασταση του server στο web site τους.

Για τον λογο αυτο έγραψα μια σελίδα php της οποίας τον κώδικα μπορείτε να τον κανετε προσθήκη σε όποια σελίδα δική σας θέλετε.

Ειναι στην ποιο απλή μορφή και παιζει σε όλες τις εκδόσεις L2, καθως επίσης μπορείτε να την χρησιμοποήσετε σαν server status για οποιοδήποτε server, ακομα και για web server αρκει να δώσετε ip διεύθυνση και port.

Kαντε τον κωδικα copy - paste σε ενα εγγραφο κειμενου και αποθηκεύστε το με ενα ονομα σαν php (παράδειγμα  status.php)

Γραψτε τα δικά σας IP, Port για Login, Game και Community server.

Ρίξτε την στον server σας και απλα τρέξτε την.

 

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html><head>Hello from Tr@c3R, support to email: Astald.tor@gmail.com</head>

<br><br>

<body><?php

$LServerIP = "127.0.0.1";

$LServerPort = "2106";

$GServerIP = "127.0.0.1";

$GServerPort = "7777";

$CServerIP = "127.0.0.1";

$CServerPort = "9013";

$TimeCheck = "2";

if (! $CheckSocket = @fsockopen( $LServerIP, $LServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Login Server OFF</b></font><br>'; else{ echo '<b><font color = green >Login Server ON</b></font><br>';

fclose($CheckSocket); }

if (! $CheckSocket = @fsockopen( $GServerIP, $GServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Game Server OFF</b></font><br>'; else{ echo '<b><font color = green >Game Server ON</b></font><br>';

fclose($CheckSocket); }

if (! $CheckSocket = @fsockopen( $CServerIP, $CServerPort, $num, $error, $TimeCheck ))

echo '<b><font color = red >Community Server OFF</b></font><br>'; else{ echo '<b><font color = green >Community Server ON</b></font><br>';

fclose($CheckSocket); }

?>

</body></html>

 

 

 

 

το $TimeCheck καθοριζει τον χρονο ελεγχου οταν ο server ειναι OFF, δηλαδή ποσα sec θα περιμένετε να απαντησει (οταν ειναι ΟΝ γινεται άμεσα).

τo $LServerIP = Login Server, $GServerIP = Game Server, $CServerIP = Community Server (συνήθως ειναι στον ιδιο server οπότε ειναι ιδια).

στα $xServerPort  εβαλα τα default των pack.

 

Αν θελετε να προσθέσετε εικονίδια ή φωτάκια για την κατάσταση αντικαταστήστε τα κιτρινα με τα πρασινα γραμματα:

echo '<b><font color = red >Game Server OFF</b></font><br>'; else{ echo '<b><font color = green >Game Server ON</b></font><br>';

echo '<img src="/images/ServerOFF.jpg" /><br>'; else{ echo '<img src="/images/ServerON.jpg" /><br>';

 

Δημιουργήστε αν δεν υπάρχει ενα φακελο με ονομα images και τοποθετήστε μεσα τις δυο εικόνες, μια οταν ο server ειναι down και μια οταν ο server ειναι UP, σαν παράδειγμα έβαλα ServerON.jpg και ServerOFF.jpg (μπορει να ειναι jpg, gif ή png)

 

 

Posted

Σωστό script αλλά δεν δουλεύει αν έχεις κλειστή την fsockopen από τις ρυθμίσεις της php σου. Πολλοί web-hosters όπως το papaki ας πούμε την έχουν κλειστή by default.

Posted

Ναι ετσι ειναι αλλα συνήθως αυτο συμβαίνει σε virtual servers που χρησιμοποιούν control panel και δεν εχουν apache server.

Παραυτα μπορεις να μπεις στο panel και να ρυθμισεις το php.ini και να την ανοιξεις. Ο λογος που την κλεινουν μερικοί ειναι απλα τα ping ελέγχου κατάστασης. Οι περισσοτεροι ομως καλοι servers ειναι dedicated και τρεχουν php server.

 

Αν θελει κανεις να κανει ελεγχο αν ειναι ανοικτη η fsock μπορει να χρησιμοποιήσει τον εξής κωδικα:

 

<?php

If ( function_exists ("fsockopen"))

       { echo 'isOpen';}

else { echo 'isClose';}

?>

 

και αν ειναι ανοιχτή χρησιμοποιεί το share, διαφορετικα την ανοίγει και αν δεν θελει να την ανοίξει βρήσκει αλλο τρόπο.

Στον δικό μου server χρησιμοποιώ VB.net προγραμματακι που εγγραψα για να με ενημερωνει για το site και μου στελνει μυνημα σε mail και στο κινητό μαζι με τα στατιστικα του server ( οχι μονο βεβαια για το L2 αυτό, για ολα τα sites και forums).

Posted

δουλεύει και htm/html αν προσθέσεις στο  htaccess αρχείο την σειρα εντολή:

AddHandler application/x-httpd-php52 .php .htm .html

 

αυτο για apache, για ιιs συνήθως ειναι ενεργό ή δεν θα παιζει php γενικώς οποτε εχεις αλλα προβλήματα.

  • 3 weeks later...
Posted

Well my server is up i've putted the Login Server IP, Game server ip & CB ip and on the web-site it says down... any hints?

Posted

Some packages manage different the CS. Try to remove the CS in the first phase. There is an explanation of the grill. It works just like the Post. Only checkout if fsock is open in htaccess.

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

    • Продам комплекты (Custom Colour) Apella Сеты. Контакт со мной/Contact with me  Telegram. Custom Colour Apella Light YouTube Video
    • haha, I don't say it, chatgpt says it. discuss it with him if you have problems 😉 or sue chatgpt for lying, for example when he tells you that you are an idiot and tells you that I do things that are light years ahead of you.
    • hey i make enough to live comfortably you, on the other hand... doubt that'd be the case if you were as competent as you claim to be
    • all your doubts ask chatgpt, also ask what you could do yourself hahaha
    • This post originally appeared on MmoGah. Odin: Valhalla Rising is an ambitious open-world MMORPG developed with Unreal Engine 4, offering breathtaking visuals and immersive gameplay. I will share everything you need to know before starting it.     Re-rolling In Odin, re-rolling isn't a practical strategy. Unlike most gacha games, where it's common to reset for better initial pulls, Odin focuses heavily on long-term growth. The earlier you begin playing and developing your character, the more advantages you'll gain over time. Instead of spending your efforts on re-rolling for ideal equipment, it's better to dive in and start progressing right away.   Server Selection Before starting your character, selecting a server is a crucial step. Since Odin doesn't support cross-server gameplay, coordinating with your friends, family, or guildmates is essential to ensure everyone creates their characters on the same server. Take the time to plan with your group beforehand. After deciding on a server, your next major choice will be picking a class.   Class Breakdown Odin features four primary starting classes: Warrior, Sorceress, Rogue, and Priest. Each class comes with its own distinct playstyle and unique strengths, so choose wisely, as your selection is permanent. However, even free-to-play players can create up to three characters on one server, giving you the flexibility to try different options and find the one that matches your preferences.   Quest and Leveling Once your character is created, your initial objective is to work through the main questline. This acts as both a tutorial and a method for early leveling. Odin simplifies the process with a convenient quest button that handles navigation, starts dialogues, and even enables auto-combat. This user-friendly feature allows beginners to grasp the basics of the game without feeling overloaded.   Auto Combat and No Kill-steal Mode Auto combat is an essential feature in Odin, enabling your character to battle monsters autonomously. This system allows you to effortlessly gain experience and loot, even while you're busy studying, cooking, or unwinding. To optimize its use, activate the no-kill-steal mode. This setting prevents your character from targeting monsters already engaged by other players, helping you avoid conflicts or potential PvP situations. However, if a quest becomes difficult to complete due to overcrowded areas, you can temporarily disable this mode to overcome the obstacle and move forward.   Item Management and Potions Don't overlook the importance of consumable items, especially health potions. These can be purchased, along with buffs, from general merchants in villages, and they play a crucial role in improving your combat efficiency and ensuring your survival. Always aim to keep a full stock of HP potions and carry buffs that boost attack, defense, or regeneration in batches of 5-10 for convenience.   Once you've acquired your consumables, assign them to your quick slots located at the bottom center of the screen. Swiping down activates these slots, and items like potions will automatically be used when necessary, so you don't need to worry about them mid-battle. Keep a close eye on your potion reserves, as running out during a tough fight could leave you vulnerable before reaching a safe area. In the early stages of the game, it's better to return to town for a restock if supplies are low rather than risking unnecessary defeats. You can also enable notifications to alert you when your health or potion count drops too low—a handy feature for staying prepared if your attention is elsewhere.   Leveling and AFK Farming Once you've mastered the fundamentals, the next step is to focus on leveling up and enhancing your character. Gaining levels is your primary source of progression early on, as it not only improves your stats but also unlocks crucial game features and new abilities. At this stage, simply sticking to the main questline provides a reliable and efficient way to gain experience.   Additionally, Odin includes a highly convenient idle feature called AFK mode. This allows your character to keep farming for resources and experience even when the game is closed, with a maximum duration of 8 hours per day. It's an excellent option for making progress while you're asleep, commuting, or otherwise occupied.   Gear Upgrades When the time comes to improve your gear, the initial focus should be on upgrading from normal-grade equipment to high-grade items. These provide significantly better stats and can be enhanced further to increase their effectiveness. Enhancing requires enhancement stones and gold, but it's important to stay within the safe enhancement limit. Attempting upgrades beyond this limit carries the risk of destroying your gear if the enhancement fails. Stick to safe enhancements until you've gained more experience and accumulated spare equipment to mitigate potential losses.   Skill Purchases When you've accumulated enough gold, it's time to invest in skills. These are crucial for enhancing your combat abilities and provide key benefits tailored to your class, whether it's increasing damage output, improving healing capabilities, or adding valuable utility. Before purchasing, ensure your character meets the level prerequisites for each skill. Your ultimate goal will be progressing through and completing the main questline in Midgard as you continue to develop your character.   Unlocking Jotenheim Finishing this milestone grants you access to the next region, Jetunheim, unlocking a variety of new content and challenges. This marks your first significant achievement in the game and is an essential early objective to strive for as you progress.   Joining a Guild Joining a guild is a highly beneficial step in Odin. Guilds not only provide opportunities for social interaction and group activities but also offer passive bonuses that can significantly enhance your gameplay. Even if you're not particularly active socially, being part of any guild is advantageous. The guild feature becomes accessible after completing Chapter 4, Quest 19 of the main story.   Guilds provide various perks, including buffs that scale with the guild's level. Additionally, you can earn guild coins by contributing through donations, quest completions, or regular logins. These coins can be exchanged for valuable rewards, such as epic-grade armor. The more you actively contribute to your guild, the greater the overall benefits for both you and the guild itself. Joining early and staying involved will undoubtedly strengthen your progression in the game.   Conclusion Here is the end of this beginners' guide. I hope these tips will help you level fast in Odin.
  • Topics

×
×
  • Create New...