Jump to content
  • 0

[HELP]Java get main class


Question

Posted

Hello thelw na kanw ena code telos panton....kai akouste.

 

Gia na diavasei to class pou o char ine auti ti stigmi einai: activeChar.getClassId

Egw thelw na diavasei to main tou class,ala pos tha to kanw auto?:/ mporeite na mou peite pos ine?

14 answers to this question

Recommended Posts

  • 0
Posted

Sto player instance, mpwreis na vreis methodous an den ksereis na dimourgis ena class apo tin arxh.

 

getClassId() == 6

 

Gia na parei ena singekrimeno class id... olla ta class exoun kai ena singekrimeno id, ean theleis na valeis kapoia singekrimena kapos etsi

 

getClassId() == 6 || 7 || 8 || 9 ktlp ktlp

  • 0
Posted

thelw na diavazei to Main...kai ginete to xw dei deathiwhisper palia. dld akou

otan ginotan announce ta hero elege hero of sagitarious class is online (gia paradigma). e afou elege sagitarious kserw gw...auto itan to main ara kapos to diavaze

  • 0
Posted

thelw na diavazei to Main...kai ginete to xw dei deathiwhisper palia. dld akou

otan ginotan announce ta hero elege hero of sagitarious class is online (gia paradigma). e afou elege sagitarious kserw gw...auto itan to main ara kapos to diavaze

 

Den katalavenw ti theleis.

 

An gynotan ayto einai apo to l2pcinstance i sto enterword chekari an o xaraktiras einai hero kai ti class einai activechar.getClass(); announce to all ktlp ktlp... des paradeigmata apo ton kodika........................................

                                                                                                                                         

  • 0
Posted

ne ala an o xaraktiras mpenei me subclass?katalaveneis ti lew?...den ginete kapos to ekanan gia na elegxei to main class

 

enowhs? dyskolo?

 

+ if(activeChar.isHero());

+     activeChar.getBaseClass();

+     Announcements.getInstance().announceToAll("Player" +activeChar.getName()+ " is Now Online!");

 

dokimase kai pes mou....

  • 0
Posted

den exw acces gia edit pos...

 

if(activeChar.isHero());

Announcements.getInstance().announceToAll("Player" +activeChar.getName()+ " Class " +activeChar.getBaseClass()+" Is Now Online!");

  • 0
Posted

A Gia sou doulepse auto ithela tosi ora! :P

 

Ayto htan ena pradhgma... den eimai edw gia na sou kanw code ton server sou.

 

Gia na mathenis pio polly ...

 

 

  • 0
Posted

Ayto htan ena pradhgma... den eimai edw gia na sou kanw code ton server sou.

 

Gia na mathenis pio polly ...

 

 

δεν exo kan server,apla eksaskoume...kai ne iksera pos na to kanw apla den iksera ti methodo baseClass...ala esi gia paradigma pou tin vrikes? tin ikseres ap eksw?
  • 0
Posted

δεν exo kan server,apla eksaskoume...kai ne iksera pos na to kanw apla den iksera ti methodo baseClass...ala esi gia paradigma pou tin vrikes? tin ikseres ap eksw?

 

Sou eipa na chekareis to L2PcInstance gia methodous...

 

Packets analysis.... ktlp

 

Kai analoga pou vazeis ton kodika... kanei kai tin analogh leitourgeia mesa sto pexnhdh... ektos kai an dhloseis ena path apo mono tou...

 

Kai dhmiourgeisis kodika apo 0.

 

Alla einai gia pio advanced user.

  • 0
Posted

Den katalavenw ti theleis.

 

... activechar.getClass(); ...

                                                                                                                                         

 

Kai gia na paradoso kai ego ena mathima , ayto to getClass() den exei kamia sxesi me to class tou player. Einai sinartisi pou klironomei kathe Object apo to Object tis java kai epistrefei to .class definition gia to sigekrimeno object. Kamia sxesi me to getClassId().

 

Episis to getBaseClass() sou epistrefei to basiko class, alla san ID. Gia na pareis plirofories me basi ayto to id, trabas apo to PcTemplateTable.

 

Gia na mathenis pio polly ...

Same goes to you :)

  • 0
Posted

Kai gia na paradoso kai ego ena mathima , ayto to getClass() den exei kamia sxesi me to class tou player. Einai sinartisi pou klironomei kathe Object apo to Object tis java kai epistrefei to .class definition gia to sigekrimeno object. Kamia sxesi me to getClassId().

 

Episis to getBaseClass() sou epistrefei to basiko class, alla san ID. Gia na pareis plirofories me basi ayto to id, trabas apo to PcTemplateTable.

Same goes to you :)

 

An exeis kati na protineis dwse kodika kai oxi mathimata.

 

Efoson den katalavena ti zitaei... apo tin arxh... den mporo na mpentepso... an exeis kai yperfisikes idiotites pao paso.

 

 

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

    • Very nice attempt and good luck with your sales.   Don't let the voices in this topic discourage you. Most of those people are just flexing. So if Celestine decides to write a bootkit or hook system calls or whatever and false-feed your anti-cheat fake info just because it sits in user mode just to go play in a private server with 100 people, I'll tell you one thing:   Who the fuck cares ... 😛   The average player won't / can't make these things, the big players like adrenaline won't bother (yet) (they don't have signed drivers do they ? They also run in user mode I believe). And even if they somehow manage to do so, there's a minority of players who would trust putting this thing on their pc. I wouldn't let anyone tamper with my kernel mode even if he had a signed certificate from Microsoft.    Also, in a scene where collusion has been brought out between bot makers and cheat guards, having many options is a blessing regardless of their strength. It makes colusion, conflict of interest and cartel more difficult, it drains from cheating software creators more resources to focus on more cheat guards, and it gives server owners plurality.    This arms race is a numbers game, you stop 90% of the cheaters you add value to all of us.    A couple of senior devs flexing their powers in a forum are not a concern.   If i'd ever make a server, I would definitelly buy from you, not because you have the best anti-cheat, but because you are not well known yet to be the focus of counter measures.     
    • TILL OPENING LEFT LESS THAN - 2 DAYS ! GRAND OPENING FROM - 10/07/2026, FRIDAY, 20:00 +3 GMT !
    • Add me on discord, lets talk   Discord: splicho
    • Add more information about your project, client, rates etc, this can help you find a developer more easily on your needs!
    • Hey guys! I am working on a new l2 private server and lookin for any developers who may be interested in helping me get it up n running. It would require a ton of work at the beginning, but once I am able to handle things on my own, I can do a lot of the work too. I just need someone who is tech savy to help me get things setup, make serious edits, and help me get this project going.   So far I have the project running on Java through eclipse. I have the server up locally, and pushing to GitHub. I just need help with managing edits to quests, skills, and other random functions to get me rolling.   Please reach out if you are interested!   Some current content I am working on: - Class skill edits - NPC skills, stats, and placements - Quest icons for turn in, completion, pick up etc - Quest logic (i.e. kill x mobs, turn in y amount, trigger a mini solo or mini group boss fights) I can handle the quest texts and story - Ability to more quickly upload changes to inventory, crafting, NPC stats/drops, etc... and gear setup. I would like to quickly add new recipes to shops or mob drops so players can start crafting it themselves
  • 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..