View Full Version : [share]Recipebook
So, first of all, i didn't test that, so i dunno if it will work :).
In those files u can find npcdata for recipebook manager (w/o npcpos, i dunno how to make em good ;P ). Html for him and multisell. I think there should be a ai which will check if player is artisan or warsmith (i dunno make that too :) ).
So, player can trade all mats recipes to one item (recipebook), in which he can find all those recipes. There r four type of recipebooks. First includes all recipes needed to craft Dgrade, 2nd Cgrade and so.. to Agrade. Recipes id's was taken from some share named c3_recipes (or somethin like that.. search :) ). So file includes itemdata and htmls for those recipebooks. There r also client side files, but i'm not sure if they r ok.
So i wanna ask u: to check if is all ok, make npcpos,npcname,.. for that npc. And also ai, which will check proffesion. thx
and feel free to say, if it is poinless :P
but?
Good share, many player are requesting that !!!
Any can confirm that work?
but... it is not as official:(
Nice, but...
There is no changes in recipe.txt , it's mean that "Recipe: Leather" needed to craft "Leather" (for example)
but... it is not as official:(
yes that is true
this share is only for dont carry all recipes ... only in one.. is great but.. retail system allows u to craft 1...10..50... 400 items of same recipe... for example... i need to craft 20 crafted leathers... with recipe book i can do it in one click... select quanty and craft ... and not press CREATE 20 times
but this is a great idea to carry all recipes...
i think isn't necesarry check proffesion ... item is not tradeable and not dropable... if other player carry this recipe he can't use... only read recipe if u use hami mod
There is no changes in recipe.txt
I don't think it is needed, cause from book's html r linked normal recipes. (like from normal recipe)
But maybe will be better if from book will be linked recipes htmls, cause now players can't see needed items, ...
i will try to link em by that way now
and post it here...
So i remade htmls for recipebooks. Those htmls links recipes htmls. It is slowest for player to craft, but by that way he can see required items and MP consumption (hard word :D ).
Dunno what is best, so i left the old one in first post.
hmm.. really nice try and effort here :)
definately like to see how this mod might grow...
it's a much needed item that players need and server admin neglect..
keep up the good work k?
out
Part of my recipe.txt:
recipe_begin [mk_braided_hemp] 45 level=1 material={{[stem];5}} catalyst={} product={{[braided_hemp];1}} npc_fee={{[rp_braided_hemp];1};{[adena];100}} mp_consume=10 success_rate=100 item_id=2135 recipe_end
item with id=2135(Recipe: Braided Hemp) needed to craft Braided Hemp. I making similar solution of recipebook and I have a troubles with craft without changing recipe.txt . Secure way to solve this problem - duplicate recipes of resources in recipe.txt with changing ID to unique and item_id to ID of recipebook.
Sorry for my english :oops:
Example of my uncompleted solution of recipebook:
http://img369.imageshack.us/img369/7269/recbook26hn.jpg
Thanks for share.
Can anybody share ai for blacksmith_of_mamon?
Aikeleer
25.02.2006, 14:10
Xarion, this topic is about a recipe book, not about your blacksmith. Use the search anyways.
Co0L > that seems pretty nice.. if i understand right, with that u can craft one or ten of selected materials?
And how i can add img to html?
and about ids.. i dunno that recipes checking if u have a "recipe"
so ty for this info :)
So if u don't mind i can rewrite htmls to looks like urs (img + 1x/10x craft)
Or just share em to translate :P
And how u solve problem with adding recipes? (i mean for what/how player can obtain that book)
Xarion, this topic is about a recipe book, not about your blacksmith. Use the search anyways.
Sorry but if you are looks to npcdata you can see that rpb_manager have ai parameter of blacksmith_mammon.
yea, true :) I used ai blacksmith_mammon, but i'm not sure i have it :P
Cause i dunno much about ai, and in some shares i saw that ai for basic traders (like mammon is)
I think u can use merchant_cgrade (or somethin like that) ai too (lux shop traders) but not sure about that..
all looks great, but i can`t open recipebook.
Server ok - no error.
hmm with that recipebook,... (especially that with 10/1 choice)
there r too many "actions" so won't be there that html exploit?
i dunno too much about it, but i think it was someth with too many links/actions/.. in one html..
cause there r 30 links 30x2= 60 (if there will be choice 1 or 10)
so if some1 know somethin about it post it pls ;P
If that will be problem i think it can be solved with more htmls for one book.. i mean first u choose if u will D,C,B or A recipes and than u can craft em...
EDIT: So, i'm working on recipes.txt, new etcitemgrp, and new book's htmls. In new htmls will be images(i hope), possibility to craft 1 or 10 units. And there will be also showed needed materials and MP. and thx Co0L for ideas (i hope it wouldn't mind that i using em)
knife_sj
26.02.2006, 07:24
i was who post C3 recipes...
i can make recipe book like Kool rp book if u want is a thing of 5 mins :P
could be 4 books of basic items:
1.)SSD, BSPD, SPD, Matts Lvl 1
2.)SSC, BSPC, SPD, Matts lvl 2
3.)same but for B grade items or lvl 6-7 Craft
4.)same but A items lvl 8
not ai needed... just a multisell that ask for all the recipes in the "book"
ex: 1: (SSD, BSPD, SPD, Matts Lvl 1) all this x1 and u buy the book...
but this just is to get some xtra spaces in wh (or inv) and some time
Example of Book
[img] Item [x1] [x10]
where [x1] is the link to the html of the normal recipe and
[x10] is the link to the html x10 rate result
ex: for
steel x1: 5 iron ore, 5 varnish mp: 10 (guess)
steel x10: 50 iron ore, 50 varnish mp: 100 (guess)
ill do it and post it in a few days... busy with castles geos now :P
Cya
To prevent HTML exploit, resources must be separated by level, I mean that with Recipebook B you can craft only B-resources and no C or D. item_id in recipe.txt must be linked to the certain recipebook.
Mattho, Good Luck :)
yea, i'm doing it in separate HTMLS, only one book, where u can choose subbooks :P I think it is enough. And i don't want link recipes htmls. I think it slow the craft procedure, so i just link recipes. And in recipebook will be showed needed materials and MP.
U mean, that will be added only one new item (Recipebook)?
Basicly..
There will be 4 new items (for low lvl Dorfs).
Same as was in first pack. But now in recipebook htmls will be links to D,C,B and A grade materials htmls. Cause html bug :/
not to spoil things but... hope this thread will be of some help :)
http://l2j.mookins.com/bb/thread.php?threadid=14508&sid=7304821a21e38bf354e833a644af9ad2
Mattho, Separately or with A-book, you can craft B-C-D?
Digital, Thanks, it's interesting :)
Co0L, with "A" book u can craft all, but it won't be in one html cause html bug :/
And how u did, that the name of the mats u have divided into 2 lines near one pic?
eg; look on CBP on ur picture :P
(I never see mine htmls ingame, so i dunno how it will look like :P )
My HTML (may differ from picture ^^):
<html><body>Create 1lvl resources:
<table><tr><td width=34>icon.etc_leather_i00</td><td>Leather</td></tr></table>
<a action="bypass -h recipe?id=25">[Create]</a> <a action="bypass -h recipe?id=905">[Create 10]</a><a action="link rp_leather.htm"><font color="LEVEL">Details</font></a>
<table><tr><td width=34>icon.etc_powder_white_i00</td><td>Coarse Bone Powder</td></tr></table>
<a action="bypass -h recipe?id=48">[Create]</a> <a action="bypass -h recipe?id=904">[Create 10]</a> <a action="link rp_coarse_bone_powder.htm"><font color="LEVEL">Details</font></a>
<table><tr><td width=34>icon.etc_lump_black_i00</td><td>Steel</td></tr></table>
<a action="bypass -h recipe?id=47">[Create]</a> <a action="bypass -h recipe?id=903">[Create 10]</a> <a action="link rp_steel.htm"><font color="LEVEL">Details</font></a>
<table><tr><td width=34>icon.etc_oil_pot_black_i00</td><td>Cokes</td></tr></table>
<a action="bypass -h recipe?id=46">[Create]</a> <a action="bypass -h recipe?id=902">[Create 10]</a> <a action="link rp_cokes.htm"><font color="LEVEL">Details</font></a>
<table><tr><td width=34>icon.etc_braided_hemp_i00</td><td>Braided Hemp</td></tr></table>
<a action="bypass -h recipe?id=45">[Create]</a> <a action="bypass -h recipe?id=901">[Create 10]</a> <a action="link rp_braided_hemp.htm"><font color="LEVEL">Details</font></a>
2006 (C) ADM5/LA2.RU</body></html>
lol u can use <td> :D i thought that only
or center/... :D
nice... thx
knife_sj
28.02.2006, 02:53
Digital: wtf is that?? l2j code to use the rp book from client? ot what?...
Well just test it:
Features
Lvl 1-2, 3-4, 5-6, 7-8 div in 4 books
multisell buy option
gloves and boos of B grade sets are sealed (in recipe-c are common)
in rar:
Client Side:
items: rp_book_a, b, c, d for itemname-e and etcitemgrp
Server Side: full recipe.txt, itemdata and pch for books, itemdata for recipes, and multisell for books
Recipe Book v1.1 (http://www.vallepintado.com.ar/l2/Rp_book_1.1.rar)
pass: fromknftopp
knife_sj
01.03.2006, 01:30
bump, guys need read a bit this topic :P
thx knife_sj... but a little problem...
ids for rpbook are used in C4 for fish items... i use ID like 9500.. and problem is solved... for now... xD
good share!
knife_sj
05.03.2006, 20:37
oh, im not working with C4 yet, just change it to an avaible id and rdy :P
edit: i've made the work but ideas are from Co0l and Mattho :) all the credits are to them (well, almost all :P)
remember to change item_id=new_rp_book_id in recipe.txt for mk_xx1 and mk_xx10
else it wont work
cya