i've tried to add an event king engine on my server ( events are based on phoenix engine ). The event engine is done but when i add at onKill ( in phoenix events ) this code: killer.setEKills(killer.getEKills()+1); i get warning, The method getEKills() is undefined for the type EventPlayer then i maked it ((L2PcInstance) killer).setEKills(((L2PcInstance) killer).getEKills()+1); and i get Cannot cast from EventPlayer to L2PcInstance.
Then i maked this in eventplayer.java ( in phoenix source )
public int getEKills() {
return _owner.getEKills();
}
public void setEKills()
{
_owner.setEKills(getEKills());
}
now i don't get and error from killer.setEKills(killer.getEKills()+1); but when i make a kill the EKills dosen't increase in database.
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.
Excellent seller! Super helpful.
The code runs on Java 11, but it’s really stable and easy to work with. It already has a bunch of PvP-ready features that can save you weeks of work.
I’ve managed to add an AI model (DeepSeek and ChatGPT) to help run the server as GMGod. Also upgraded the Autobots — now they can accept parties, follow the leader across different spots, and even kite properly.
Really happy so far. Big vouch for @IcathiaLord!
When everything works — life is easier.
Vibe SMS is a service where using it is simple and stress-free.
No unnecessary complications: you get a number, complete your task, and move on.
We design our service so you can focus on what really matters and not waste time on small details.
We’re against unnecessary complexity; we’re for calm and confident work.
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
Hello!
Can you please elaborate about what is exactly, how it works, maybe some pictures would be nice!
Also, when sharing files, it would be awesome to scan them for viruses first so nobody downloads any malicious.
Question
TouchAndDie
i've tried to add an event king engine on my server ( events are based on phoenix engine ). The event engine is done but when i add at onKill ( in phoenix events ) this code: killer.setEKills(killer.getEKills()+1); i get warning, The method getEKills() is undefined for the type EventPlayer then i maked it ((L2PcInstance) killer).setEKills(((L2PcInstance) killer).getEKills()+1); and i get Cannot cast from EventPlayer to L2PcInstance.
Then i maked this in eventplayer.java ( in phoenix source )
now i don't get and error from killer.setEKills(killer.getEKills()+1); but when i make a kill the EKills dosen't increase in database.
2 answers to this question
Recommended Posts
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.