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.
SELLING AN ANNOUNCER SCRIPT! SIMILAR TO L2OOPS / L2HOP. THE SCRIPT HAS BEEN A LITTLE REDONE, VISUALLY SIMILAR TO THESE ANNOUNCERS, THE PRICE IS VERY GOOD. WE SHOW EVERYTHING HOW TO USE IT, ETC.
DISCORD - adver745645
TELEGRAM - MMOPROMO
WE SELL ADEN, GAME ITEMS AT VERY GOOD PRICES. DISCORD - MMOPROMOOO / TELEGRAM - MMOPROMO
АА
WE SELL ADEN, GAME ITEMS AT VERY GOOD PRICES.
DISCORD - MMOPROMOOO
TELEGRAM - MMOPROMO
I ment interface.u file it self not the code. I can view the file and code inside, but I was unable to edit interface.u file to add the code u shared, could u please share the compiled interface.u file it self?
Sorry my bad, I was compiling incorrectly, I looked up for correct compiler, works nicely! Both, Celestine and your version, works nicely! Ty
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.