Jump to content
  • 0

[HELP-JAVA]kenourgio type of character.


Question

Posted

tha ithela kanena guide plz an iparxei gia to pws dimiourgoume ena kenourgio tipo apo pekti..oxi race kai tetia. gia paradigma na dimiourgisw ena type me name: heroic.(mono na iparxei pos na to pw , onomastika) . auto zitaw mono apo esas...

gia na to epeksergasto tha to kanw monos m . gia paradigma thelw na kanw ena type heroic kai meta na pw gia paradigam:

if (activeChar.getPvpKills() == 200)

{

activeChar.setHeroic(true);

}

 

ala tora gia paradigma to Heroic to bgazei kokino giati dn iparxei.

[move]HELP PLZ[/move]

Recommended Posts

  • 0
Posted

if (activeChar.getPvpKills() == 200)

{

activeChar.setHero())

return; true

}

 

Esu agorina m ktlves ti sou eipe to paidi?telos pantwn 8a sou dixw poso apla ginete mia methodos

 

prwta apo ola ka8e methodos hero noble kai auta einai dhlomena boolean sto l2pcisntance

paradeigma

 

private boolean _maxcheaters = false;

 

meta i sunexeia 8a einai

public boolean isdonator() 
{ 
return_donator; 
}

 

  • 0
Posted

Esu agorina m ktlves ti sou eipe to paidi?telos pantwn 8a sou dixw poso apla ginete mia methodos

 

prwta apo ola ka8e methodos hero noble kai auta einai dhlomena boolean sto l2pcisntance

paradeigma

 

private boolean _maxcheaters = false;

 

meta i sunexeia 8a einai

public boolean isdonator() 
{ 
return_donator; 
}

 

erotisis:1)sti periptosi s ekanes to isDonator. omos to gia paradigma setDonator? tha iparxei otan kaneis to isDonator?

2)boolean _maxcheaters edw sto maxcheaters enoeis to donator?

  • 0
Posted

ti akiro itan auto more? diavase prin peis eleos

aa sry

import.net.sf.l2j.gameserver.model.instance.L2PCInstance

import.net.sf.l2j.gameserver.clientpackets.EnterWorld

import.net.sf.l2j.gameserver.model.L2Character

import.net.sf.l2j.gameserver.Heroic

 

public class Heroic;

 

{

if (activeChar.getPvpKills() == 200)

{

activeChar.setHeroic())

return; true

    }

}

 

 

isws doulepsi tr dn t dokimasa etc tr m vgike'

 

(Mpori n theli k alla imports dn exw katalavi ti akrivos thes n kanei t heroic ti ine? thes n tn kanei hero? apla valto allou opos sto edwsa gt gemizis m new java files t pack s?)

  • 0
Posted

sorry gia to doulbe post alla dn exw edit kai dn egrapsa oti h8ela sto prwto

 

ti akiro itan auto more? diavase prin peis eleos

Esu agorina m ktlves ti sou eipe to paidi?telos pantwn 8a sou dixw poso apla ginete mia methodos

 

prwta apo ola ka8e methodos hero noble kai auta einai dhlomena boolean sto l2pcisntance

paradeigma

 

private boolean _maxcheaters = false;

 

 

meta i sunexeia 8a einai

 

public static boolean ismaxcheaters()
{
    return _donator;
}

auto einai paradeigma na koitaei an einai donator

twra auto gia na kaneis set donator to method einai

public void setmaxcheaters(boolean maxcheaters)
{
donator = _donator;
}

einai polu aplo kai sto ka8e action apla 8a xrhsimopoieis tin methodo.

 

public void setmaxcheaters(boolean maxcheaters)
{
donator = _donator;
}

and change the

donator = _donator;

 

to

 

maxcheaters = _maxcheaters;

  • 0
Posted

aa sry

import.net.sf.l2j.gameserver.model.instance.L2PCInstance

import.net.sf.l2j.gameserver.clientpackets.EnterWorld

import.net.sf.l2j.gameserver.model.L2Character

import.net.sf.l2j.gameserver.Heroic

 

public class Heroic;

 

{

if (activeChar.getPvpKills() == 200)

{

activeChar.setHeroic())

return; true

    }

}

 

 

isws doulepsi tr dn t dokimasa etc tr m vgike'

 

(Mpori n theli k alla imports dn exw katalavi ti akrivos thes n kanei t heroic ti ine? thes n tn kanei hero? apla valto allou opos sto edwsa gt gemizis m new java files t pack s?)

pali den katalaves..tcpa asto
  • 0
Posted

aa sry

import.net.sf.l2j.gameserver.model.instance.L2PCInstance

import.net.sf.l2j.gameserver.clientpackets.EnterWorld

import.net.sf.l2j.gameserver.model.L2Character

import.net.sf.l2j.gameserver.Heroic

 

public class Heroic;

 

{

if (activeChar.getPvpKills() == 200)

{

activeChar.setHeroic())

return; true

    }

}

 

 

isws doulepsi tr dn t dokimasa etc tr m vgike'

 

(Mpori n theli k alla imports dn exw katalavi ti akrivos thes n kanei t heroic ti ine? thes n tn kanei hero? apla valto allou opos sto edwsa gt gemizis m new java files t pack s?)

agori m ktlveneis oti to paidi zhtaei na ma8e pios ftiaxneis mia methodo?esu tou dineis ena kainourgio class to opio dn uparxei kan esu ftiaxneis apla ena arxeio kai petas mesa auto pou 8es? epishs to return ; true dn uparxei exw bare8ei na blepw apo olous na grafoun mlkies kai oti tous katebei nai dn lew 8es na boh8hseis alla me auton ton tropo dn boh8as.
  • 0
