Dastgir

Plugin Collections

226 posts in this topic

 

Hello,

I get a [Warning] when use dispbottom2:

 

 

 

PmHK8GH.png

 

 

 

The message shows in color, but appear a warning.

I used the follow format: 

dispbottom2 0xFF0000,"Message";

 

When I put the color in " " (dispbottom2 "0xFF00002","Message";), no warning appears, but the message color is always white.

 

EDIT:

 

Using latest Herc git.

Currently, color should be in quotes, and format is 0xRRGGBB,

 

Hmmp... this still not working... I put the correct format, in quotes, but color's always White (No Debug appears).

 

However, I put the Warning Number Value in quotes, and the message shows in Red Color.

dispbottom2 "16711680","Message";

Share this post


Link to post
Share on other sites

 

 

Hello,

I get a [Warning] when use dispbottom2:

 

 

 

PmHK8GH.png

 

 

 

The message shows in color, but appear a warning.

I used the follow format: 

dispbottom2 0xFF0000,"Message";

 

When I put the color in " " (dispbottom2 "0xFF00002","Message";), no warning appears, but the message color is always white.

 

EDIT:

 

Using latest Herc git.

Currently, color should be in quotes, and format is 0xRRGGBB,
 Hmmp... this still not working... I put the correct format, in quotes, but color's always White (No Debug appears). However, I put the Warning Number Value in quotes, and the message shows in Red Color.
dispbottom2 "16711680","Message";

Hex format should have worked.

Anyways, I forgot to tell, recently, there was change in DispBottom to support color.

Syntax:

dispbottom "Message", <color>;

Color is in hex, so red = 0xFF0000

Share this post


Link to post
Share on other sites

experiencing problem with sellitem2. no errors on compile. when using in an NPC shows the correct function however disables all other npc and all other shops.

Can't talk to normal npcs and other shops items will be lost

Share this post


Link to post
Share on other sites

Hi @Dastgir, i hope you will have time to update plugins specially the Extended vending system (with the battleconf issue ) ty

Edited by Ranz

Share this post


Link to post
Share on other sites

@Dastgir
 

 

 

2>..\src\plugins\whobuy.c(68): warning C4018: '<' : signed/unsigned mismatch
2>..\src\plugins\whobuy.c(70): warning C4018: '>' : signed/unsigned mismatch

Share this post


Link to post
Share on other sites

Can you turn this into plugin?

https://pastebin.com/raw/jNJU6pFp

Much appreciated! :)

 

Also about Extended Vending, when I use vending skill there's an apple in selection, next to TCG and the coins as currency.. How to fix that?

 

Share this post


Link to post
Share on other sites
11 hours ago, Hercules said:

Can you turn this into plugin?

https://pastebin.com/raw/jNJU6pFp

Much appreciated! :)

 

Also about Extended Vending, when I use vending skill there's an apple in selection, next to TCG and the coins as currency.. How to fix that?

 

is this @aura command? There is already a plugin for it. https://github.com/dastgir/HPM-Plugins

Share this post


Link to post
Share on other sites

Its kinda different from auraset. @aura is part of eAmod. I managed to convert it to be compatible with Hercules, but I don't know how to make it to a plugin.

See screenshot.

 

20751196_1152536754879827_780856254_n.jpg

Edited by Hercules

Share this post


Link to post
Share on other sites
On 05/12/2016 at 3:14 PM, Ranz said:

Hi @Dastgir, i hope you will have time to update plugins specially the Extended vending system (with the battleconf issue ) ty

adding .conf should be into conf/map/battle/battle.conf

not

conf/map/battle/featured.conf

Share this post


Link to post
Share on other sites

Hello Sir,

I am having an error in console after compiling the ExtendedVending.

[Error]: sv_readdb: can't read db/item_vending.txt

 

Share this post


Link to post
Share on other sites
6 hours ago, Begin said:

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

 

Share this post


Link to post
Share on other sites

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);

 

Share this post


Link to post
Share on other sites
10 hours ago, sikiro said:

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);

 

Will fix it soon, for extendedVending, the function just need extra parameter with value 0

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Posted (edited)

Hello @Dastgir

Is the class constraint working?

I create the item, it works..
When you log out and log in, it does not work.

Edited by Thinker

Share this post


Link to post
Share on other sites
On 8/20/2018 at 0:21 AM, sikiro said:

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.

I need to rework on restock, it seems, I pushed a unfinished work before,

On 8/24/2018 at 9:19 AM, Thinker said:

Hello @Dastgir

Is the class constraint working?

I create the item, it works..
When you log out and log in, it does not work.

which plugin?

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