Jezu 25 Posted May 15, 2013 (edited) Hello guys! As you can see, customize NPC shops like Euphy's script is a bit hard but it is understand-able when you read it throughly. Why don't we make it simple. Just like 'cashshop' and 'shop' on ordinary NPC. This is an example and it comes the idea from eAmod. prontera,156,176,5,<itemid><tab>Headgears<tab>900,ItemID:Amount,ItemID:Amount,... the <itemid> will be the currency of the said NPC. It will be much easier and can be more customizable. Helpful with rewards, main currencies, etc etc. Edited May 15, 2013 by Jezu 2 icabit and Neo-Mind reacted to this Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted May 15, 2013 (edited) I made this, Just Wait for some minute for me to upload this patch. File : ItemShop-May15.diff Usage: <map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,..... Once download gets approved by mods, http://herc.ws/board/files/file/6-customized-shop-needs-item/ Tested And Working. Edited May 15, 2013 by dastgirpojee 5 Alexandria, Jezu, icabit and 2 others reacted to this Quote Share this post Link to post Share on other sites
Jezu 25 Posted May 15, 2013 I made this, Just Wait for some minute for me to upload this patch. File : ItemShop-May15.diff Usage: <map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,..... Once download gets approved by mods, http://herc.ws/board/files/file/6-customized-shop-needs-item/ Tested And Working. Wow! This is great! :3 What a nice response from dastgir :3 Thanks a lot for this patch! It will be easier now to create customize shops. Quote Share this post Link to post Share on other sites
icabit 4 Posted May 15, 2013 a must a approve I made this, Just Wait for some minute for me to upload this patch. File : ItemShop-May15.diff Usage: <map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,..... Once download gets approved by mods, http://herc.ws/board/files/file/6-customized-shop-needs-item/ Tested And Working. Quote Share this post Link to post Share on other sites
kyeme 71 Posted May 16, 2013 (edited) I made this, Just Wait for some minute for me to upload this patch. File : ItemShop-May15.diff Usage: <map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,..... Once download gets approved by mods, http://herc.ws/board/files/file/6-customized-shop-needs-item/ Tested And Working. Hi! Can you make in this format <itemid>:<amount>:<item_required>,<itemid>:<amount>:<item_required>,..... I think its better this way. Suggestion only Edited May 16, 2013 by kyeme Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted May 16, 2013 I made this, Just Wait for some minute for me to upload this patch. File : ItemShop-May15.diff Usage: <map name>,<x>,<y>,<facing>,<item_id> ishop <npc name> <spriteid>,<itemid>:<amount>,..... Once download gets approved by mods, http://herc.ws/board/files/file/6-customized-shop-needs-item/ Tested And Working. Hi! Can you make in this format <itemid>:<amount>:<item_required>,<itemid>:<amount>:<item_required>,..... I think its better this way. Suggestion only It would be a problem then , bcoz we can't differentiate items , nor we can change item name, since the packet is sended in the form of item_id not item_name. Quote Share this post Link to post Share on other sites
araojo21 0 Posted May 21, 2013 is this applicable to rathena? Quote Share this post Link to post Share on other sites
argelybiz 0 Posted May 21, 2013 guide please how to apply this diff file? Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted May 21, 2013 if you use git as command line : git apply filename I don't know about softwares, bcoz i use git command-line. Quote Share this post Link to post Share on other sites
Robbeen 0 Posted June 3, 2013 Excuse me but I'm here to report some bugs. I diffed the file, and when I recompiled, I got errors : patching file map/npc.c Hunk #1 succeeded at 1203 (offset -10 lines). Hunk #2 succeeded at 1308 (offset -10 lines). Hunk #3 succeeded at 1357 (offset -10 lines). Hunk #4 succeeded at 1440 (offset -10 lines). Hunk #5 succeeded at 1488 (offset -10 lines). Hunk #6 succeeded at 1867 (offset -11 lines). Hunk #7 succeeded at 2213 (offset -9 lines). Hunk #8 FAILED at 2337. Hunk #9 FAILED at 2638. Hunk #10 FAILED at 2691. Hunk #11 succeeded at 3713 (offset -46 lines). patching file map/npc.h Hunk #1 FAILED at 37. Can you please help me ? Guess I did everything right. Thanks in advance. Quote Share this post Link to post Share on other sites
Ind 945 Posted June 6, 2013 We already have been discussing how to implement such things for some time now, should be out once we wrap it up. Quote Share this post Link to post Share on other sites
Jedzkie 58 Posted June 30, 2013 i have a question regarding on this mod, how can i possibly make it as callshop? i want only 1 npc and then there are multiple categories, i always got errors when i trying to make this mod to callshop ex: close2; callshop "ishop",1; break; my question is, what should i use in this script? cashshop? shop? or ishop? thanks. Quote Share this post Link to post Share on other sites
jaBote 438 Posted June 30, 2013 I think you should call the shop name, not the shop type. Example (as said in doc/script_commands.txt): //Will call the shop named DaShop and opens the buy menu.callshop "DaShop",1; The first argument passed to callshop is the NPC name that has the shop, as you can see. You should declare a shop with your very own name elsewhere and then call it (by its name) from callshop. Quote Share this post Link to post Share on other sites
Jedzkie 58 Posted June 30, 2013 yes, i know about that, but there's a error when i use this script -<tab>ishop<tab>DaShop<tab>-1,501:10 the problem is where should i put the item_id that will set in my shop? ex: 7227 - TCG CARD Quote Share this post Link to post Share on other sites
mleo1 36 Posted July 2, 2013 please include this to herc. xD. Quote Share this post Link to post Share on other sites
mrlongshen 22 Posted July 3, 2013 please include this to herc. xD. agree! Quote Share this post Link to post Share on other sites
Ragnar Lothbrok 21 Posted August 3, 2013 i got this error when clicking the NPC.. can anyone help me.. thanks Quote Share this post Link to post Share on other sites