Page 1 of 2

Clan item .

Posted: Sat Dec 05, 2009 6:27 pm
by repxl
i want to ask if its possible to make example that gold bar when ppl 2x click it that it give 20 000 rep points to clan ...
i need this very fast this is why i make topic i too searched forum but no find it.

Re: Clan item .

Posted: Sat Dec 05, 2009 6:36 pm
by ZaKaX
Yup it is... just take a look at how other use-able items are handled.

Re: Clan item .

Posted: Sat Dec 05, 2009 7:16 pm
by repxl
ZaKaX wrote:Yup it is... just take a look at how other use-able items are handled.
ok but how make that it gives reputation points ?

Re: Clan item .

Posted: Sat Dec 05, 2009 9:32 pm
by ZaKaX
Just take a look at core sources...?

Code: Select all

L2Clan clan = activeChar.getClan();clan.setReputationScore(69, true);

Re: Clan item .

Posted: Sat Dec 05, 2009 9:38 pm
by repxl
ZaKaX wrote:Just take a look at core sources...?

Code: Select all

L2Clan clan = activeChar.getClan();clan.setReputationScore(69, true);
hm i maked in skills someting but when i click the gold bar it no give nothing :( cannot click it..

u can help me a bit more ,? dont know what do now.

this i made
<skill id="999991" levels="1" name="Clan Badge">
<set name="itemConsumeId" val="999999"/>
<set name="itemConsumeCount" val="1"/>
<set name="isPotion" val="true"/>
<set name="magicLvl" val="1"/>
<set name="operateType" val="OP_ACTIVE"/>
<set name="power" val="500"/>
<set name="skillType" val="setreputatuonscore"/>
<set name="target" val="TARGET_SELF"/>
<cond msgId="113" addName="1">
<player flyMounted="False"/>
</cond>
</skill>

and i got errors .... in console.

Re: Clan item .

Posted: Sun Dec 06, 2009 7:38 pm
by jurchiks
999999
is that the id of the gold bar?

Re: Clan item .

Posted: Sun Dec 06, 2009 8:06 pm
by repxl
jurchiks wrote:999999
is that the id of the gold bar?
yes it is my item .... not gold bar its my item for the clan rep pts.
so how make it plz ..

Re: Clan item .

Posted: Sun Dec 06, 2009 8:23 pm
by ZaKaX
... :?

What the hell you did dude? LOL ^^ It's not going to work this way... you don't call a method from an XML, simply because that's impossible.

You gotta create a new item handler. Not only a new weird skill.... :o

Re: Clan item .

Posted: Sun Dec 06, 2009 8:46 pm
by repxl
ZaKaX wrote:... :?

What the hell you did dude? LOL ^^ It's not going to work this way... you don't call a method from an XML, simply because that's impossible.

You gotta create a new item handler. Not only a new weird skill.... :o
hm ok and what about an NPC what will change the item for rep points ? or this will be the same work like with dualclick on item ?

Re: Clan item .

Posted: Sun Dec 06, 2009 8:48 pm
by janiii
you can make a multisell with clan rep points.

Re: Clan item .

Posted: Sun Dec 06, 2009 10:28 pm
by repxl
janiii wrote:you can make a multisell with clan rep points.
and how ? .... what is the ID for rep points ?

Re: Clan item .

Posted: Mon Dec 07, 2009 10:50 pm
by Charus
repxl wrote:
janiii wrote:you can make a multisell with clan rep points.
and how ? .... what is the ID for rep points ?
Why ppl is sooooooo lazy to check the already exist working stuffs :S I really dont understand. Check multisell 1235.xml

Re: Clan item .

Posted: Tue Dec 08, 2009 5:39 am
by repxl
in 1235.xml hm there are appela armors ... i no see there clan reputation id :/

Code: Select all

<!-- Apella Helm --><item id="1">  <ingredient id="-200" count="1740"/>  <ingredient id="57" count="451110"/>  <ingredient id="57" count="4511100" isTaxIngredient="true"/>  <production id="7860" count="1"/></item>

-200 is rep points ?

Re: Clan item .

Posted: Tue Dec 08, 2009 6:04 am
by savormix
Yes.....................

Re: Clan item .

Posted: Tue Dec 08, 2009 6:49 am
by JIV
repxl wrote:-200 is rep points ?
-200 is ID for clan rep and count is how much.