Page 1 of 1

Alchemist Chest Event error

Posted: Sat Feb 08, 2014 10:54 am
by shippou
Hello I have some problem whith this event.
Trick or transmutation.

I founded a thread but when i put it in my server events its generate a lot of error.
viewtopic.php?f=73&t=15024&p=74372&hili ... ist#p74372

Image

I hope someone can help me :)
And im not good with java programin :S

I use the latest nightly version of the server.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 11:06 am
by jurchiks
Try this. It's a very old script, can be improved a lot, but at least it works and isn't completely terrible.
Spawn the NPCs (13036 - chest, 32132 - servitor, they both should stand next to each other) wherever you want.
Don't forget to add the script to scripts.cfg

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 12:30 pm
by shippou
Hy again,
thx for the event.

Im try my best before is uploaded this.

And there is an other problem.

The event now loading with out error, the npc-s get the htm.
But when want to use the functions in the base htm noting is happening no error nothing the chat window is dissapear, i tryed to mod the htm links but it not working. :S

<button action="bypass -h Quest TrickOrTransmutation 13036-1.htm" value="Proceed" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">

otr like this

<a action="bypass -h Quest TrickOrTransmutation 13036-1.htm">Proceed</a><br>

tried both npc but the same no java error log or server error just nothing.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 3:25 pm
by shippou
I created a test server, a clean one.
And its write this error.

Image

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 3:41 pm
by jurchiks
Replace getNpcId() with getId().

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 4:22 pm
by shippou
done it alredy but the first issue apeard again

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 4:28 pm
by jurchiks
Which NPC and which bypass does not work?

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 4:36 pm
by shippou
Both NPC show their first html text, and if you want to use its function basiclyy nothing happen.
The chat windows dissapear, no item exchange or anithing.

Both NPC is doing the same.

But the funnyest thing is no error messege ingame or server log.

I can show to you on my test server.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 4:46 pm
by jurchiks
Try this.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 5:08 pm
by shippou
Its the same :S.

No error and nothing happen after click just close the window :S.
Even if i have a key or not.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 6:50 pm
by jurchiks
Well fuck, so l2j still doesn't support bypasses without QuestState.
Use this (replace the existing constructor):

Code: Select all

public TrickOrTransmutation(){    super(-1, "TrickOrTransmutation", "events");    addStartNpc(CHEST, SERVITOR); // this will ensure state is created    addFirstTalkId(CHEST, SERVITOR);    addTalkId(CHEST, SERVITOR);}

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 7:13 pm
by shippou
Ahh thankyou its solved it :)!

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 7:20 pm
by jurchiks
Enjoy :) It's a cool event IMHO.

Re: Alchemist Chest Event error

Posted: Sat Feb 08, 2014 7:41 pm
by shippou
Yes I think to :3 thats why wanted it to work on my server :)

Thanks Again :mrgreen: