trying to figure out in code

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Vimmer
Posts: 9
Joined: Fri Sep 10, 2010 8:03 am

trying to figure out in code

Post by Vimmer »

It's pity that there is no good explanations how server works (except open sourced code ofc, but it's too big to understand it at once)

so for now i have few questions
1)what column 'class' in table npc for? have something like 'LineageMonster.giant_spider_05te' in it, where this 'class' used, found only feeding it to jClass and didn't noticed it used anywhere else

2)how start fight aggro mob(or attacked passive) with player, what classes/methods to look? (I interested in the way skills used, and overall fight) (checked L2Attackable - have some interesting methods and fields, like hate analyze and L2CharacterAI - seems i found it, but want to know what triggers it and overall flow, especially when and what skill mob used, based on what condition, it's chance based as i figured out so far)

3) where to post questions like this?)

4) how to implement own raidbos for example with own AI like usual raidbosses have (I understand that I must fill tables with spawn, droplist, npc id, npc_skill but then again, question 1 and 2, about DP AI I didn't even bothered yet, java core is enough for me atm)

had much more questions but forgot 'em.. well, will ask later if those get any reply
best answer would be link to description of internal mechanics of l2j realization, but there is no such thing I afraid
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: trying to figure out in code

Post by Probe »

1. it's really what texture the npc is using.. Im not sure if it's completely up-to-date but it's not used in core
(jClass is type column in npc table).
4. For that actually a DP ai is preferred, and yes you will need to fill all those tables - but for a raidboss you'll need raidboss_spawnlist
Vimmer
Posts: 9
Joined: Fri Sep 10, 2010 8:03 am

Re: trying to figure out in code

Post by Vimmer »

thanx

1) about 'class', good it's not using) but keeping it in db for no purpose is confusing imo) i thought that this field is used somewhere in mob creation beside mob id) so it's different texture.. ic it's useless now

2)well, will dig java sources more (

4) for smart AI using DP with script better for sure, but i doubt (who knows mb i'm wrong) that there is AI for every RB in DP.. i believe it's more common solution exists for usual RBs than DP script for each RB
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: trying to figure out in code

Post by Probe »

ofc not all raidbosses have a DP ai, only the ones that act in a special way, like grandbosses, most raids just have the core ai
Post Reply