Rebel
New member
- Messages
- 149
- Points
- 0
- Github
- shadow-mo0n
- Emulator
Hello Sir,
I am having an error in console after compiling the ExtendedVending.
[Error]: sv_readdb: can't read db/item_vending.txt
add item_vending.txt in your db folder
Hello Sir,
I am having an error in console after compiling the ExtendedVending.
[Error]: sv_readdb: can't read db/item_vending.txt
add item_vending.txt in your db folder
from @market.c:39:
@market.c: In function 'killmonster_sub_pre':
../common/HPMi.h:143:38: warning: potential null pointer dereference [-Wnull-dereference]
#define getFromMOBDATA(ptr,classid) (HPMi->getFromHPData(HPDT_MOBDATA,HPMi->pid,(ptr)->hdata,(classid)))
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@market.c:468:29: note: in expansion of macro 'getFromMOBDATA'
struct monster_data *mmd = getFromMOBDATA(md, 0);
^~~~~~~~~~~~~~
../common/HPMi.h:143:38: warning: potential null pointer dereference [-Wnull-dereference]
#define getFromMOBDATA(ptr,classid) (HPMi->getFromHPData(HPDT_MOBDATA,HPMi->pid,(ptr)->hdata,(classid)))
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@market.c:468:29: note: in expansion of macro 'getFromMOBDATA'
struct monster_data *mmd = getFromMOBDATA(md, 0);
hey das a couple of issues with two plugins on latest git.
ExtendedVending.c: In function 'skill_vending_ev':
ExtendedVending.c:120:3: error: too few arguments to function 'clif->skill_fail'
clif->skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
^~~~
ExtendedVending.c:152:3: error: too few arguments to function 'clif->skill_fail'
clif->skill_fail(sd,MC_VENDING,USESKILL_FAIL_LEVEL,0);
^~~~
ExtendedVending.c: In function 'clif_parse_SelectArrow_pre':
ExtendedVending.c:231:3: error: too few arguments to function 'clif->skill_fail'
clif->skill_fail(*sd,(*sd)->ud.skill_id,USESKILL_FAIL_LEVEL,0);
^~~~
ExtendedVending.c: In function 'clif_vend':
ExtendedVending.c:323:3: error: too few arguments to function 'clif->skill_fail'
clif->skill_fail(sd,MC_VENDING,USESKILL_FAIL_LEVEL,0);
^~~~
ExtendedVending.c: In function 'skill_castend_nodamage_id_pre':
ExtendedVending.c:401:6: error: too few arguments to function 'clif->skill_fail'
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
and also
from @market.c:39:
@market.c: In function 'killmonster_sub_pre':
../common/HPMi.h:143:38: warning: potential null pointer dereference [-Wnull-dereference]
#define getFromMOBDATA(ptr,classid) (HPMi->getFromHPData(HPDT_MOBDATA,HPMi->pid,(ptr)->hdata,(classid)))
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@market.c:468:29: note: in expansion of macro 'getFromMOBDATA'
struct monster_data *mmd = getFromMOBDATA(md, 0);
^~~~~~~~~~~~~~
../common/HPMi.h:143:38: warning: potential null pointer dereference [-Wnull-dereference]
#define getFromMOBDATA(ptr,classid) (HPMi->getFromHPData(HPDT_MOBDATA,HPMi->pid,(ptr)->hdata,(classid)))
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@market.c:468:29: note: in expansion of macro 'getFromMOBDATA'
struct monster_data *mmd = getFromMOBDATA(md, 0);
I need to rework on restock, it seems, I pushed a unfinished work before,awsome a couple other issues with some of the other systems as i was testing them.
[Error]: --- nullpo info --------------------------------------------
[Error]: sellitem2.c:256: 'nsd = nsd_search(nd, 0)' in function `clif_buylist_pre'
[Error]: ./map-server() [0x61e442]
[Error]: plugins/HPMHooking_map.so(HP_clif_buylist+0xc5) [0x7f13741cb9a5]
[Error]: ./map-server() [0x4fb86c]
[Error]: plugins/HPMHooking_map.so(HP_npc_buysellsel+0x40) [0x7f137422a700]
[Error]: ./map-server() [0x4679c6]
[Error]: ./map-server() [0x62a5bb]
[Error]: ./map-server(main+0x2ba) [0x4083fa]
[Error]: /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f1376962445]
[Error]: ./map-server() [0x40859c]
and also from the restock system. i can make some mediocre edits to scripts however in this case for restock system i tried to fix the issue but was unable to resolve.
[[email protected] stockro]$ [Error]: script error in file 'SNPC/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) {
[Warning]: npc_parsename: Duplicate unique name in file 'SNPC/Restock.txt', line '14'. Renaming 'Restock' to '1_189_140_140'.
thank you again for the reply.
which plugin?Hello @Dastgir
Is the class constraint working?
I create the item, it works..
When you log out and log in, it does not work.
costumeitem (https://github.com/dastgirp/HPM-Plugins/blob/master/src/plugins/costumeitem.c)I need to rework on restock, it seems, I pushed a unfinished work before,
which plugin?
Did you enable the plugin at conf/plugins.conf?[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?
Yes, sorry, will fix it.Yes, of course. Plugin compiled without errors. Problem in script...
Can you write here when this you finish the fix please?)Yes, sorry, will fix it.
It seems i pushed unfinished update
: 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",
else if ( !strcmpi( key, "battle_configuration/max_jlv_exp_gain" ) )
Findhitdelay.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.
int pc_setpos_delay(struct map_session_data **sd, unsigned short *map_index, int *x, int *y, enum clr_type *clrtype)
UpdatedHey 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?
You need to specify what happens exactly@security script is outdated. No error when compiling but doesn't work in-game.
We use essential cookies to make this site work, and optional cookies to enhance your experience.