Dastgir

Plugin Collections

235 posts in this topic

[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

Yes, of course. Plugin compiled without errors. Problem in script...

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now