Jump to content
  • 0

[help]Hero 4 ever donate


~SilveR~
 Share

Question

loipon 8a 8ela an gnt  na ftiaksoume ena code na kanei ton alon hero for ever mia kali idea einai na ftiaksoume ena new char type kai sto l2pcinstance na baloume

if (!isPermaHero)
        {
        activeChar.setHero(true);
        }

 

ala to 8ema einai pws na ftiaksoume afto to type  kai pws na kanoume ton char PermaHero?

an gnt  kapios  na boithisi plz :)

 

L2J CT2.3

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

if (activeChar.isDonator() && !activeChar.isHero())

{

activeChar.setHero(true);

}

 

enterworld.java

To 8ema einai pws 8a ftia3ei to isDonator class....

 

Kai pes pws enas einai kai hero kai donate..... tote den 8a einai hero me auto to code....

Link to comment
Share on other sites

  • 0

if (activeChar.isDonator() && !activeChar.isHero())

{

activeChar.setHero(true);

}

 

enterworld.java

pws 8a kanoume ton char donator omws?:)

 

kai esi file ekanes copy to post tou seteck (i opws ton lene :p ) gt sou zitisa PermaHero anw esi mou les gia donator kai Hero

Link to comment
Share on other sites

  • 0

Me ena private final int alla pos theleis na ginete ?b Ti na exei kanei aytos o char gia na einai herro for ever ?

8elei na to kanei  molis kapios kanei Donate na ginete kai hero.... Dld molis pernei to Donate class na ginete Hero...

Link to comment
Share on other sites

  • 0

re file koita  exw  sto server  m Hero For ever donate  e 8elw na ftiaksw  mia entoli pou na ton kanei  hero 4 ever px //permahero

kai sto pcinstance i sto enterworld 8a eiparxei afto :

 

if (activeChar.isPermaHero())

{

activeChar.setHero(true);

 

 

to 8ema  einai pws 8a ftiaksw  to Type: Permahero kai pws 8a ftiaksw to command

 

Link to comment
Share on other sites

  • 0

ok to eftiaksa :)

 

eftiaksa ena  field  sto Characters me name "hero" me epiloges 1 & 0 to ekana  reg sto l2pcinstance

se  afti edw tin line :

 

private static final String RESTORE_CHARACTER

 

kai meta  katw apo afto edw :

 

player.setNoble(rset.getInt("nobless")==1);

 

bazw afto:

 

player.setHero(rset.getInt("hero")==1);

 

dld an o character exei to field  1  einai hero :)

 

 

 

episis  an  8elete  etoimo command xriazontas  mono mia line  anti gia :

 

player.setHero(rset.getInt("hero")==1);

 

 

bazete :

 

player.setHero(rset.getInt("accesslevel")==5);

 

 

ala sto "access_levels"  sto  sto access  level 5 ekei pou leei isgm bazete 0 kai patate sto game  //changelvl 5

 

tixeo? de nomizw :P

 

 

 

LOCKED :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disbaled AdBlock