Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [share]Recipebook (https://postpacific.loc-online.com/showthread.php?t=3464)

Mattho 24.02.2006 18:28

[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

drzoom 24.02.2006 18:31

It's pretty good, but...

kissas 24.02.2006 20:42

but?

Good share, many player are requesting that !!!
Any can confirm that work?

drzoom 24.02.2006 20:53

but... it is not as official:(

Co0L 24.02.2006 21:13

Nice, but...
There is no changes in recipe.txt , it's mean that "Recipe: Leather" needed to craft "Leather" (for example)

kissas 24.02.2006 21:49

Quote:

Originally Posted by drzoom
but... it is not as official:(

yes that is true

FidoW 24.02.2006 21:53

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

Mattho 24.02.2006 21:56

Quote:

Originally Posted by Co0L
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...

Mattho 24.02.2006 22:19

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.

Digital 25.02.2006 07:21

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

Co0L 25.02.2006 07:38

Part of my recipe.txt:
Code:

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

xarion 25.02.2006 11:51

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.

Mattho 25.02.2006 14:16

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 25.02.2006 14:32

Quote:

Originally Posted by Aikeleer
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.

Mattho 25.02.2006 14:46

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..

xarion 25.02.2006 14:48

all looks great, but i can`t open recipebook.
Server ok - no error.

Mattho 25.02.2006 15:00

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

Co0L 26.02.2006 08:29

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 :)

Mattho 26.02.2006 14:07

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.

Co0L 26.02.2006 14:27

U mean, that will be added only one new item (Recipebook)?

Mattho 26.02.2006 15:57

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 :/

Digital 26.02.2006 16:52

not to spoil things but... hope this thread will be of some help :)

http://l2j.mookins.com/bb/thread.php...e833a644af9ad2

Co0L 27.02.2006 05:28

Mattho, Separately or with A-book, you can craft B-C-D?
Digital, Thanks, it's interesting :)


All times are GMT. The time now is 15:27.