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.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Xmas Wolf Chariot Mount | Lineage 2 Mod
Celebrate the holiday spirit in Lineage 2 with this festive Xmas Wolf Chariot Mount! Created for protocol 166, this unique modification features majestic wolf mounts with holiday-themed harnesses pulling a decorative chariot.
If you have questions or want to add this updated skill to your game, feel free to contact me via Skype or Discord.
Download or in Discord Client Dev channel https://discord.gg/XdCb9dmTtf
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.