Hello guys,
I was wondering if there is any way to apply a clan/alliance crest into the phantom templates.
[EXAMPLE] Below i have one template of a phantom player:
The last 2 lines are applying the clan crest to appear in-game on the specified phantom player. Is that possible?
Or maybe any chance that these tags can be added into the source as a feature for phantoms config?
[EXAMPLE]: Add a field in the Phantom_Template class to store
In the spawning code, fetch the clan with something like:
Then update the XML schema so we can write:
I was wondering if there is any way to apply a clan/alliance crest into the phantom templates.
[EXAMPLE] Below i have one template of a phantom player:
<phantom type="TOWN" name="COt" title="" grade="B"> <set name="race" value="4" /> <set name="classId" value="53" /> <set name="sex" value="0" /> <set name="face" value="1" /> <set name="hair" value="3" /> <set name="nameColor" value="0" /> <set name="titleColor" value="0" />edit <set name="clanId" value="12345" />edit <set name="clanName" value="testest" /> </phantom>The last 2 lines are applying the clan crest to appear in-game on the specified phantom player. Is that possible?
Or maybe any chance that these tags can be added into the source as a feature for phantoms config?
[EXAMPLE]: Add a field in the Phantom_Template class to store
int_clanIdIn the spawning code, fetch the clan with something like:
L2Clan clan = ClanTable.getInstance().getClan(template.getClanId());if (clan != null) { npc.setClan(clan); npc.setClanCrest(clan.getCrestId());}Then update the XML schema so we can write:
<set name="clanId" value="123" />
Last edited: