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.

 

 

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
Answer this question...

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

×
×
  • Create New...