I have this code in doDie method inside L2MonsterInstance.java file:
int npcId = getTemplate().getId();
switch (npcId)
{
case 150:
if (((L2PcInstance) killer).getClan() == null)
{
return false;
}
if (killer.getActingPlayer() != null)
{
((L2PcInstance) killer).getClan().addReputationScore(10, true); // Change 1 with the reputation points you want to add upon kill monster
((L2PcInstance) killer).sendMessage("Your Clan Reputation is increased by 10.");
}
final L2Summon summon = killer.getSummon();
if (summon.getOwner() != null)
{
return false;
}
}
However, when i am killing monster with ID 150 i am getting a NullPointerException. Instead if the monster is killed by a summon or a pet i am getting a ClassCasterException. How to solve it?
Use whatever template you want—but don’t be mad if people call you out for trying to make money while using something that isn’t yours in your product.
Especially if the creator asked you nicely to take it down before making the issue public.
I removed the Lokagamers template (even though the client who bought it would’ve let me use it for the demo).
Right now, I’m using my own default template for the CMS.
And who the hell are you to tell me what template I can or can’t use, you no-avatar clown?
If I wanted to, I could rip any template from L2oops — no problem.
And clients use their own templates for the main page!
The client panel runs on my custom template — and if they want, they’re free to customize it however they like.
Donkey?
All I see is a Scammer a designer and a Dog with glasses.
I guess now I'll be the donkey, huh?
Create your own template and apply your CMS on it. No need to go all in defensive mode.
Discord :
utchiha_market
Telegram :
https://t.me/utchiha_market
Auto Buy Store :
https://utchihamkt.mysellauth.com/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
Gries
I have this code in doDie method inside L2MonsterInstance.java file:
However, when i am killing monster with ID 150 i am getting a NullPointerException. Instead if the monster is killed by a summon or a pet i am getting a ClassCasterException.
Edited by GriesHow to solve it?
10 answers to this question
Recommended Posts