Jump to content

Question

Posted

Φτιαχνω ενα δικο μου php top status διαδορετικο απο τα συνηθισμενα και δεν υπαρχει table char_templates.

Πως θα βρhσκω το class name?

 

Δηλαδη θελω να εμφανιζει το class name και οχι το class id που ειναι το μονο που βρησκουμε στην βαση μας!

ξερει κανεις?

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

μονο στο characters table υπαρχει το classid και base_class!!! Οχι ομως το class_name που το βρησκαμε στο char_template στα προηγουμενα client!

απλα δεν μπορω να βρω αυτο ωστε να το φτιαξω να λεει το class name!!!

Edited by Mukray
  • 0
Posted

μονο στο characters table υπαρχει το classid και base_class!!! Οχι ομως το class_name που το βρησκαμε στο char_template στα προηγουμενα client!

απλα δεν μπορω να βρω αυτο ωστε να το φτιαξω να λεει το class name!!!

Άρα αν δεν υπάρχει κάποιο table που να αντιστοιχεί τα id σε class names, θα μπορούσες να φτιάξεις ένα δικό σου table και να τα βάλεις εσύ.

 

Ο πίνακας θα είχε 2 columns, class_id και class_name και εσύ απλά θα τα αντιστοιχούσες και στην συνέχεια μπορείς να κάνεις ότι θέλεις από το php script σου.

  • 0
Posted

Δηλαδη θα βαλω ολα τα id των class στο classid και διπλα αντιστοιχα τα classname...

Δεν το σκεφτηκα... ευχαριστω φιλαρακι!! ;)

Να σαι καλα!!!

  • 0
Posted

Δηλαδη θα βαλω ολα τα id των class στο classid και διπλα αντιστοιχα τα classname...

Δεν το σκεφτηκα... ευχαριστω φιλαρακι!! ;)

Να σαι καλα!!!

Ναι, αυτό ακριβώς.

 

Παρακαλώ.

  • 0
Posted (edited)

Βασικά μπορείς να χρησιμοποιήσεις ένα switch μέσα στο php αντί να φτιάξεις ολόκληρο table στην Database.... Για παράδειγμα:

<?php
switch ($class_id) {
       case 0:
              $class_name = "Human Fighter";
       case 1:
              $class_name = "Human Mystic";
      .
      .
      .
       case X:
              $class_name = "Dwarven MYSTIC  xD ";
       default:
              $class_name = "Unknown Class;
}
?>
Edited by FreeTech

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Which file is responsible for the text in the footer on the login screen? The text at the very bottom... I've been searching for two days and I can't figure out how to edit it. Could someone help? I think I've checked almost all the files in the system and still can't find it.
    • I can see that the admins arent taking any action, yet they still seem willing to share information about various other people names and IP addresses. But when it comes to scams, no one reacts.      
    • Server Info Chronicle:  Interlude                                                                                                                                    XP: 100x | SP: 100x | Drop: 50x | Adena: 75x Enchant: Safe +3 |  Max +21 Website: Website Link Discord: Discord Link   WHY? When I was a teenager I had this idea. Build my own Lineage 2 server. My own rules. My own world. I wasn't a programmer. I had no idea how any of it worked. I tried, hit a wall, and quit. But the idea never left. I came back years later. Got further. Quit again. Watched friends try similar things. The idea stayed stuck in my head for fifteen years. I'm a developer now. I finally finished it. Not because I suddenly had more time - I have a full-time job and real responsibilities. An hour before bed if I'm lucky. That's actually exactly why I finished it.   The problem I kept running into I still love this game. But every server I tried as an adult made that one hour feel worthless. Log in, kill a few mobs, make no real progress, log out frustrated. The game was designed for someone with unlimited time. That person doesn't exist in my life anymore. I looked around. Everyone I used to play with has the same problem. Same love for the game. Same lack of time. Jobs, families, maybe an hour late at night. So I stopped waiting for someone else to build it.           WHAT? Custom starting zone in Gludin (up until 2nd profession start) Talent system - rebirth at level 80 and choose your talents Bounty hunter system - daily tasks to kill random monsters to receive great reward! Potion crafting system - custom HP/MP potions and recipes Custom 1st & 2nd class quests (shorter) Scheme buffer Shop until C grade   Visit our website to get more info: Website Link   The philosophy 95% of the game is completely soloable. No clan required. No raid schedules. No guilt when you have to log off. You are the solo director of your own session. Log in, pursue your goal for an hour, log out on your own terms. When you've conquered what you wanted - you stop naturally. A new season drops with fresh Talent Tree changes and you come back to build something completely different. No endless stretched grind. No pay-to-win. No shady admin decisions. No surprise wipes. I'm one developer who built this because I love it.                                          This is the server I needed fifteen years ago. Glad I finally had the skills to build it. Come see what I made. [Forever Lineage]
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..