Jump to content
  • 0

[Help]Add Stats


Question

Posted

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

  • 0
Posted

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.

Guest
This topic is now closed to further replies.


×
×
  • Create New...