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

    • The project is a change to original l2 with modern game mechanics that is more "western". For example every race can craft, not just dwarves. Mages can cast spells without the need of a dedicated box MP charger. MP chargers are also able to solo farm and deal decent damage on their own. Paladins are now 2h sword dedicated healers/support dps. Drop rates are normalized among all classes, no longer needing spoil to craft.   The idea of the project is keep true to the old vanilla classic experience where you are rewarded for effort. And you must put effort into achieving things. Leveling is slow, gear wont be given to you, you must work towards obtaining upgrades. etc.   These are only a small portion of changes I am making to the game. I would love help and bounce design ideas off of others for some future content update ideas. Like can we design unique raid boss encounters? How about end-game content ideas? How can we make owning castles valuable? Maybe an instanced underground mining zone? Or unique raid fights that the clan can do for extra loot?    There's tons of ideas I have and I would like some help creating them.    This is not a paid project. It is a passion project with people who have a passion for l2 and wanna see the community grow.    Currently using client 418. 
    • It requires a lot of research and money to create something that is actually worth having on someones server. But again, even if something worth trying appears,  I dont even trust vanguard at this point, and its even worse if theres some kernel driver signed by a single person without a real company behind it to take the hit if something goes wrong. Thats a huge security risk. Most people are naive and untrained for thinking its okay to elevate permissions for an executable created by someone in their moms basement. The same goes for people who run compiled shared / paid sources and assume its fine, with nothing malicious running inside them.   A user with 13 posts suddenly appears. This is a tech forum, and developers are not here to flex. We are simply discussing the potential risks and reliabilty of the product, since that is the whole purpose of a discussion forum. Otherwise, it becomes no different from marketplaces. In addition, it is  reasonable to question someones capabilities based on their available public data. How do you go from selling web apps to working with such low level concepts that require a lot of specialized knowledge? Think again then before you buy from him with a blind eye.      The first statement contradicts the other one. You say you wont allow anyone access, but youre willing to explicitly run an anti cheat on your computer created by this guy. What exactly is your point?
  • 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..