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, .@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 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, .@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?

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

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!

Share this post


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

Share this post


Link to post
Share on other sites

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

Share this post


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

Share this post


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

 

Share this post


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

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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