Posted

agori m ktlveneis oti to paidi zhtaei na ma8e pios ftiaxneis mia methodo?esu tou dineis ena kainourgio class to opio dn uparxei kan esu ftiaxneis apla ena arxeio kai petas mesa auto pou 8es? epishs to return ; true dn uparxei exw bare8ei na blepw apo olous na grafoun mlkies kai oti tous katebei nai dn lew 8es na boh8hseis alla me auton ton tropo dn boh8as.

 

kala r mia idea edwsa dn ine tropos aytos ok ekana 1 lathaki dn iparxi (t exw xrisimopoiisi s dika m mods k litourgise tr ti n pw tecpa) dn ine anagki n nevriazis dn poli katalava

  • 0
Posted

krash euxaristw re file ilikrina ;). kai gia na min se prizw gia 1 method san auto pou 8elw egw (idos char) prepei na kanw mono auta ta 3 methods?dld:

isHeroic,setHeroic,kai to boolean?

  • 0
Posted

kala r mia idea edwsa dn ine tropos aytos ok ekana 1 lathaki dn iparxi (t exw xrisimopoiisi s dika m mods k litourgise tr ti n pw tecpa) dn ine anagki n nevriazis dn poli katalava

Ema dn neuriazw alla exakolou8eis na les pragmata pou dn ginontai.
  • 0
Posted

krash euxaristw re file ilikrina ;). kai gia na min se prizw gia 1 method san auto pou 8elw egw (idos char) prepei na kanw mono auta ta 3 methods?dld:

isHeroic,setHeroic,kai to boolean?

 

private boolean _heroic = false;

 

public static boolean isheroic()
{
     return _heroic;
}

 

public void setheroic(boolean heroic)
{
heroic = _heroic;
}

Auta monaxa.

Guest
This topic is now closed to further replies.


  • Posts

    • Use l2tower for free, or try adrenaline. @Alex K.
    • 🎁 Double the Impact, Half the Cost! from 25/10/2025 until 25/12/2025 Buy or Renew your Donation Panel now and save 50% because supporting others should reward you too. 💡 Use code BLACKFRIDAY at checkout! https://hopzone.eu/store/product/26-donate-panel-v5/   About Donate Panel v5 PAYMENT IN EASY 5 STEPS Login with your character name. Select the donation service (Paypal Stripe Payeer MercadoPago 🆕). Select the amount of payment. Pay. 😎 Automatically recieve the reward ingame (and yes) while he is online! 🤯 PAYMENT METHODS Paypal Stripe accepts credit cards, debit cards, ACH transfers, Apple Pay, Google Pay, Microsoft Pay, and various local payment methods from around the world. Payeer accepts BTC, LTC, ETH, DASH, BCH, USD, EUR, RUB wallets MercadoPago accepts ARS, BRL, CLP, MXN, COP, PEN, UYU. PROTECTION Full SSL website (can be forced by htaccess) XSS Protection just in case. Remove vulnerability headers in htaccess level Session Validation COOKIE, POST, GET global inputs are sanitized SQL Injection protection Query String protetion Prepared statements of PDO driver (no sql injection there) Google Invisible Captcha v3 (NEW) Last but not least security through obscurity SEO & PUBLIC MANAGEMENT SEO Friendly urls (in htaccess level) Google Analytics and GTAG Code ready. Terms of use ready to go Refund policy ready to go Contact All the TERMS text are showing config dynamic item images/text with server's name and more OPTIMIZATION AND SPEED Zip Content (faster load) Memory save (unloading global vars) Using CDN’s for bootstrap Scripts are loaded in footer Images are soft to max 10kb Small and smart organized code style FUNCTIONALITIES Multilanguage (4 languages so far) EN ES NL EL (Easy to add more) Payment methods Paypal, Stripe, Payeer and MercadoPago After payment or cancel the user is redirected back to “Thank you” page. TECHNOLOGIES Bootstrap 5x CSS PHP 5.6+ (for l2off) and PHP 7.4+ (for java) Extensions for php: MySQL (L2Java), pdo_dblib(L2OFF), pdo_sqlsrv(L2OFF), mssql_connect (L2OFF) and PDO Drivers that support MariaDB, MySQL, MsSQL. SYSTEMS Stripe and MercadoPago supports sandbox and live. Detailed and seperated Logs (ERROR, DEVELOPER, INFO, WARNING, PAYMENT) for website and Rest APIs. Detailed Log in database for Payments and services used. Google Analytics (You know when players are in the panel and if they pay) Google Captcha V3 Dynamic Icons to show according your Donate Item ID Multiple servers L2OFF or L2JAVA servers can be added together as server network     BE AWARE: Leaked versions of old v2 panels (year 2018 with bugs) are still out sold by scammers without support or knowledge of the files.
    • I work with Kenrix and he is a  next level coder. Hugely Recommended.
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Follow our Telegram channel, because exciting events are coming very soon! Halloween, 11.11, and also a giveaway related to 3000 subscribers in our Telegram channel are ahead! What do you think we have prepared? Subscribe to our Telegram channel and stay updated on all the news: https://t.me/accsforyou_shop Active links to SOCNET stores: Digital goods store (Website): Go Telegram store bot: Go – convenient access to the store via Telegram messenger. Telegram Stars purchasing bot: Go – fast and profitable purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to introduce you to the current list of promotions and special offers for purchasing products and services of our platform: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) in October! You can also use a promo code for the first purchase: SOCNET (15% discount) 2. Get $1 to your store balance or a 10–20% discount — just send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write it in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel — just open a ticket with the topic “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • 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 Disabled AdBlock