@market clone

Hmm.. i patch without error. I can create a clone but I can't kill it. 

@marketkill nothing happens (Only message that my clone was killed, but its not)

I logged out my clone still alive.

I can create multiple clone.
Cant reproduce, i really suggest you guys use plugins >.> less stress.
I'll try to repatch later.
default_sad.png


 
Im having errors with the plugin when compiling, can someone help me out with this

thanks in advance

Code:
Warning	1	warning C4013: 'getFromMOBDATA' undefined; assuming extern returning int	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	107	1	market_cloneWarning	2	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	107	1	market_cloneWarning	3	warning C4013: 'addToMOBDATA' undefined; assuming extern returning int	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	111	1	market_cloneWarning	4	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	319	1	market_cloneWarning	5	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	335	1	market_cloneWarning	6	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	357	1	market_cloneWarning	7	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	370	1	market_cloneWarning	8	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	403	1	market_cloneWarning	9	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	414	1	market_cloneWarning	10	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	425	1	market_cloneWarning	11	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	436	1	market_cloneWarning	12	warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int'	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	447	1	market_cloneError	13	error LNK2019: unresolved external symbol _addToMOBDATA referenced in function _mob_clone_spawn_market	C:UsersJajaDesktopNEW SERVERHerculesmarket_clonemarket_clone.obj	market_cloneError	14	error LNK2019: unresolved external symbol _getFromMOBDATA referenced in function _mob_clone_spawn_market	C:UsersJajaDesktopNEW SERVERHerculesmarket_clonemarket_clone.obj	market_cloneError	15	error LNK1120: 2 unresolved externals	C:UsersJajaDesktopNEW SERVERHerculespluginsmarket_clone.dll	1	1	market_clone	16	IntelliSense: invalid combination of type specifiers	c:usersjajadesktopnew serverherculessrccommoncbasetypes.h	288	14	char-server	17	IntelliSense: expected an identifier	c:usersjajadesktopnew serverherculessrcmapitemdb.h	576	16	map-server	18	IntelliSense: dllexport/dllimport requires external linkage	c:usersjajadesktopnew serverherculessrccommonhpmdatacheck.h	10	38		19	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	357	15	market_clone	20	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	370	18	market_clone	21	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "player_data *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	393	12	market_clone	22	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	403	15	market_clone	23	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	414	15	market_clone	24	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	436	15	market_clone	25	IntelliSense: identifier "getFromMOBDATA" is undefined	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	447	15	market_clone	26	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "player_data *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	456	12	market_clone	27	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "pc_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	467	5	market_clone	28	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "map_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	468	6	market_clone	29	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "mob_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	469	6	market_clone	30	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "npc_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	470	6	market_clone	31	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "chat_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	471	7	market_clone	32	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "clif_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	472	7	market_clone	33	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "unit_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	473	7	market_clone	34	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "mapit_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	474	8	market_clone	35	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "socket_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	475	8	market_clone	36	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "battle_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	476	9	market_clone	37	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "script_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	477	9	market_clone	38	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "status_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	478	9	market_clone	39	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "strlib_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	479	9	market_clone	40	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "socket_data **"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	480	10	market_clone	41	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "malloc_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	481	10	market_clone	42	IntelliSense: a value of type "void *" cannot be assigned to an entity of type "atcommand_interface *"	c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c	482	12	market_clone
 
Im having errors with the plugin when compiling, can someone help me out with this

thanks in advance

Warning 1 warning C4013: 'getFromMOBDATA' undefined; assuming extern returning int c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 107 1 market_cloneWarning 2 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 107 1 market_cloneWarning 3 warning C4013: 'addToMOBDATA' undefined; assuming extern returning int c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 111 1 market_cloneWarning 4 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 319 1 market_cloneWarning 5 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 335 1 market_cloneWarning 6 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 357 1 market_cloneWarning 7 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 370 1 market_cloneWarning 8 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 403 1 market_cloneWarning 9 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 414 1 market_cloneWarning 10 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 425 1 market_cloneWarning 11 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 436 1 market_cloneWarning 12 warning C4047: '=' : 'monster_data *' differs in levels of indirection from 'int' c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 447 1 market_cloneError 13 error LNK2019: unresolved external symbol _addToMOBDATA referenced in function _mob_clone_spawn_market C:UsersJajaDesktopNEW SERVERHerculesmarket_clonemarket_clone.obj market_cloneError 14 error LNK2019: unresolved external symbol _getFromMOBDATA referenced in function _mob_clone_spawn_market C:UsersJajaDesktopNEW SERVERHerculesmarket_clonemarket_clone.obj market_cloneError 15 error LNK1120: 2 unresolved externals C:UsersJajaDesktopNEW SERVERHerculespluginsmarket_clone.dll 1 1 market_clone 16 IntelliSense: invalid combination of type specifiers c:usersjajadesktopnew serverherculessrccommoncbasetypes.h 288 14 char-server 17 IntelliSense: expected an identifier c:usersjajadesktopnew serverherculessrcmapitemdb.h 576 16 map-server 18 IntelliSense: dllexport/dllimport requires external linkage c:usersjajadesktopnew serverherculessrccommonhpmdatacheck.h 10 38 19 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 357 15 market_clone 20 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 370 18 market_clone 21 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "player_data *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 393 12 market_clone 22 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 403 15 market_clone 23 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 414 15 market_clone 24 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 436 15 market_clone 25 IntelliSense: identifier "getFromMOBDATA" is undefined c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 447 15 market_clone 26 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "player_data *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 456 12 market_clone 27 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "pc_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 467 5 market_clone 28 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "map_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 468 6 market_clone 29 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "mob_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 469 6 market_clone 30 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "npc_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 470 6 market_clone 31 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "chat_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 471 7 market_clone 32 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "clif_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 472 7 market_clone 33 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "unit_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 473 7 market_clone 34 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "mapit_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 474 8 market_clone 35 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "socket_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 475 8 market_clone 36 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "battle_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 476 9 market_clone 37 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "script_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 477 9 market_clone 38 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "status_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 478 9 market_clone 39 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "strlib_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 479 9 market_clone 40 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "socket_data **" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 480 10 market_clone 41 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "malloc_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 481 10 market_clone 42 IntelliSense: a value of type "void *" cannot be assigned to an entity of type "atcommand_interface *" c:usersjajadesktopnew serverherculessrcpluginsmarket_clone.c 482 12 market_clone
see first post please

