Thinker 2 Posted August 25, 2018 3 hours ago, Dastgir said: I need to rework on restock, it seems, I pushed a unfinished work before, which plugin? costumeitem (https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/costumeitem.c) Quote Share this post Link to post Share on other sites
Fizik 2 Posted January 18, 2019 (edited) [Error]: script error in file 'npc/custom/etc/Restock.txt' line 147 column 1 set_label: dup label 144: } 145: end; 146: * 147: OnRestock: ^ 148: // Get Restock Amount 149: query_sql("SELECT `restkq`,`restkf` FROM `restock` WHERE `charid`="+ getcharid(0) +" AND `restockid`="+ restkid, .@qu, .@fr); 150: if (.@qu) { and: [Error]: script error in file 'npc/custom/etc/Restock.txt' line 152 column 3 parse_line: expect command, missing function name or calling undeclared function 149: if (.@qu) { 150: // Restock Item 151: .@ru = restkid; * 152: restock_item(.@ru, .@qu, .@fr); ~~~~~~~~~~~~~~~~^ 153: } 154: restkid = 0; 155: end; I have this problem with NPC Restok.txt Can you help with this? Edited January 18, 2019 by Fizik Quote Share this post Link to post Share on other sites
Caspian 23 Posted January 18, 2019 7 hours ago, Fizik said: [Error]: script error in file 'npc/custom/etc/Restock.txt' line 147 column 1 set_label: dup label 144: } 145: end; 146: * 147: OnRestock: ^ 148: // Get Restock Amount 149: query_sql("SELECT `restkq`,`restkf` FROM `restock` WHERE `charid`="+ getcharid(0) +" AND `restockid`="+ restkid, .@qu, .@fr); 150: if (.@qu) { and: [Error]: script error in file 'npc/custom/etc/Restock.txt' line 152 column 3 parse_line: expect command, missing function name or calling undeclared function 149: if (.@qu) { 150: // Restock Item 151: .@ru = restkid; * 152: restock_item(.@ru, .@qu, .@fr); ~~~~~~~~~~~~~~~~^ 153: } 154: restkid = 0; 155: end; I have this problem with NPC Restok.txt Can you help with this? Did you enable the plugin at conf/plugins.conf? Quote Share this post Link to post Share on other sites
Fizik 2 Posted January 18, 2019 Yes, of course. Plugin compiled without errors. Problem in script... Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted January 18, 2019 3 hours ago, Fizik said: Yes, of course. Plugin compiled without errors. Problem in script... Yes, sorry, will fix it. It seems i pushed unfinished update 1 Fizik reacted to this Quote Share this post Link to post Share on other sites
Fizik 2 Posted January 18, 2019 (edited) 7 hours ago, Dastgir said: Yes, sorry, will fix it. It seems i pushed unfinished update Can you write here when this you finish the fix please?) And I have One more problem : DB error - Unknown column 'item_id' in 'field list' [Debug]: at restock.c:297 - SELECT `item_id`, `quantity`, `restock_from` FROM `restock` WHERE `char_id` = '150031' [Status]: set users Ragnarok-Online : 2 [Info]: Saved char 150026 - CrazyFrog: status. [Info]: inventory save complete - guid: 150031 (replace: 1, insert: 0, delete: 0) [Info]: Saved char 150031 - Maximes: inventory status. [Warning]: lclif_parse: Received unsupported packet (packet 0x2824, 105 bytes received), disconnecting session #8. I don't understand, before i haven't any problem with Packet Oo maybe you know what is this?) Packet Opfuscation disabled on client and server. 100% 2015-11-04 exe This warn i'l get after adding one of this plugin's "restock", "security", "whosell", Edited January 18, 2019 by Fizik Quote Share this post Link to post Share on other sites
AnnieRuru 957 Posted February 19, 2019 https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/MaxLvExpGain.c#L66 should be else if ( !strcmpi( key, "battle_configuration/max_jlv_exp_gain" ) ) Quote Share this post Link to post Share on other sites
Virtue 10 Posted March 14, 2019 hitdelay.c:105:94: error: unknown type name 'clr_type' hitdelay.c: In function 'plugin_init': hitdelay.c:208:2: error: 'pc_setpos_delay' undeclared (first use in this function) hitdelay.c:208:2: note: each undeclared identifier is reported only once for each function it appears in hitdelay.c:208:2: warning: left-hand operand of comma expression has no effect [-Wunused-value] Hit delay error. Quote Share this post Link to post Share on other sites
Kuroe 5 Posted March 14, 2019 2 hours ago, Virtue said: hitdelay.c:105:94: error: unknown type name 'clr_type' hitdelay.c: In function 'plugin_init': hitdelay.c:208:2: error: 'pc_setpos_delay' undeclared (first use in this function) hitdelay.c:208:2: note: each undeclared identifier is reported only once for each function it appears in hitdelay.c:208:2: warning: left-hand operand of comma expression has no effect [-Wunused-value] Hit delay error. Find int pc_setpos_delay(struct map_session_data **sd, unsigned short *map_index, int *x, int *y, clr_type *clrtype) and change it to int pc_setpos_delay(struct map_session_data **sd, unsigned short *map_index, int *x, int *y, enum clr_type *clrtype) Quote Share this post Link to post Share on other sites
Virtue 10 Posted March 14, 2019 Will try this later thanks @Kuroe Quote Share this post Link to post Share on other sites
Zarbony 1 Posted October 6, 2019 Hey there, since the last Update ive got errors in Timestamp Plugin: chat-timestamp.c In function 'clif_wis_message_pre' : chat-timestamp.c:160:8: error: too few arguments to function 'map->nich2sd' ssd = map->nick2sd(nick); How does i can fix this one? Could you please update the Plugin? Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted October 6, 2019 1 hour ago, Zarbony said: Hey there, since the last Update ive got errors in Timestamp Plugin: chat-timestamp.c In function 'clif_wis_message_pre' : chat-timestamp.c:160:8: error: too few arguments to function 'map->nich2sd' ssd = map->nick2sd(nick); How does i can fix this one? Could you please update the Plugin? Updated https://github.com/dastgirp/HPM-Plugins/commit/82c428fc5e1177cb724c4ea48d8668d3fdee2caf 1 Zarbony reacted to this Quote Share this post Link to post Share on other sites
Neffletics 9 Posted October 24, 2019 @security script is outdated. No error when compiling but doesn't work in-game. Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted October 24, 2019 1 hour ago, Neffletics said: @security script is outdated. No error when compiling but doesn't work in-game. You need to specify what happens exactly Quote Share this post Link to post Share on other sites
Neffletics 9 Posted October 24, 2019 (edited) 36 minutes ago, Dastgir said: You need to specify what happens exactly Thanks for the prompt response! I have installed the plugin; followed the normal procedure. Compilation: Okay! Running the server: Okay! (no error) NPC and Command: Okay! However, after enabling all restrictions (can't drop, can't trade, can't everything), I can still drop an item, leave guild, get guild requests, vend, and etc.) I'm supposed to receive a message that security is enabled and I'm not allowed to do it. Resolved! I forgot to add it to plugins.conf Edited October 24, 2019 by Neffletics Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted November 24, 2019 Updated to latest hercules (2019.11.17) https://github.com/dastgirp/HPM-Plugins/commit/9e709b5c62843dddfd5dd226802f584292b57deb Quote Share this post Link to post Share on other sites
rans 7 Posted February 5, 2020 There's a bug in @autoattack. for some reason if you change map while in the state of autoattack you will get a client error message. saying missing sprite or something. Using 2016 02 03 client. im not sure in other newer client. Maybe add a delay before moving the char when you change map? Thanks! Quote Share this post Link to post Share on other sites
cookie-rae 6 Posted February 9, 2020 On 2/5/2020 at 10:49 PM, rans said: There's a bug in @autoattack. for some reason if you change map while in the state of autoattack you will get a client error message. saying missing sprite or something. Using 2016 02 03 client. im not sure in other newer client. Maybe add a delay before moving the char when you change map? Thanks! It is not a delay thing and it is not change map problem. it was on calling the sprite to load. ^^ Quote Share this post Link to post Share on other sites
Petey Pablo 0 Posted March 30, 2020 We are requesting to update your @pk Quote Share this post Link to post Share on other sites
ThyroDree 3 Posted April 15, 2020 Can we request for update of PK, Warp-Delay and FCP-Bypass plugins? It will be a great to have this plugins again sir @Dastgir Quote Share this post Link to post Share on other sites
eitopop 2 Posted May 24, 2020 Trouble compiling autoattack.c. Help appreciated. 'walktoxy':is not a member of 'unit_interface' (Line 65) Thanks! Quote Share this post Link to post Share on other sites
museti22 1 Posted July 10, 2020 Use unit->walk_toxy 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
evilpuncker 504 Posted August 28, 2020 On 7/10/2020 at 5:35 PM, museti22 said: Use unit->walk_toxy thanks, that fixes one of the issues I posted here, hope @Dastgir can take a look when he got free time Quote Share this post Link to post Share on other sites
Dastgir 1246 Posted August 30, 2020 On 8/28/2020 at 12:50 PM, evilpuncker said: thanks, that fixes one of the issues I posted here, hope @Dastgir can take a look when he got free time Thank you for posting it in github. Will fix it in a day. (And welcome back) Quote Share this post Link to post Share on other sites
simplexjay2 2 Posted January 5, 2021 On 6/29/2016 at 8:07 PM, Dastgir said: Added 'sellitem2' It is similar to sellitem, but you can define cards and refines in it. Syntax: sellitem2 <Item_ID>,identify,refine,attribute,card1,card2,card3,card4{,price}; sellitem2 <Item_ID>,identify,refine,attribute,card1,card2,card3,card4{,price}; why its not working in the script Quote prontera,154,167,4 trader Kafra Shop Limited#1hg 4_F_KAFRA2,{ OnInit: waitingroom "Kafra Shop Limited",0; tradertype(NST_CUSTOM); // make this shop a custom shop sellitem2 2406,0,7,0,0,0,0,0,10; // M Mage Hat end; OnCountFunds: setcurrency(#CASHPOINTS); // your custom shop's curreny. end; OnPayFunds: if( #CASHPOINTS < @points ) // check points if sufficient. end; #CASHPOINTS -= @points; // reduce points on purchase purchaseok(); } Quote Share this post Link to post Share on other sites