Jump to content
  • 0

Hallo Guys Someone Can Help Me Please!


Question

Posted

Hallo guys someone can help me please, i add the phoenix event engine in my server so when i save the file, in 3 java files i take this error:

I need your help guys, thanks in advance a lot
PS:Sorry for my English :)

IMG_07042016_141658.png

Recommended Posts

  • 0
Posted (edited)

whats the difference between

 

if (activeChar instanceof L2Monster)

{

 

}

else if (activeChar.getClass() == L2Monster.getClass())

{

 

}

 

is it wrong? Is there any difference? 

You cannot do L2Monster.getClass() , but you can do L2Monster.class

The difference is that instanceof might also return true if monster is raid boss (e.g. L2RaidBoss) which extends L2Monster

Also instanceof allows null, wouldn't throw NullPointerException if activeChar is null

 

p.s. getClass() is not static method, requires instance of Object in order to access

Edited by UnAfraid
  • 0
Posted (edited)

You cannot do L2Monster.getClass() , you can do L2Monster.class

The difference is that instanceof might also return true if monster is raid boss (e.g. L2RaidBoss) which extends L2Monster.

 

p.s. getClass() is not static method, requires instance of Object in order to access

 

yeah thats why I wrote .class in the first place, the typo () confused me, when elfo tried to correct me

 

One could use class comparing if he wants only a specific class, thats right. Its also much faster than instanceof if you know what you're doing.

Edited by xxdem
  • 0
Posted (edited)

yeah thats why I wrote .class in the first place, the typo () confused me, when elfo tried to correct me

 

One could use class comparing if he wants only a specific class, thats right. Its also much faster than instanceof if you know what you're doing.

You shouldn't worry about which one is faster, the difference is probably in nano seconds, its mostly matter of personal choise, in L2J we decided to make methods like isPlayer(), isPet(), isMonster() not because they're faster, but mostly because it shortens the code, avoids imports, and looks better.

 

Anyway back on topic, @antoskasas123.

Show us screenshot of this exact method, more important, what type it returns, or gist / pastebin your L2Skill class.

(You can click on the method and press F3 and eclipse will lead you to the declaration, thats what i want to see)

Edited by UnAfraid
  • 0
Posted (edited)

Teach us UnAfraid <3 especially xdem.. he is still in highschool. He never passed history. He is still an ape :3

 

[GR] "Σαγαπησα, μαγαπησες, ημασταν 1-1. μα πηρες τ ______ μου κερδισες 3-1" για παρτη σοu Xdem [GR]

Edited by AccessDenied
  • 0
Posted

Oute kan katalaves ti eipe, kai an tou arxiseis na tou milas agglika gia na katalavenei poso ili9ios eisai 9a se midenisei kai aftos

  • 0
Posted

yeah thats why I wrote .class in the first place, the typo () confused me, when elfo tried to correct me

 

One could use class comparing if he wants only a specific class, thats right. Its also much faster than instanceof if you know what you're doing.

I tried to correct the fact that from .class() it should be .class not .getClass()

You got confused there.

  • 0
Posted

Oute kan katalaves ti eipe, kai an tou arxiseis na tou milas agglika gia na katalavenei poso ili9ios eisai 9a se midenisei kai aftos

φαε μια μπανανα, φαε και 1 μηλο και ψοφα <3

  • 0
Posted

φαε μια μπανανα, φαε και 1 μηλο και ψοφα <3

 

stis 5 plateia viktorias sta everest, na se kerasw ena giouf

  • 0
Posted

stis 5 plateia viktorias sta everest, na se kerasw ena giouf

Σοβαρα τωρα θα πας εκει στα everest? αμα ειναι να ερθω. 20 λεπτα αποσταση

αλλα σε κοβω να τρολλαρις. Εχεις και το nigga photo δυσκολα σε πιστευω ακομη κ αν πεις οτι ξερεις coding

βγαλε το nigga το κερατο σου μεσα... ΒΓΑΛΤΟΝ

  • 0
Posted

Σοβαρα τωρα θα πας εκει στα everest? αμα ειναι να ερθω. 20 λεπτα αποσταση

αλλα σε κοβω να τρολλαρις. Εχεις και το nigga photo δυσκολα σε πιστευω ακομη κ αν πεις οτι ξερεις coding

βγαλε το nigga το κερατο σου μεσα... ΒΓΑΛΤΟΝ

 

technically, Im the black hitlah

  • 0
Posted

technically, Im the black hitlah

παναθεμα σε περιμενω να μ πεις 2 ωρες αν θα πας π β στα everest να ερχομουν και πηγε 4 20 πφφ

 

Nigga niggaaa

  • 0
Posted

παναθεμα σε περιμενω να μ πεις 2 ωρες αν θα πας π β στα everest να ερχομουν και πηγε 4 20 πφφ

Nigga niggaaa

 

exei car meeting sef psakse gia honda civic me full alpine

Guest
This topic is now closed to further replies.



  • Posts

    • Telegram gifts are once again showing growth. This is associated with a possible pause in the gift release pipeline by Pavel Durov, as well as the approaching New Year, when demand traditionally increases. Against this backdrop, Telegram Stars, the platform’s internal currency, are once again coming to the forefront. With their help, users send gifts, subscribe to Telegram Premium, and use paid features within the Telegram ecosystem. Buy Telegram Stars with maximum benefit in our bot
    • Telegram gifts are once again showing growth. This is associated with a possible pause in the gift release pipeline by Pavel Durov, as well as the approaching New Year, when demand traditionally increases. Against this backdrop, Telegram Stars, the platform’s internal currency, are once again coming to the forefront. With their help, users send gifts, subscribe to Telegram Premium, and use paid features within the Telegram ecosystem. Buy Telegram Stars with maximum benefit in our bot
    • 流量套利 + SMM 面板 — 强大的增长组合. 通过社交信号加强推广活动,提高信任度和转化率,加速扩张。 为套利专员和 SMM 提供的所有工具 — 在一个地方. 有效链接: SMM 面板: 前往 – 推广您的社交媒体账户。 其他服务和产品: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前促销和特别优惠列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Traffic arbitrage + SMM panel — a powerful combination for growth. Strengthen campaigns with social signals, increase trust and conversion, scale faster. All tools for arbitrage specialists and SMM — in one place. Active links: SMM Panel: Go to – promotion of your social media accounts. Other services and products: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! 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 and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Traffic arbitrage + SMM panel — a powerful combination for growth. Strengthen campaigns with social signals, increase trust and conversion, scale faster. All tools for arbitrage specialists and SMM — in one place. Active links: SMM Panel: Go to – promotion of your social media accounts. Other services and products: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! 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 and 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