Code:
plugin <-- currently have to patch([URL="http://upaste.me/4a7bb2"]http://upaste.me/4a7bb2[/URL]) this until Ind merge my suggestion 
 
Hi Annie,

Thanks for this. I just have a few question about it.

(1) What mapflags do I need to have to be able to use the @market command? It always says (You can only use @market in a town.)

Planning to have a town inn where players can only use @market on a specific cell

(2) Is it also possible to make this work on a classic chat room?

ex.

- player clicks on the chatroom but instead of refusing the join, it allows entering the chat room. (the "message" will still be sent but inside the chat room too)

- then everytime the player writes a message in the chat room it will be sent as a PM to the clone owner

- and the clone owner can reply using @marketreply if he choose to send it to the chatroom

Thanks!

 
1.4

plugin

- update to new plugin format

- fix possible memory leak when a player input a fail message

- change all i++ into ++i

- no longer overwrite @reloadscript, hook to npc_reload function instead

- since clif->messagecolor_self has been fixed, use that command in chat_joinchat_pre function

- add configuration for player has a cart/mount/mado, the clone can display these items as well

--- for me, it feels weird ... peco and cart is 1 thing, but warg and falcon ... ?

- now player can choose to use their favorite color in their AFK message from a list

- since all killmonster at/script functions looks the same, all of them hook to 1 same function

1.4a

just optimize the OPTION area

 
Last edited by a moderator:
1.5

plugin

- fix an issue that when using @hide, the market clone also clone as invisible

---- the real issue about this is, if that GM do @marketkill, the surrounding client will crash

 
hello, is it possible to make this market clone can only be use in a specific area? to prevent abuse using in different areas?

i know there is a town use only with this command but is it possible like you can only use @market at prontera <x>,<y> ( if area already take switch to other coordinate)

 
nope, this is just an update to compatible with latest hercules, no new feature added or anything

1.6 - plugin
- update to latest revision
- remove all TBL_ and change to struct
- add NULL checks to places where it needed
- update the clif_charnameack with struct packet_reqnameall_ack

and special thanks to dastgir helped maintaining this plugin

hello, is it possible to make this market clone can only be use in a specific area? to prevent abuse using in different areas?

i know there is a town use only with this command but is it possible like you can only use @market at prontera <x>,<y> ( if area already take switch to other coordinate)
just add the check like you did in scripting

in npc script

getmapxy .@map$, .@x, .@y, UNITTYPE_PC;
if ( .@map$ == "prontera" && .@x == 155 && .@y == 185 )
dispbottom "OK";


in source

Code:
	if ( strcmp( mapindex_id2name(sd->mapindex), "prontera" ) == 0 && sd->bl.x == 155 && sd->bl.y == 185 )
		clif->message( sd->fd, "OK" );
 
In file included from marketclone.c:55:0:
marketclone.c: In function ‘plugin_init’:
../plugins/HPMHooking.h:49:11: error: ‘HPMHOOK_pre_clif_charnameack’ undeclared (first use in this function); did you mean ‘HPMHOOK_pre_clif_charnameupdate’?
(void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
^
marketclone.c:493:2: note: in expansion of macro ‘addHookPre’
addHookPre(clif, charnameack, clif_charnameack_pre);
^~~~~~~~~~
../plugins/HPMHooking.h:49:11: note: each undeclared identifier is reported only once for each function it appears in
(void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
^
marketclone.c:493:2: note: in expansion of macro ‘addHookPre’
addHookPre(clif, charnameack, clif_charnameack_pre);
^~~~~~~~~~
../plugins/HPMHooking.h:49:51: error: expected ‘)’ before numeric constant
(void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
^
marketclone.c:493:2: note: in expansion of macro ‘addHookPre’
addHookPre(clif, charnameack, clif_charnameack_pre);
^~~~~~~~~~
../plugins/HPMHooking.h:49:63: warning: left-hand operand of comma expression ha s no effect [-Wunused-value]
(void)((HPMHOOK_pre_ ## ifname ## _ ## funcname)0 == (hook)), \
^
marketclone.c:493:2: note: in expansion of macro ‘addHookPre’
addHookPre(clif, charnameack, clif_charnameack_pre);
^~~~~~~~~~


I think the plugin isn't compatible with the latest herc?

 
Replace charnameack to blname_ack

 
First time seeing this. Thought I'd try it out. Really cool idea, surprised I'm just seeing this now.

Reports:
• If you are in a chatroom of the clone then the clone dies, the chat closes then your char is stuck.
• Something interesting, you can send friend and party requests to clone mobs, which then send to the real char.

 
Back
Top