Clan item .

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Clan item .

Post 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.
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
ZaKaX
Posts: 357
Joined: Thu Nov 22, 2007 6:28 am
Location: Somewhere in Asia.

Re: Clan item .

Post by ZaKaX »

Yup it is... just take a look at how other use-able items are handled.
¿ Que dice los cojones de la nina ?
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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 ?
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
ZaKaX
Posts: 357
Joined: Thu Nov 22, 2007 6:28 am
Location: Somewhere in Asia.

Re: Clan item .

Post by ZaKaX »

Just take a look at core sources...?

Code: Select all

L2Clan clan = activeChar.getClan();clan.setReputationScore(69, true);
¿ Que dice los cojones de la nina ?
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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.
Last edited by repxl on Sat May 22, 2010 6:50 pm, edited 1 time in total.
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Clan item .

Post by jurchiks »

999999
is that the id of the gold bar?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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 ..
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
ZaKaX
Posts: 357
Joined: Thu Nov 22, 2007 6:28 am
Location: Somewhere in Asia.

Re: Clan item .

Post 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
¿ Que dice los cojones de la nina ?
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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 ?
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Clan item .

Post by janiii »

you can make a multisell with clan rep points.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post by repxl »

janiii wrote:you can make a multisell with clan rep points.
and how ? .... what is the ID for rep points ?
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
Charus
L2j Veteran
L2j Veteran
Posts: 410
Joined: Thu Feb 16, 2006 1:24 pm

Re: Clan item .

Post 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
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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 ?
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
savormix
Posts: 28
Joined: Sun Aug 19, 2007 4:16 pm
Location: Vilnius, Lithuania

Re: Clan item .

Post by savormix »

Yes.....................
Image
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Clan item .

Post by JIV »

repxl wrote:-200 is rep points ?
-200 is ID for clan rep and count is how much.
Post Reply