Brynner Posted December 6, 2022 Group: Members Topic Count: 119 Topics Per Day: 0.02 Content Count: 1950 Reputation: 201 Joined: 01/08/12 Last Seen: 51 minutes ago Share Posted December 6, 2022 8 hours ago, Hyroshima said: @ Rook1es I added the manual fix, you can install the diff and make the fix I left in the post. thanks it works. here is a working diff patch for the latest version. credits goes to Hyroshima ExtendedVending_Rev9.2.diff 1 Quote Link to comment Share on other sites More sharing options...
Rook1es Posted December 12, 2022 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 97 Reputation: 5 Joined: 06/21/15 Last Seen: September 28, 2024 Share Posted December 12, 2022 On 12/6/2022 at 4:31 PM, Hyroshima said: @ Rook1es I added the manual fix, you can install the diff and make the fix I left in the post. Thank you for update Quote Link to comment Share on other sites More sharing options...
Rook1es Posted December 12, 2022 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 97 Reputation: 5 Joined: 06/21/15 Last Seen: September 28, 2024 Share Posted December 12, 2022 On 12/7/2022 at 1:19 AM, Brynner said: thanks it works. here is a working diff patch for the latest version. credits goes to Hyroshima ExtendedVending_Rev9.2.diff 32.3 kB · 14 downloads Is it safe to use? yes 100% working now but i can still buy on vend when i have still bound items on my inventory is it safe to use? Quote Link to comment Share on other sites More sharing options...
Easycore Posted January 31, 2023 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 220 Reputation: 257 Joined: 04/08/13 Last Seen: August 24, 2023 Author Share Posted January 31, 2023 Pending approval: Updated item_vending_db.yml to Rapid YAML. Updated some deprecated functions regarding item database. Fixed an issue with bound item battle config. Updated to latest GitHash: d93d41 1 1 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted January 31, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted January 31, 2023 34 minutes ago, Easycore said: Pending approval: Updated item_vending_db.yml to Rapid YAML. Updated some deprecated functions regarding item database. Fixed an issue with bound item battle config. Updated to latest GitHash: d93d41 this is for the latest version correct? Quote Link to comment Share on other sites More sharing options...
AinsLord Posted January 31, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted January 31, 2023 (edited) bump to this sir @Easycore i did recv error on this part EDIT: figured out #include "../common/malloc.hpp" // aMalloc, aFree #include "../common/nullpo.hpp" #include "../common/showmsg.hpp" // ShowInfo #include "../common/strlib.hpp" #include "../common/timer.hpp" // DIFF_TICK #include "../common/utils.hpp" #include "achievement.hpp" #include "atcommand.hpp" #include "battle.hpp" #include "buyingstore.hpp" #include "buyingstore.hpp" // struct s_autotrade_entry, struct s_autotrader #include "chrif.hpp" #include "clif.hpp" #include "itemdb.hpp" #include "intif.hpp" <------ the diff file doenst include this #include "log.hpp" #include "npc.hpp" #include "path.hpp" #include "pc.hpp" #include "pc_groups.hpp" Edited January 31, 2023 by AinsLord solved Quote Link to comment Share on other sites More sharing options...
Easycore Posted January 31, 2023 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 220 Reputation: 257 Joined: 04/08/13 Last Seen: August 24, 2023 Author Share Posted January 31, 2023 @AinsLord Fixed. Waiting for approval. Quote Link to comment Share on other sites More sharing options...
Brynner Posted February 4, 2023 Group: Members Topic Count: 119 Topics Per Day: 0.02 Content Count: 1950 Reputation: 201 Joined: 01/08/12 Last Seen: 51 minutes ago Share Posted February 4, 2023 (edited) On 2/1/2023 at 3:49 AM, Easycore said: @AinsLord Fixed. Waiting for approval. cash and zeny is missing. it works i forgot the db\import\item_db_ex.yml Edited February 4, 2023 by Brynner Quote Link to comment Share on other sites More sharing options...
AinsLord Posted February 4, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted February 4, 2023 (edited) 4 hours ago, Brynner said: cash and zeny is missing. it works i forgot the db\import\item_db_ex.yml add this to your import/item_db.yml #============================================================= # Extended Vending Items #============================================================= - Id: 30000 AegisName: Zeny Name: Zeny Type: Etc Weight: 1 - Id: 30001 AegisName: Cash Name: Cash Type: Etc Weight: 1 Edited February 4, 2023 by AinsLord Quote Link to comment Share on other sites More sharing options...
AinsLord Posted February 15, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted February 15, 2023 hi @Easycore there was a problem with the latest rathena git hash https://github.com/rathena/rathena/commit/a35063dfd653ee19385a4d8599822247abdee170 i update my git to this latest pull in rathena no problem compiling however when doing @reloaditemdb this error occurs i tried to edit the file src\map\vending.cpp since the latest have this #include <common/malloc.hpp> // aMalloc, aFree #include <common/nullpo.hpp> #include <common/showmsg.hpp> // ShowInfo #include <common/strlib.hpp> #include <common/timer.hpp> // DIFF_TICK and not this one #include "../common/malloc.hpp" // aMalloc, aFree #include "../common/nullpo.hpp" #include "../common/showmsg.hpp" // ShowInfo #include "../common/strlib.hpp" #include "../common/timer.hpp" // DIFF_TICK i changed #include "../common/utils.hpp" to #include <common/utils.hpp> works fine after compiling but do @reloaditemdb mapcrash error will occur thanks i hope this will be notice Quote Link to comment Share on other sites More sharing options...
JinYuichi Posted February 17, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 110 Reputation: 30 Joined: 11/24/14 Last Seen: Monday at 05:03 PM Share Posted February 17, 2023 On 2/14/2023 at 6:00 PM, AinsLord said: hi @Easycore there was a problem with the latest rathena git hash https://github.com/rathena/rathena/commit/a35063dfd653ee19385a4d8599822247abdee170 i update my git to this latest pull in rathena no problem compiling however when doing @reloaditemdb this error occurs i tried to edit the file src\map\vending.cpp since the latest have this #include <common/malloc.hpp> // aMalloc, aFree #include <common/nullpo.hpp> #include <common/showmsg.hpp> // ShowInfo #include <common/strlib.hpp> #include <common/timer.hpp> // DIFF_TICK and not this one #include "../common/malloc.hpp" // aMalloc, aFree #include "../common/nullpo.hpp" #include "../common/showmsg.hpp" // ShowInfo #include "../common/strlib.hpp" #include "../common/timer.hpp" // DIFF_TICK i changed #include "../common/utils.hpp" to #include <common/utils.hpp> works fine after compiling but do @reloaditemdb mapcrash error will occur thanks i hope this will be notice we have the same problem, although I still don't understand which part of the mod the crash comes from. Quote Link to comment Share on other sites More sharing options...
JinYuichi Posted February 17, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 110 Reputation: 30 Joined: 11/24/14 Last Seen: Monday at 05:03 PM Share Posted February 17, 2023 I found where the extend vending started to fail ... just starting from here. https://github.com/rathena/rathena/pull/7599 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted February 18, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted February 18, 2023 12 hours ago, JinYuichi said: I found where the extend vending started to fail ... just starting from here. https://github.com/rathena/rathena/pull/7599 did you find any solution to this? Quote Link to comment Share on other sites More sharing options...
JinYuichi Posted February 18, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 110 Reputation: 30 Joined: 11/24/14 Last Seen: Monday at 05:03 PM Share Posted February 18, 2023 2 hours ago, AinsLord said: encontraste alguna solucion a esto? I only had to omit that one commit, all the others are correct, it does not interfere with extending vending. 1 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted February 19, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted February 19, 2023 hi @Easycore i found some problem with the vending system when i try to cancel the vending it shows me this and the vending still opens up Quote Link to comment Share on other sites More sharing options...
JinYuichi Posted February 19, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 110 Reputation: 30 Joined: 11/24/14 Last Seen: Monday at 05:03 PM Share Posted February 19, 2023 1 hour ago, AinsLord said: hi @Easycore i found some problem with the vending system when i try to cancel the vending it shows me this and the vending still opens up what you say does not happen to me, did you install the manual diff? Quote Link to comment Share on other sites More sharing options...
AinsLord Posted February 20, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted February 20, 2023 On 2/20/2023 at 7:20 AM, JinYuichi said: what you say does not happen to me, did you install the manual diff? yea manual diff im using the latest one he updated Bump to my post yea i tried to re-diff again again using the latest rathena git and once i press the vending skill and instead of selecting a currency press cancel and still the vending window will open im using this latest rev of extended vending ExtendedVending_[Rev8].diff 1 Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted February 27, 2023 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted February 27, 2023 (edited) I also have the same issues with that cancel but still the vending tab opens and item id does not exist that @AinsLord have experienced. Edited February 28, 2023 by Lelouch vi Britannia Quote Link to comment Share on other sites More sharing options...
IILeonII Posted March 14, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 08/26/13 Last Seen: Tuesday at 12:18 AM Share Posted March 14, 2023 On 2/4/2023 at 1:03 AM, Brynner said: cash and zeny is missing. it works i forgot the db\import\item_db_ex.yml In db/import-tmpl and db/import add in item_db.yml Body: - Id: 30000 AegisName: Zeny Name: Zeny Type: Etc Weight: 1 - Id: 30001 AegisName: Cash Name: Cash Type: Etc Weight: 1 If not resolved. create a file called item_db_ex.yml and add it inside and put it in db/import-tmpl and db/import. I had the same problem and after doing that it fixed it. Quote Link to comment Share on other sites More sharing options...
adisutomo89 Posted March 16, 2023 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 11/25/22 Last Seen: September 19, 2024 Share Posted March 16, 2023 (edited) if the vending skill is closed, or not vending. such an error appears Edited March 16, 2023 by adisutomo89 Quote Link to comment Share on other sites More sharing options...
Sapito Sucio Posted March 21, 2023 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 186 Reputation: 111 Joined: 04/10/12 Last Seen: Yesterday at 01:19 AM Share Posted March 21, 2023 (edited) On 2/19/2023 at 3:47 PM, AinsLord said: hi @Easycore i found some problem with the vending system when i try to cancel the vending it shows me this and the vending still opens up On 2/27/2023 at 10:16 AM, Lelouch vi Britannia said: I also have the same issues with that cancel but still the vending tab opens and item id does not exist that @AinsLord have experienced. On 3/15/2023 at 11:32 PM, adisutomo89 said: if the vending skill is closed, or not vending. such an error appears To fix this you gotta change this code from the skill_vending() function; if (!pc_can_give_items(sd) || (item = itemdb_search(nameid)) == NULL) to this if (!pc_can_give_items(sd) || item_db.find(nameid)) { and this struct item_data *item; to this std::shared_ptr<item_data> item; Ending up with something like this /** * Extended Vending system [Lilith] **/ int skill_vending(struct map_session_data *sd, t_itemid nameid) { std::shared_ptr<item_data> item; char output[1024]; nullpo_ret(sd); if (!pc_can_give_items(sd) || !item_db.exists(nameid)) { sd->state.prevend = 0; sd->vend_loot = 0; sd->state.workinprogress = WIP_DISABLE_NONE; clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); } else { sd->vend_loot = nameid; sd->state.prevend = 1; clif_openvendingreq(sd, 2 + sd->vend_lvl); sprintf(output, msg_txt(sd, 1594), item->ename.c_str()); clif_messagecolor(&sd->bl, color_table[COLOR_CYAN], output, false, SELF); } return 0; } That change will fix the problem; 1_h5DSoasBYb.mp4 Edited March 21, 2023 by sapitosucio Fix by @JinYuichi Quote Link to comment Share on other sites More sharing options...
adisutomo89 Posted March 21, 2023 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 11/25/22 Last Seen: September 19, 2024 Share Posted March 21, 2023 7 hours ago, sapitosucio said: To fix this you gotta change this code from the skill_vending() function; if (!pc_can_give_items(sd) || (item = itemdb_search(nameid)) == NULL) to this if (!pc_can_give_items(sd) || item_db.find(nameid)) { and this struct item_data *item; to this std::shared_ptr<item_data> item; Ending up with something like this /** * Extended Vending system [Lilith] **/ int skill_vending(struct map_session_data *sd, t_itemid nameid) { std::shared_ptr<item_data> item; char output[1024]; nullpo_ret(sd); if (!pc_can_give_items(sd) || !item_db.exists(nameid)) { sd->state.prevend = 0; sd->vend_loot = 0; sd->state.workinprogress = WIP_DISABLE_NONE; clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); } else { sd->vend_loot = nameid; sd->state.prevend = 1; clif_openvendingreq(sd, 2 + sd->vend_lvl); sprintf(output, msg_txt(sd, 1594), item->ename.c_str()); clif_messagecolor(&sd->bl, color_table[COLOR_CYAN], output, false, SELF); } return 0; } That change will fix the problem; 1_h5DSoasBYb.mp4 2.98 MB · 0 downloads yeyy thanks.. work perfectly using patch manual 9.1 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted March 23, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted March 23, 2023 (edited) On 3/21/2023 at 3:05 PM, sapitosucio said: To fix this you gotta change this code from the skill_vending() function; if (!pc_can_give_items(sd) || (item = itemdb_search(nameid)) == NULL) to this if (!pc_can_give_items(sd) || item_db.find(nameid)) { and this struct item_data *item; to this std::shared_ptr<item_data> item; Ending up with something like this /** * Extended Vending system [Lilith] **/ int skill_vending(struct map_session_data *sd, t_itemid nameid) { std::shared_ptr<item_data> item; char output[1024]; nullpo_ret(sd); if (!pc_can_give_items(sd) || !item_db.exists(nameid)) { sd->state.prevend = 0; sd->vend_loot = 0; sd->state.workinprogress = WIP_DISABLE_NONE; clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); } else { sd->vend_loot = nameid; sd->state.prevend = 1; clif_openvendingreq(sd, 2 + sd->vend_lvl); sprintf(output, msg_txt(sd, 1594), item->ename.c_str()); clif_messagecolor(&sd->bl, color_table[COLOR_CYAN], output, false, SELF); } return 0; } That change will fix the problem; 1_h5DSoasBYb.mp4 2.98 MB · 0 downloads in what src file should i edit this lines thanks EDIT: i modified skill.cpp after opening the veding skill and close it map server crashed and DCed /** * Extended Vending system [Lilith] **/ int skill_vending(struct map_session_data *sd, t_itemid nameid) { std::shared_ptr<item_data> item; char output[1024]; nullpo_ret(sd); if (!pc_can_give_items(sd) || item_db.find(nameid)) { sd->state.prevend = 0; sd->vend_loot = 0; sd->state.workinprogress = WIP_DISABLE_NONE; clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0); } else { sd->vend_loot = nameid; sd->state.prevend = 1; clif_openvendingreq(sd, 2 + sd->vend_lvl); sprintf(output, msg_txt(sd, 1594), item->ename.c_str()); clif_messagecolor(&sd->bl, color_table[COLOR_CYAN], output, false, SELF); } return 0; its exactly the same as yours Edited March 23, 2023 by AinsLord Quote Link to comment Share on other sites More sharing options...
JinYuichi Posted March 23, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 110 Reputation: 30 Joined: 11/24/14 Last Seen: Monday at 05:03 PM Share Posted March 23, 2023 Fixed up Extend Vending 1.7.0.diff 1 1 1 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted March 23, 2023 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: March 23 Share Posted March 23, 2023 (edited) 5 hours ago, JinYuichi said: Fixed up Extend Vending 1.7.0.diff 38.5 kB · 2 downloads i dont think this will be fixed my extended vending unless i get fresh src again and manually add it im using this diff ExtendedVending_[Rev8].diff ExtendedVending_[Rev9].diff Edited March 23, 2023 by AinsLord Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.