icemanrj Posted April 28, 2010 Posted April 28, 2010 at the l2inc server have all NPC have the clan who won the castle of the town all NPC type L2Npc have the clan flag how can i add this on my server?
0 Matim Posted April 29, 2010 Posted April 29, 2010 As I remember L2J pack (latest) already has it, so you can simply check their SVN/Source.
0 Matim Posted April 29, 2010 Posted April 29, 2010 ye but do you know the quest name? Its not quest, its in core. Im not sure but check L2Npc.java
0 Neo1993k Posted April 30, 2010 Posted April 30, 2010 Its not quest, its in core. Im not sure but check L2Npc.java I don't know but i have idea... He can edit teritory war code... because if u win tw all npc ex giran area have crest... If i miss sorry but i try help:)
0 Matim Posted April 30, 2010 Posted April 30, 2010 AbstractNpcInfo.java // npc crest of owning clan/ally of castle if (cha instanceof L2NpcInstance && cha.isInsideZone(L2Character.ZONE_TOWN) && (Config.SHOW_CREST_WITHOUT_QUEST || cha.getCastle().getShowNpcCrest()) && cha.getCastle().getOwnerId() != 0) { int townId = TownManager.getTown(_x, _y, _z).getTownId(); if (townId != 33 && townId != 22) { L2Clan clan = ClanTable.getInstance().getClan(cha.getCastle().getOwnerId()); _clanCrest = clan.getCrestId(); _clanId = clan.getClanId(); _allyCrest = clan.getAllyCrestId(); _allyId = clan.getAllyId(); } } } You can check this class from latest L2J core, and check how does it wok.
Question
icemanrj
at the l2inc server have all NPC have the clan who won the castle of the town
all NPC type L2Npc have the clan flag how can i add this on my server?
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now