How to make shop with random items given?

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
rix4mees
Posts: 9
Joined: Mon Apr 30, 2007 2:09 pm

How to make shop with random items given?

Post by rix4mees »

I'd like to make shop where i give 20 Alchmist Chest Key(ID=9205) and in return get RANDOMLY one Interlude weapon(ID's=8678:8679;8680;8681;8682;8683;8684;8685;8686;8687;8688)

I think it would be best way to do that with adding some kind of new quest...but im not so good at writing that with random givings.

I'd be glad if someone could help me :)
biagio_93
Posts: 20
Joined: Sat May 19, 2007 11:59 am

Post by biagio_93 »

I think is not DP side...i think...java...or jhyton(?)
GodKratos
L2j Veteran
L2j Veteran
Posts: 418
Joined: Fri Jan 25, 2008 6:09 am

Post by GodKratos »

Yes you may be able to create this as a jython quest script.

If you can think of another quest that gives you random rewards have a look at it's quest script to try and write something for yourself.
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post by Fulminus »

You can definitely achieve this with Jython. However, there is also another way with a multisell and a custom extractable item (it assumes that you can find an existing junk item supported by the client and then modify it server-side to make it extractable). For more details on this solution, see here:
http://www.l2jdp.com/forum/viewtopic.php?t=9013
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
Post Reply