Greetings people, I've got a question that I'd really like to answer by myself but I've only got basic java knowledge. Recently, I decided to categorise some custom made items. Here's an example of the method I chose to do it:
//This code was written inside L2ItemInstance class
public boolean isCustomItem()
{
switch(getId())
{
case 1311: //random item
case 2244: //random item
case 3554: //random item
return true;
}
return false;
}
This works completely fine but it seems pretty sloppy.
Now, I understand that there is another way of doing it through L2Item instead of L2ItemInstance class by creating booleans, updating StatsSet and working on xmls by adding the custom boolean to the respective items. However, I really can't tell whats the difference in terms of coding efficiency and reliability (if there is any). Has any of you fellows got this sorted out? Which way would you choose? Maybe another way not mentioned here? Thanks!
Yeah, it’s wild how much gambling has changed. When I was growing up, even scratch-off tickets felt like a big thing, but now with so many casino apps and betting sites, it’s just everywhere. I know a few people who got caught up in online slots during lockdown and really struggled to stop, just because it was always on their phone.
I stick to in-game stuff like skin trading for games like CS2 or Dota, which to me feels less risky, especially if you know the value of the items. If you’re curious how these trades work or want to see some guides, just visit website—there’s a lot of info about trading without real gambling involved.
Yea, his work is amazing, very well done designs, but the timing is not really his thing. I’m waiting for logo and launcher design since December 2024, so 10 days is not really that much lol
Discord : utchiha_market
Telegram : https://t.me/utchiha_market
Auto Buy Store : https://utchihamkt.mysellauth.com/
Not sure if we’re legit? Check Our server — real reviews, real buyers
https://discord.gg/uthciha-servicess | https://campsite.bio/utchihaamkt
Discord : utchiha_market
Telegram : https://t.me/utchiha_market
Auto Buy Store : https://utchihamkt.mysellauth.com/
Not sure if we’re legit? Check Our server — real reviews, real buyers
https://discord.gg/uthciha-servicess | https://campsite.bio/utchihaamkt
Question
Meydex
Greetings people,
I've got a question that I'd really like to answer by myself but I've only got basic java knowledge.
Recently, I decided to categorise some custom made items. Here's an example of the method I chose to do it:
This works completely fine but it seems pretty sloppy.
Now, I understand that there is another way of doing it through L2Item instead of L2ItemInstance class by creating booleans, updating StatsSet and working on xmls by adding the custom boolean to the respective items.
However, I really can't tell whats the difference in terms of coding efficiency and reliability (if there is any).
Has any of you fellows got this sorted out?
Which way would you choose? Maybe another way not mentioned here?
Thanks!
7 answers to this question
Recommended Posts