Jump to content
Dastgir

Plugin Collections

Recommended Posts

[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, [email protected], [email protected]);
   150:         if ([email protected]) {

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 ([email protected]) {
   150:                 // Restock Item
   151:                 [email protected] = restkid;
*  152:                 restock_item([email protected], [email protected], [email protected]);
        ~~~~~~~~~~~~~~~~^
   153:         }
   154:         restkid = 0;
   155:         end;

I have this problem with NPC Restok.txt
Can you help with this?

Edited by Fizik

Share this post


Link to post
Share on other sites
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, [email protected], [email protected]);
   150:         if ([email protected]) {

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 ([email protected]) {
   150:                 // Restock Item
   151:                 [email protected] = restkid;
*  152:                 restock_item([email protected], [email protected], [email protected]);
        ~~~~~~~~~~~~~~~~^
   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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 by Fizik

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)

 

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 by Neffletics

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.