![]() |
[MOD] recipe->multisell
made a script to convert recipedata in multisell format, for like beta servers, then people dont need to craft things themselves, but they still need the raw materials.
gonna refine the script and add features like no recipes needed or +/- keymats/basemats heres the first convert stuff change "CHANGE_HERE" to your ID well i think you all know how it works WHO DOESNT PRESS ALT+F4 PS: if someone could supply me with the newest (stable) recipe.txt of projectC2 i can add it in my script, these are made using the file that comes with SINA lvl1 Code:
MultiSell_begin [recipe_level_1] CHANGE_HERECode:
MultiSell_begin [recipe_level_2] CHANGE_HERE |
lvl3
Code:
MultiSell_begin [recipe_level_3] CHANGE_HERECode:
MultiSell_begin [recipe_level_4] CHANGE_HERECode:
MultiSell_begin [recipe_level_5] CHANGE_HERE |
lvl6
Code:
MultiSell_begin [recipe_level_6] CHANGE_HERECode:
MultiSell_begin [recipe_level_7] CHANGE_HERE |
that just kills the warsmith class :/
|
its for speed servers >_>
|
i also have made it but u must change itemdata ;)
|
How to apply this?
|
Quote:
Its for making dwarves ( npc's ) to craft the items. Yours. EntroX |
Quote:
|
How
Quote:
I was working on the samething but Riane got it first... I've added something like this on the blacksmith_recipe.htm <a action="bypass -h multisell?id=(number)">Ask him to craft a level 1 item</a> but it doesn't work this way, I get nothing when I talk to the blacksmith... Any ideas about changes in ai.obj? and what about rodobeban said about itemdata? |
in the multisell there are parts that go like this:
"CHANGE_HERE" put your ID there (ascending to the others) then put that id in the multisell html like you did and it *should* work |
I know it should work but it doesn't...
multisell.txt ids is like this: Multisell_begin [recipe_level_1] 23 selllist={{{[........ Multisell_begin [recipe_level_2] 24 selllist={{{[........ blacksmith_recipe.htm is like this: <a action="bypass -h multisell?id=23">Ask him to craft a level 1 item</a> <a action="bypass -h multisell?id=24">Ask him to craft a level 2 item</a> But when I try to talk to a blacksmith I get no response from them... Have you changed anything else? |
afaik you have to do all the ID's in a row
SO if the last ID of your original file is 4 next is 5 etc. if you do 23 after 4 it wont work. but i didnt even try it myself thats only what i read around here |
Quote:
I thought maybe the numbers of the id's you can put are limited I've tryed erasing some of the others ids but it dident work either... something else is missing... Thanx anyway dude. |
umm if you have 22 multisells, then you should know how to make a new one shouldnt you?
either way update us when u got something ;) |
Ai.OBJ i guess?
Oso |
i *think* i found the error, didnt notice the "S" in MultiSell being capitalized ;)
try it out |
I went trough all that
I learned to be very carefull when editing multisell.txt
and that was on c1. it's case sensitive and sometimes the items names are diferent, ej. blue_wolve's_breastplate its a right name even though one could think it wouldn't recognize the " ' " and for god sake be carefull with the { } =) Anyways, knowing if it is a syntax problem its quite easy cuz you'll get [highlight=red:87864dc8ff] [Multisell.cpp] [197] Parsin Multisell file failed[/highlight:87864dc8ff] and then when you open a NPC store that calls for the multisell it won´t necessarily crash but it wont show anything... the dwarf could crash your client though. Try to Use Ultraedit32 to work with these files, its pretty handy and the search feature is way better than notepad. Also i think you got it all wrong you need to call for the LINE NUMBER where the item string info is, not the numbre beside Multisell_begin EJ: Code:
//명품관 무기 youll need to use: Code:
<a action="bypass -h menu_select?ask=-9&reply=16">the line 16 is where the pata item is. BTW, the Multisell_Begin line doesnt count, neither blank spaces or Multisell_End or the // lines. that is. you must count "lines" as valid items. Hope this clears out everything. And i have a question: what are those new items on the ProjectC2 Beta3 Final Multisell.txt i mean where are they being sold? |
Quote:
and what you are linking for is the item already, you wanna link to the overview of items i guess, so use the method mentioned above and supply the ID defined to your multisell. and just for your info, the name in the [] tags is the prefix for the html files ;) nothing more so the html should look like this: recipe_level_1001 recipe_level_1002 etc |
Quote:
i just pointed out the best way to notice the syntax error. that way you woulnd't have to load up all the npcs just to test that. Quote:
but i need to point out that the Blacksmiths dont have a preview like the Luxury store has, so the calls are diferent. Blacksmiths generate the menu from the items listed on the multisell [dualsword_d] (on c1) an only charge adena. Quote:
{{[sword_of_delusion];1};{{[crystal_c];1075};{[crystal_d];5375}}}; this is: {{[internal_item_name];quantity};{{[condition_1];amount};{[condition_2];amount}}}; I've already added stuff to the Luxury Store/Blacksmith and I've seen what happen when you misstype an internal_item_name. it ain't pretty :P and yes... these are the same names you can use when //summon |
i meant not those, but these: MultiSell_begin [html_prefix] ID ;)
AND of course multisell IS luxury store. (and other way round) we dont want to write every item in the html by hand do we, when the server writes the luxury part after all. you can do either way, make a html with the links yourself or use the one the server makes. PS: can someone test it once again plz? |
It works!
I got it working :wink: allready tested on my server, everything is working fine.
One problem was the "S" in MultiSell not capitalized, and another is that multisell file has a limit on how much categories you can have, it must be 20 or so... No changes needed either on itemdata.txt or ai.obj or any other file like it was said... here is and the lvl7 recipes all done Code:
MultiSell_begin [recipe_level_7] CHANGE_HERE <a action="bypass -h multisell?id=NUMBER_HERE">TEXT_HERE</a> Riane thanx man for your help |
| All times are GMT. The time now is 21:44. |