Ind 945 Posted October 11, 2013 File Name: @storeitem File Submitter: Ind File Submitted: 10 Oct 2013 File Category: Plugins HPM Plugin. Implements the @storeitem command @storeitem <item name or ID> <quantity> <refine> <char name> Designed by Beowulf/Nightroad How to Install Check the wiki page on 'Building a Plugin' http://herc.ws/wiki/HPM#Building_a_plugin Contribute / Customize Its available at our Staff Plugins Repo, pull requests are more than welcome. Click here to download this file 6 Mystery, Samuel, Louis T Steinhil and 3 others reacted to this Quote Share this post Link to post Share on other sites
Samuel 83 Posted October 19, 2013 Nice one! Just few questions Do HPM @commands when added shows in the @command list? And does the HPM @commands can be added in the groups.conf? storeitem: true Thanks! Quote Share this post Link to post Share on other sites
ossi0110 200 Posted October 19, 2013 Nice one! Just few questions Do HPM @commands when added shows in the @command list? And does the HPM @commands can be added in the groups.conf? storeitem: true Thanks! as far i know yes you can add HPM Plugins in the groups.conf because all Plugins are Loaded BEFORE the groups conf. Quote Share this post Link to post Share on other sites
Mhalicot 392 Posted October 19, 2013 Definitely yes Quote Share this post Link to post Share on other sites
THPO 7 Posted September 10, 2014 not working on latest git version: missing declaration: 1>------ Rebuild All started: Project: @storeitem, Configuration: Debug Win32 ------ 1> @storeitem.c 1>c:[email protected](39): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:program filesmicrosoft visual studio 10.0vcincludestdio.h(325) : see declaration of 'sscanf' 1>c:[email protected](46): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:program filesmicrosoft visual studio 10.0vcincludestdio.h(371) : see declaration of 'sprintf' 1>c:[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface' 1> c:usersdelldesktopherc_localsrcmappc.h(736) : see declaration of 'pc_interface' 1>c:[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface' 1> c:usersdelldesktopherc_localsrcmappc.h(736) : see declaration of 'pc_interface' 1>c:[email protected](79): error C2065: 'mob' : undeclared identifier 1>c:[email protected](79): error C2223: left of '->db' must point to struct/union 1>c:[email protected](114): warning C4013: 'ACMD_A' undefined; assuming extern returning int 1>c:[email protected](114): error C2065: 'storeitem' : undeclared identifier 1>c:[email protected](114): warning C4047: 'function' : 'bool (__cdecl *)(const int,map_session_data *,const char *,const char *,AtCommandInfo *)' differs in levels of indirection from 'int' 1>c:[email protected](114): warning C4024: 'function through pointer' : different types for formal and actual parameter 2 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== 1 Zirius reacted to this Quote Share this post Link to post Share on other sites
Zirius 1 Posted September 15, 2014 not working on latest git version: missing declaration: 1>------ Rebuild All started: Project: @storeitem, Configuration: Debug Win32 ------ 1> @storeitem.c 1>c:[email protected](39): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:program filesmicrosoft visual studio 10.0vcincludestdio.h(325) : see declaration of 'sscanf' 1>c:[email protected](46): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:program filesmicrosoft visual studio 10.0vcincludestdio.h(371) : see declaration of 'sprintf' 1>c:[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface' 1> c:usersdelldesktopherc_localsrcmappc.h(736) : see declaration of 'pc_interface' 1>c:[email protected](74): error C2039: 'get_group_level' : is not a member of 'pc_interface' 1> c:usersdelldesktopherc_localsrcmappc.h(736) : see declaration of 'pc_interface' 1>c:[email protected](79): error C2065: 'mob' : undeclared identifier 1>c:[email protected](79): error C2223: left of '->db' must point to struct/union 1>c:[email protected](114): warning C4013: 'ACMD_A' undefined; assuming extern returning int 1>c:[email protected](114): error C2065: 'storeitem' : undeclared identifier 1>c:[email protected](114): warning C4047: 'function' : 'bool (__cdecl *)(const int,map_session_data *,const char *,const char *,AtCommandInfo *)' differs in levels of indirection from 'int' 1>c:[email protected](114): warning C4024: 'function through pointer' : different types for formal and actual parameter 2 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== I can confirm the same problem, replacing the functions as per suggested by Visual Express cause additional problem. ? Will confirm if having problem in *nix later. Quote Share this post Link to post Share on other sites
Angelmelody 221 Posted September 17, 2014 try this @storeitem.c 1 Zirius reacted to this Quote Share this post Link to post Share on other sites
Zirius 1 Posted September 18, 2014 try this @storeitem.c wew! Beat me to it. I am supposed to also update the plugin. Btw, the old plugin is not yet configured to stack stackable items. Find: if( ( item_data->type != 4 && item_data->type != 5 ) || item_data->flag.no_refine ) ref = 0; get_count = number; Add after: if (!itemdb->isstackable2(item_data)) { get_count = 1; } For now, create_pet() seems to be attached to player only. So, putting it to storage fails. Quote Share this post Link to post Share on other sites
Zirius 1 Posted September 26, 2014 Why am I having this error on my CentOS? in works on windows. I already added in to makefile.in, make plugins output: *** No rule to make target `@storeitem', needed by `all'. Stop.make: *** [plugins] Error 2 Thanks! Quote Share this post Link to post Share on other sites
Zirius 1 Posted October 14, 2014 Hello! What should I replace to make characters who are logged out still able to store in their storage? if ((pl_sd = map->nick2sd(character)) != NULL) { ... } Quote Share this post Link to post Share on other sites