Bobi Posted March 10, 2011 Posted March 10, 2011 for example : i make one tattoo for mages but if fighter class id equipt this tattoos to not give stats on his i want tattoo to give status only mage class ID any one know command or something else without java mods when i add in data/stat/armor to make only any class ID when equipt item to give status on other to not give
0 Trance Posted March 10, 2011 Posted March 10, 2011 Try something like that: Create passive skill for tattoo stats and add: <target class_id_restriction="98, 99"/> java/net/sf/l2j/gameserver/skills/DocumentBase.java: Find: "protected Condition parseTargetCondition(Node n, Object template)" And add: else if ("class_id_restriction".equalsIgnoreCase(a.getNodeName())) { FastList<Integer> array = new FastList<Integer>(); StringTokenizer st = new StringTokenizer(a.getNodeValue(), ","); while(st.hasMoreTokens()) { String item = st.nextToken().trim(); array.add(Integer.decode(getValue(item, null))); } cond = joinAnd(cond, new ConditionTargetClassIdRestriction(array)); } I hope I understand well what do you mean exactly.
0 Trance Posted March 11, 2011 Posted March 11, 2011 have any other way without java edit ? Nop. If you use IL doesn't have anything about what you want.
Question
Bobi
for example :
i make one tattoo for mages but if fighter class id equipt this tattoos to not give stats on his
i want tattoo to give status only mage class ID
any one know command or something else without java mods
when i add in data/stat/armor
to make only any class ID when equipt item to give status on other to not give
4 answers to this question
Recommended Posts