Napster Posted September 23, 2014 Posted September 23, 2014 (edited) [sRC] Market Clone 1.2ref topic : http://hercules.ws/board/topic/7242-market-clone/credits : [AnnieRuru/Dastgir] Hercules Last update : 28/10/2014 Support : rAthena SVN revision 12540 Feature : Create clone player with chat room How to use this ?You can enable or disable this feature // Market Clone [AnnieRuru/Dastgir] // Can use @market all map // Default use for town flag map (Set : no) market_can_anywhere: no // Delay for use command market clone // Default = 10 Second market_clone_delay: 10 // Pay zeny when use command @market // Default = no (Disable) market_clone_pay_zeny: no How to create clone @market "room title" "msg" How to kill clone @marketkill Change log market clone 1.21. fix map server crash when @killmonster / killmonster22. add battle conf feature3. fix market clone not show hpmeter when use mob show infomarket clone 1.3.11. cleanup support rAthena revision 12540 enjoy! Market_clone_1.2_rA_r12425.patch Market_clone_1.3.1_rA_r12540.patch Edited October 28, 2014 by Napster 1 Quote
Darkpurple Posted September 23, 2014 Posted September 23, 2014 [sRC] Market Clone 1.2 ref topic : http://hercules.ws/board/topic/7242-market-clone/ credits : [AnnieRuru/Dastgir] Hercules Last update : 23/09/2014 Support : rAthena SVN revision 12425 Feature : Create clone player with chat room How to use this ? You can enable or disable this feature // Market Clone [AnnieRuru/Dastgir] // Can use @market all map // Default use for town flag map (Set : no) market_can_anywhere: no // Delay for use command market clone // Default = 10 Second market_clone_delay: 10 // Pay zeny when use command @market // Default = no (Disable) market_clone_pay_zeny: no How to create clone @market "room title" "msg" How to kill clone @marketkill Change log market clone 1.21. fix map server crash when @killmonster / killmonster2 2. add battle conf feature 3. fix market clone not show hpmeter when use mob show info enjoy! Bug: showed the hp 100% with the clone... Quote
Napster Posted September 23, 2014 Author Posted September 23, 2014 @Darkpurpleyou use config battle/monster.conf or not ? // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 2 Quote
Darkpurple Posted September 23, 2014 Posted September 23, 2014 @Darkpurple you use config battle/monster.conf or not ? // Display some mob info next to their name? (add as needed) // (does not works on guardian or Emperium) // 1: Display mob HP (Hp/MaxHp format) // 2: Display mob HP (Percent of full life format) // 4: Display mob's level show_mob_info: 2 Yes, my setting is same as you show_mob_info: 2. But it showed HP: 100% Near my clone name.... Quote
Napster Posted September 23, 2014 Author Posted September 23, 2014 no problem for mehttps://www.dropbox.com/s/tbi2ux3jpaoocf4/screenrAthena001.jpg?dl=0https://www.dropbox.com/s/wn7bc8kj58zfh4w/screenrAthena002.jpg?dl=0 Quote
Darkpurple Posted September 23, 2014 Posted September 23, 2014 (edited) no problem for me https://www.dropbox.com/s/tbi2ux3jpaoocf4/screenrAthena001.jpg?dl=0 https://www.dropbox.com/s/wn7bc8kj58zfh4w/screenrAthena002.jpg?dl=0 I really add your patch in this part, but I don't know if the bug exist in Last Git... case BL_MOB: { struct mob_data *md = (struct mob_data *)bl; nullpo_retv(md); memcpy(WBUFP(buf,6), md->name, NAME_LENGTH); if( md->guardian_data && md->guardian_data->guild_id ) { WBUFW(buf, 0) = cmd = 0x195; WBUFB(buf,30) = 0; memcpy(WBUFP(buf,54), md->guardian_data->guild_name, NAME_LENGTH); memcpy(WBUFP(buf,78), md->guardian_data->castle->castle_name, NAME_LENGTH); } else if( battle_config.show_mob_info && !md->market_chat_id ) // Market Clone [AnnieRuru/Dastgir] { char mobhp[50], *str_p = mobhp; WBUFW(buf, 0) = cmd = 0x195; if( battle_config.show_mob_info&4 ) str_p += sprintf(str_p, "Lv. %d | ", md->level); if( battle_config.show_mob_info&1 ) str_p += sprintf(str_p, "HP: %u/%u | ", md->status.hp, md->status.max_hp); if( battle_config.show_mob_info&2 ) str_p += sprintf(str_p, "HP: %u%% | ", get_percentage(md->status.hp, md->status.max_hp)); //Even thought mobhp ain't a name, we send it as one so the client //can parse it. [Skotlex] if( str_p != mobhp ) { *(str_p-3) = '\0'; //Remove trailing space + pipe. memcpy(WBUFP(buf,30), mobhp, NAME_LENGTH); WBUFB(buf,54) = 0; WBUFB(buf,78) = 0; } } } break; Edit : Okay now. I updated to the Last updated GIt to fixed it. Edited September 23, 2014 by Darkpurple Quote
Darkpurple Posted September 23, 2014 Posted September 23, 2014 ok sir Do you have free time to transfer this: (or do you think this is useful or not ?..) http://hercules.ws/board/topic/7127-maintenance-mode/ Quote
AnnieRuru Posted September 23, 2014 Posted September 23, 2014 (edited) when free time i check itwait until I make version 1.3 then only start convert currently the patch is quite a mess (it was made just to debug for the plugin file) since you are interested to convert to rathena, I should at least make the code more understandable EDIT: btw I noticed your way in deleting a zeny doesn't sound right it should only deleted the zeny when the clone has successfully spawn, but your patch will removed the zeny regardless its success or failed Edited September 23, 2014 by AnnieRuru Quote
Pillows Posted September 23, 2014 Posted September 23, 2014 So this creates a clone, of any job, to vend? Quote
darking123 Posted September 24, 2014 Posted September 24, 2014 [sRC] Market Clone 1.2 ref topic : http://hercules.ws/board/topic/7242-market-clone/ credits : [AnnieRuru/Dastgir] Hercules Last update : 23/09/2014 Support : rAthena SVN revision 12425 Feature : Create clone player with chat room How to use this ? You can enable or disable this feature // Market Clone [AnnieRuru/Dastgir] // Can use @market all map // Default use for town flag map (Set : no) market_can_anywhere: no // Delay for use command market clone // Default = 10 Second market_clone_delay: 10 // Pay zeny when use command @market // Default = no (Disable) market_clone_pay_zeny: no How to create clone @market "room title" "msg" How to kill clone @marketkill Change log market clone 1.21. fix map server crash when @killmonster / killmonster2 2. add battle conf feature 3. fix market clone not show hpmeter when use mob show info enjoy! how about credits to the person who shared his idea? haha kidding. annieRuru released a 1.3 update. could you update the .diff patch also? thank you sir Napster. how about when the player logout, does the clone disappear also? Quote
Fluffle Puff Posted October 9, 2014 Posted October 9, 2014 mob.c: In function ‘mob_clone_spawn_market’:mob.c:3999: error: too few arguments to function ‘clif_sitting’ in this line: clif_sitting( &md->bl ); Quote
darking123 Posted November 3, 2014 Posted November 3, 2014 Market_clone_1.3.1_rA_r12540.patch under script.c in // Market Clone [AnnieRuru/Dastgir] if ( md->market_chat_id ) return 0 change it to // Market Clone [AnnieRuru/Dastgir] if ( md->market_chat_id ) return 0; Quote
darking123 Posted November 4, 2014 Posted November 4, 2014 Market_clone_1.3.1_rA_r12540.patch = if your out of sight of your clone pub. the pub disappears but the clone is still there Quote
Dev Denz Posted April 27, 2015 Posted April 27, 2015 (edited) Good Day Sir Napster im having a problem with this scirpt when i compile the mob.c get error Error 1 error C2198: 'clif_sitting' : too few arguments for call d:\pro\trunk\src\map\mob.c 3967 1 map-server_sql how can i fixed that!? I can Fixed that by commenting this line LINE: clif_sitting( &md->bl ); //at mob.c but my problem when i reconnect server map is getting down Anyone can Help me to this topic? i already Fixed my BUG ahaha im using latest RaMOD Edited April 26, 2015 by Turkumturk Quote
Ammyd Posted June 5, 2017 Posted June 5, 2017 On 11/5/2014 at 12:06 AM, glemor123 said: Market_clone_1.3.1_rA_r12540.patch = if your out of sight of your clone pub. the pub disappears but the clone is still there Hello ! i'm having this kind of error , had you already fix this issue when warping or out of sight the pub ? please help me BUMP can anyone fix this please Quote
idLaZ Posted March 22, 2019 Posted March 22, 2019 Can anyone update this to the latest rev? Thank you. Bump! Anyone can update it to latest rev? Thanks! Quote
Takuyakii Posted September 24, 2019 Posted September 24, 2019 Any update regarding this file ? im using the latest svn. but im having an error CXX atcommand.cpp atcommand.cpp: In function \u2018int atcommand_market(int, map_session_data*, const char*, const char*)\u2019: atcommand.cpp:10088:28: error: \u2018class std::unordered_map<short int, int>\u2019 has no member named \u2018town\u2019 if ( !map[sd->bl.m].flag.town ) { ^~~~ make[1]: *** [Makefile:84: obj/atcommand.o] Error 1 make[1]: Leaving directory '/root/trunk/src/map' make: *** [Makefile:50: map] Error 2 can someone update this to latest ? Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.