Darkpurple Posted September 19, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted September 19, 2014 (edited) oh yes map server can't load http://pastebin.com/kfUi05Zz In this script, if not use max_scriptarray.patch, will it got any problems or bugs? Edited September 19, 2014 by Darkpurple Quote Link to comment Share on other sites More sharing options...
Napster Posted September 19, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 196 Reputation: 72 Joined: 12/12/11 Last Seen: November 6, 2016 Author Share Posted September 19, 2014 if mod max_scriptarray over to 128 no problem $@onlineaid use SCRIPT_MAX_ARRAYSIZE SCRIPT_MAX_ARRAYSIZE 128 = 128 player online Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted September 19, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted September 19, 2014 (edited) if mod max_scriptarray over to 128 no problem $@onlineaid use SCRIPT_MAX_ARRAYSIZE SCRIPT_MAX_ARRAYSIZE 128 = 128 player online But if my running server is 3xx online people now, does it mean it can only detect 128 people in this script? Edited September 19, 2014 by Darkpurple Quote Link to comment Share on other sites More sharing options...
Napster Posted September 19, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 196 Reputation: 72 Joined: 12/12/11 Last Seen: November 6, 2016 Author Share Posted September 19, 2014 yes sir 128 people$@onlineaid -> accout id player onlineand $@onlinecount for loop check event script again Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted September 20, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted September 20, 2014 (edited) yes sir 128 people $@onlineaid -> accout id player online and $@onlinecount for loop check event script again Okay, it will ignore half of part (around 150up) people, right ? It will lead unfair situation.... [sRC] Cell PvP 1.7 Last update : 18/07/2014 Support : rAthena SVN revision 12425 Feature : Create cell for player vs player with out mapflag pvp How to use this ? You can enable or disable this feature conf/battle/misc.conf // Addon Cell PVP [Napster] // Enable Deathmatch for cell pvp // Default: 0 // 0 = No // 1 = Yes cellpvp_deathmatch: 1 // Delay player alive deathmatch for cell pvp // Default: 1000 (1 secand) cellpvp_deathmatch_delay: 1000 // When player is dead recovery HP/SP Rate for cell pvp // Default: 100 (recovery 100%) deathmatch_hp_rate: 100 deathmatch_sp_rate: 100 // Enable buff when player is dead for cell pvp // Default: 1 // 0 = No // 1 = Yes // Request core npc files use name "deathmatch_core" cellpvp_autobuff: yes // Can atk player in party // Default: 1 // 0 = No // 1 = Yes cellpvp_party_enable: no // Can atk player in guild // Default: 1 // 0 = No // 1 = Yes cellpvp_guild_enable: no // When player move to cell pvp is delay walk out cooldown // Default: 5000 (5 secand) cellpvp_walkout_delay: 5000 how to create cell pvp - script test_cellpvp -1,{ end; OnInit: setcell "new_1-1",45,109,53,102,cell_pvp, 1; end; } How to use auto buff script Add npc script don't edit npc name "deathmatch_core" function script F_Autobuff { sc_start SC_BLESSING, 60000, 10; sc_start SC_INCREASEAGI, 60000, 10; return; } - script deathmatch_core -1,{ callfunc("F_Autobuff"); end; } Change log Cell PvP 1.7 1. Fix & Cleanup some code 2. Fix timer info when walkout cell pvp 3. support rAthena SVN revision 12425+ enjoy! I found a situation, when I warp into the normal PVP map (not cell pvp map), the right under corner it always flash "1/1" .....is it bug for this patch? Edited September 20, 2014 by Darkpurple Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted September 21, 2014 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted September 21, 2014 (edited) After compiling i found this... atcommand.c: In function ‘atcommand_mapmove’: atcommand.c:495: warning: suggest parentheses around ‘&&’ within ‘||’ pc.c: In function ‘pc_isUseitem’: pc.c:4559: warning: suggest parentheses around ‘&&’ within ‘||’ pc.c: In function ‘pc_memo’: pc.c:5368: warning: suggest parentheses around ‘&&’ within ‘||’ pc.c: In function ‘pc_dead’: pc.c:7397: warning: suggest parentheses around ‘&&’ within ‘||’ skill.c: In function ‘skill_castend_nodamage_id’: skill.c:6420: warning: suggest parentheses around ‘&&’ within ‘||’ Edited September 21, 2014 by Lelouch vi Britannia Quote Link to comment Share on other sites More sharing options...
Napster Posted September 21, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 196 Reputation: 72 Joined: 12/12/11 Last Seen: November 6, 2016 Author Share Posted September 21, 2014 I will try fixed later next versionif found bug please report thank you Quote Link to comment Share on other sites More sharing options...
Lordok Posted November 19, 2014 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 1 Joined: 07/15/12 Last Seen: July 18, 2017 Share Posted November 19, 2014 (edited) SVN Revision: '17706'Bug01If the target get a PC SC_ status (buff or deBuff) area Skills dont Affect. Example: Magnus vs Undead (evil druid card), damage but if the unDead got Agi or Assump or Kyrie, the Magnus dont deal Damage. Bug02Status Alter vs Element. PC_Undead enemy got Poison, Silence and Curse status o.O Fix - My Bad >.< Edited November 20, 2014 by Lordok Quote Link to comment Share on other sites More sharing options...
ekkapap981 Posted February 5, 2015 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 08/29/12 Last Seen: February 28, 2024 Share Posted February 5, 2015 (edited) i am little speak englist. i am test compile src. bug 1.i can not use skill dispell attack player 2. in pvp map( not cell pvp ) lower right player member example 1/2 flashing alway. Napster please fix bug i cant use src cell pvp in rathena revision 12425 Edited February 5, 2015 by ekkapap981 Quote Link to comment Share on other sites More sharing options...
Darkpurple Posted February 6, 2015 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 187 Reputation: 7 Joined: 09/04/12 Last Seen: May 9, 2022 Share Posted February 6, 2015 i am little speak englist. i am test compile src. bug 1.i can not use skill dispell attack player 2. in pvp map( not cell pvp ) lower right player member example 1/2 flashing alway. Napster please fix bug i cant use src cell pvp in rathena revision 12425 Same bug 2 problem. Quote Link to comment Share on other sites More sharing options...
anacondaq Posted April 12, 2015 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 1096 Reputation: 348 Joined: 02/26/12 Last Seen: May 30, 2023 Share Posted April 12, 2015 Bumb for that. Can confirm last two bugs in this topic. Quote Link to comment Share on other sites More sharing options...
4n0biz Posted June 7, 2015 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 41 Reputation: 1 Joined: 10/12/12 Last Seen: July 18, 2017 Share Posted June 7, 2015 (edited) i am little speak englist. i am test compile src. bug 1.i can not use skill dispell attack player 2. in pvp map( not cell pvp ) lower right player member example 1/2 flashing alway. Napster please fix bug i cant use src cell pvp in rathena revision 12425 same 2 Edited July 18, 2015 by 4n0biz Quote Link to comment Share on other sites More sharing options...
Deleted User Posted April 8, 2016 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted April 8, 2016 Any chances to UPDATE this to latest GIT Quote Link to comment Share on other sites More sharing options...
amplove Posted August 10, 2016 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 3 Reputation: 0 Joined: 08/26/12 Last Seen: May 21, 2021 Share Posted August 10, 2016 if (dstsd && dstsd->spiritball && (sd == dstsd || map_flag_vs(src->m) || (sd && sd->duel_group && sd->duel_group == dstsd->duel_group)) && - if (dstsd && dstsd->spiritball && (sd == dstsd || map_flag_vs(src->m)) && ((dstsd->class_&MAPID_BASEMASK) != MAPID_GUNSLINGER || (dstsd->class_&MAPID_UPPERMASK) != MAPID_REBELLION)) Quote Link to comment Share on other sites More sharing options...
Haikenz Posted September 14, 2017 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 309 Reputation: 82 Joined: 11/15/11 Last Seen: October 1, 2023 Share Posted September 14, 2017 could someone post a diff compatible with the current git of rAthena Quote Link to comment Share on other sites More sharing options...
solid2005 Posted September 18, 2017 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: Tuesday at 12:33 PM Share Posted September 18, 2017 i didn't test this code. i try my best to help you. WARNING Backup first and use a test server if stable, Note : Update for newer GIT NO (bug fix and add on). Extended_Cell_PvP_1.7.1.patch 1 Quote Link to comment Share on other sites More sharing options...
Haikenz Posted September 18, 2017 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 309 Reputation: 82 Joined: 11/15/11 Last Seen: October 1, 2023 Share Posted September 18, 2017 (edited) 4 hours ago, solid2005 said: i didn't test this code. i try my best to help you. WARNING Backup first and use a test server if stable, Note : Update for newer GIT NO (bug fix and add on). Extended_Cell_PvP_1.7.1.patch First of all I want to thank you for helping me. Well, compiled right, but only gave this warning, what would it be? @Edit ~Solved clif_messagecolor(sd,color_table[COLOR_YELLOW], e_msg, false, SELF); change clif_messagecolor(&sd->bl, color_table[COLOR_YELLOW], e_msg, false, SELF); @Edit 2 This appeared when running the emulator, can I change it in const.txt for this? or will it conflict? [Status]: Done reading '2291' entries in 'db/const.txt'. [Error]: script_set_constant: Attempted to overwrite existing constant 'CELL_PVP' (old value=10, new value=16). [Error]: script_set_constant: Attempted to overwrite existing constant 'CELL_CHKPVP' (old value=16, new value=22). const.txt CELL_PVP 10 CELL_CHKPVP 16 to CELL_PVP 16 CELL_CHKPVP 22 @Edit 3 even changing the error still appears in the emulator [Error]: script_set_constant: Attempted to overwrite existing constant 'CELL_PVP' (old value=16, new value=16). [Error]: script_set_constant: Attempted to overwrite existing constant 'CELL_CHKPVP' (old value=22, new value=22). Edited September 18, 2017 by Dream Catcher Quote Link to comment Share on other sites More sharing options...
solid2005 Posted September 20, 2017 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: Tuesday at 12:33 PM Share Posted September 20, 2017 try to remove CELL_PVP and CELL_CHKPVP at const.txt. i did not saw that const.txt have a cell_pvp and cell_chkpvp cause i already input at the script_constants. may that cause the problem. Quote Link to comment Share on other sites More sharing options...
Mithrandir Posted April 23, 2018 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 32 Reputation: 0 Joined: 09/19/13 Last Seen: June 2, 2023 Share Posted April 23, 2018 Hello Buenos dias, he tenido un problema con este diff He implementado todo y en el servidor corre bien, pero cuando me salgo de la celda de pvp me sale este error y se apaga el mapa server: [Error]: Server received crash signal! Attempting to save all online characters! Me podrian ayudar porfavor? ------------------------------------- Good morning, I had a problem with this diff I have implemented everything and it runs fine on the server, but when I leave the pvp cell I get this error and the server map turns off: [Error]: Server received crash signal! Attempting to save all online characters! Could you please help me? Quote Link to comment Share on other sites More sharing options...
inwnutza69 Posted May 16, 2018 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 04/19/16 Last Seen: March 30, 2023 Share Posted May 16, 2018 map.cpp: In function ‘void map_setcell(int16, int16, int16, cell_t, bool)’: map.cpp:3135:8: error: ‘CELL_PVP’ was not declared in this scope case CELL_PVP: map[m].cell[j].pvp = flag; break; // Addon ^ map.cpp: In function ‘int map_pvp_area(map_session_data*, bool)’: map.cpp:4072:13: warning: switch condition has type bool [-Wswitch-bool] switch(flag) Quote Link to comment Share on other sites More sharing options...
Blackrockxii Posted July 31, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 10/03/16 Last Seen: December 6, 2019 Share Posted July 31, 2018 hlep 9>e:\server apple-ro 2018 new\src\map\unit.cpp(703): error C2664: 'void clif_messagecolor_target(block_list *,unsigned long,const char *,bool,send_target,map_session_data *)': cannot convert argument 1 from 'map_session_data *' to 'block_list *' 9>e:\server apple-ro 2018 new\src\map\unit.cpp(703): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 9>Generating Code... Quote // Addon Cell PVP [Napster] if (bl->type == BL_PC) { struct map_session_data* sd = (TBL_PC*)bl; unsigned int tick = gettick(); if (sd && sd->pvpcan_walkout_tick && !map_getcell( sd->bl.m, x, y, CELL_CHKPVP ) ) { if ( DIFF_TICK(tick, sd->pvpcan_walkout_tick) < battle_config.cellpvp_walkout_delay ) { int e_tick = (battle_config.cellpvp_walkout_delay - DIFF_TICK( tick, sd->pvpcan_walkout_tick))/1000; char e_msg[150]; if( e_tick > 99 ) sprintf(e_msg, msg_txt(sd, 1599), sd->status.name, (double)e_tick / 60); else sprintf(e_msg, msg_txt(sd, 1600), sd->status.name, e_tick+1); clif_messagecolor(sd,color_table[COLOR_YELLOW], e_msg, false, SELF); return 0; } } } Quote Link to comment Share on other sites More sharing options...
myserver Posted August 28, 2018 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 45 Reputation: 0 Joined: 08/27/18 Last Seen: October 23, 2018 Share Posted August 28, 2018 whats wrong ??? some script are not there. Quote Link to comment Share on other sites More sharing options...
myserver Posted October 2, 2018 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 45 Reputation: 0 Joined: 08/27/18 Last Seen: October 23, 2018 Share Posted October 2, 2018 I used latest I cant find the others script to svn Quote Link to comment Share on other sites More sharing options...
noobzter003 Posted July 4, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 109 Reputation: 5 Joined: 03/17/16 Last Seen: March 17 Share Posted July 4, 2020 (edited) I was able to make this source work in latest git of rathena, but i have one problem, how to make this PVP with user counting instead of PK. i want something like this, tq Edited July 4, 2020 by noobzter003 Quote Link to comment Share on other sites More sharing options...
ScarrFace Posted May 26, 2021 Group: Members Topic Count: 17 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 10/23/19 Last Seen: August 28, 2024 Share Posted May 26, 2021 On 7/4/2020 at 11:45 AM, noobzter003 said: I was able to make this source work in latest git of rathena, but i have one problem, how to make this PVP with user counting instead of PK. i want something like this, tq do you mind to share your diff? Quote Link to comment Share on other sites More sharing options...
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.