double-click on lifestone

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: double-click on lifestone

Post by jurchiks »

look in db in etcitem table, in dp look at handlers for items. aaaand - copy-paste as you should)
which part is hard to understand?
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.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

jurchiks wrote:
look in db in etcitem table, in dp look at handlers for items. aaaand - copy-paste as you should)
which part is hard to understand?
everything. what should i look in db in etcitem table? what should i look in the dp? aaaand what should i copy - paste as i should, because even if i find the files you want me to find, i will open them and i won't be knowing what i should copy - paste from this file and where. in java i know only one thing i guess: copy - pasting concrete codes, but i cant find these codes alone. im sorry if you are getting tired with me but you must understand i wouldnt post here if i could see through the java codes. dont get angry :(
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: double-click on lifestone

Post by jurchiks »

select itemid,name,handler from etcitem where name like "%scroll%enchant%"
data/scripts/handlers/itemhandlers/enchantscrolls.java
data/scripts/handlers/bypasshandlers/augment.java

thats for latest rev of course, not going to dl interlude just because of you
anyway, why do you host a l2jserver if you don't even try to learn and do things yourself?
this is not a aio pnp standalone project, you need to think, you need to read those (and many other) files and understand them, if you don't, there's no point
no more help from me
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.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

thats my problem: i dont know what lines i should copy from the files you just said and i dont know where i should paste it. you must understand that certainly i wouldnt post here if i knew how to do it alone. take it easy its just a game. you asked me why i host a server since i dont try to do things myself. the answer is im trying but i dont know how and i will learn only if someone help me since interlude is almost dead now.

you must understand, nobody can learn without any help. anyway as i said im sorry if i disturbed you.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: double-click on lifestone

Post by jurchiks »

you just need to make a new handler for the lifestones, add it to masterhandler.java and copy-paste the handler itself... :!:
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.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

there isnt a masterhandler.java in interlude.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: double-click on lifestone

Post by janiii »

just check how enchant scrolls are done. check where their item id is used in the code (both dp and core), you ind a itemhandler class in core, then check if the handler is called also somewhere else. copy and rename the handler class, and edit the useItem method to your needs (check how the normal augmentation is done - htm bypass, check L2NpcInstance, which packet is sent to player, copy&paste).

you should understand that when you want to have custom things on a l2j server, you have to have some knowledge about java. if you dont have it, you have to get some and learn at least basics of java to understand the code structure. there is no sense wanting to modify l2j server without any java knowledge as it is an emulator based on java.
we cannot teach you here the java coding, we can only help you understand the l2j code. it is up to you to learn the java basics. there are plenty of java tutorials on web, i think it was also discussed here on forum where to start learning java, which books or web sites are good enough for java newbies. gl.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Lee
Posts: 102
Joined: Wed Sep 02, 2009 11:10 pm

Re: double-click on lifestone

Post by Lee »

check the id's and then send the augmentation packet.. oh come on, its so freakin' easy!
The whole code is just the handler and 2 lines of showing the augmentation packet.. :|
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

i will try it though i dont think i will make it. anyway listen guys. ive done many questions and you should be tired of me, so if thats so dont reply again here and i guess i wont do another question again. im sorry i didnt mean to disturb you i just thought that someone should had this faction already since l2deathavenue has it. the same happened when i asked my other question about the teleporting item. sorry again and thank you all who wanted to help me. :)
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: double-click on lifestone

Post by macdonald12 »

Abyssal wrote:...i guess i wont do another question again...
Numerous people told you exactly what to do, but you seem to expect them to do it for you.

Your original question was:
Abyssal wrote: how can i add an automatic augment system in the server?
Which was perfectly answered. Instead of wasting others time trying to teach you how to do it, next time just ask "Can someone share xxx with me?". Maybe you'll get lucky, maybe not.

Either way it would be a good thing for you to start reading (and understanding) L2J's source-code. For you cannot expect to get the things you request done without any knowledge of it whatsoever. And that's got nothing to do with the community's lack of willingness to help.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

you always getting me wrong. i didnt mean to insult the community. i just said i dont want to disturb you anymore because i know i am disturbing you with my lack of knowledge. really ive tried many times to understand the source and ive read many guides but i guess im not a developer and i will never be and ive quit trying to learn java. besides you are right, i didnt ask the right question which should be "does anyone have ready a script for double-click lifestone augment?". my mistake im sorry. as i said its already applied in l2deathavenue thats why i asked this question. anyways i apologize again for being a newbie.
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: double-click on lifestone

Post by macdonald12 »

Probably you started with too complex stuff. Pretty much every action that L2J handles is backed up by logic, which makes it pretty understandable to learn. Also, whatever custom stuff you want to implement, probably the basis for it is already implemented somewhere, for something else. Like you're Life-stone system à la Enchant system.

Anyways, i didn't say you insulted the community. Everyone has something he can't do yet / has to learn about, but the key is to start with something of which you at least know the concept.

In simple language your problem is basically letting item X call an action Y, or more detailed: a Life-Stone starting the Augmentation System. A system which is already present, but atm is not called by an item, but by interacting with an NPC. I'm sure if you look at how the NPC calls that system, and if you also look at how enchant scrolls call the enchant system, you'll start seeing something ;)

If you're really stuck and desperately in need of such system, i'll try to find the time to make it. But as said, it's better to do these things yourself.

PS - If you know some server has it, you can also try your luck asking the owner. Chances are slim, but who knows :D
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: double-click on lifestone

Post by Abyssal »

im sure he wont give a damn about a noob like me :roll:

anyways thank you for your good words i thought you were angry with me :)

this thing about interacting with a NPC or an item got me a little confused but i understood all the others and ill take a look at the files again hoping i will understand something more about this reaction.

thank you for your intention to help btw. i wasnt expecting it (as i said i thought you were angry with me). :D
Post Reply