DEsMOn Posted September 24, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Share Posted September 24, 2021 (edited) Hellow Everyone, I'm not so good in scripting just looking for help..! Can any 1 Help in this? When i use @pvp_event2 party (party name 1 & party name 2) enter players get warped in map but map server crashes..!! @Emistry - script pvp_event FAKE_NPC,{ OnInit: bindatcmd "pvp_event", strnpcinfo(0)+"::OnCommand", 10,99; hideonnpc "Barricade#B1"; hideonnpc "Barricade#B2"; hideonnpc "Barricade#B3"; hideonnpc "Barricade#B4"; hideonnpc "Barricade#B5"; hideonnpc "Barricade#B6"; hideonnpc "Barricade#B7"; hideonnpc "Barricade#B8"; hideonnpc "Barricade#B9"; hideonnpc "Barricade#B10"; hideonnpc "Barricade#B11"; hideonnpc "Barricade#B12"; hideonnpc "Barricade#B13"; hideonnpc "Barricade#B14"; hideonnpc "Barricade#B15"; hideonnpc "Barricade#B16"; OnCommand: if ( compare( .@atcmd_parameters$, "1v1" ) ) goto L_1v1; else if ( compare( .@atcmd_parameters$, "party" ) ) goto L_Party1; else if ( compare( .@atcmd_parameters$, "ready" ) ) goto L_Ready; else if ( compare( .@atcmd_parameters$, "start" ) ) goto L_Start; else if ( compare( .@atcmd_parameters$, "end" ) ) goto L_End; else { dispbottom "Types of PvP Event"; dispbottom "type - '@pvp_event 1v1' for 1v1 Showdown"; dispbottom "type - '@pvp_event party' for Party Showdown"; dispbottom " "; dispbottom "PvP Setup"; dispbottom "type - '@pvp_event ready' to setup the Barricades"; dispbottom "type - '@pvp_event start' to start the event"; dispbottom "type - '@pvp_event end' to end the event";// } end; L_Ready: hideoffnpc "Barricade#B1"; hideoffnpc "Barricade#B2"; hideoffnpc "Barricade#B3"; hideoffnpc "Barricade#B4"; hideoffnpc "Barricade#B5"; hideoffnpc "Barricade#B6"; hideoffnpc "Barricade#B7"; hideoffnpc "Barricade#B8"; //top setcell "guild_vs4",46,73,53,72,cell_walkable,false; //bottom setcell "guild_vs4",53,26,46,27,cell_walkable,false; //left setcell "guild_vs4",26,53,27,47,cell_walkable,false; //right setcell "guild_vs4",73,53,72,46,cell_walkable,false; end; L_1v1: mes "Participant 1 Left Corner"; mes ""; mes ""; mes "Please input IGN"; input .@Input$; next; mes "Participant 2 Right Corner"; mes ""; mes ""; mes "Please input IGN"; input .@Input2$; next; atcommand "#warp "+.@Input$+" guild_vs4 8 49"; atcommand "#warp "+.@Input2$+" guild_vs4 91 49"; atcommand "@warp guild_vs4 50 49"; atcommand "@doommap"; sleep 1000; atcommand "@raisemap"; atcommand "#warp "+.@Input$+" guild_vs4 8 49"; atcommand "#warp "+.@Input2$+" guild_vs4 91 49";// end; L_Party1: mes "Participant 1 Left Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input3$; next; mes "Participant 2 Right Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@qwer4$; next; atcommand "@warp guild_vs4 8 49"; atcommand "@partyrecall "+.@Input3$+""; atcommand "@warp guild_vs4 91 49"; atcommand "@partyrecall "+.@qwer4$+""; atcommand "@warp guild_vs4 50 49"; end; L_Start: announce "READY PLAYERS",0,0x00FFFF; sleep 10000; announce "Battle Begins at",0,0x00FFFF; sleep 2000; announce "5",0,0x00FFFF; sleep 1000; announce "4",0,0x00FFFF; sleep 1000; announce "3",0,0x00FFFF; sleep 1000; announce "2",0,0x00FFFF; sleep 1000; announce "1",0,0x00FFFF; sleep 1000; announce "GO!",0,0x00FFFF; setcell "guild_vs4",26,53,27,47,cell_walkable,true; setcell "guild_vs4",73,53,72,46,cell_walkable,true; hideonnpc "Barricade#B1"; hideonnpc "Barricade#B2"; hideonnpc "Barricade#B3"; hideonnpc "Barricade#B4"; hideonnpc "Barricade#B5"; hideonnpc "Barricade#B6"; hideonnpc "Barricade#B7"; hideonnpc "Barricade#B8"; atcommand "@pvpon"; atcommand "@skillon"; end; L_End: { setcell "guild_vs4",26,53,27,47,cell_walkable,true; setcell "guild_vs4",73,53,72,46,cell_walkable,true; hideonnpc "Barricade#B1"; hideonnpc "Barricade#B2"; hideonnpc "Barricade#B3"; hideonnpc "Barricade#B4"; hideonnpc "Barricade#B5"; hideonnpc "Barricade#B6"; hideonnpc "Barricade#B7"; hideonnpc "Barricade#B8"; atcommand "@pvpoff"; atcommand "@skilloff"; } end; } guild_vs4,26,51,1 script Barricade#B1 1905,{} guild_vs4,26,50,1 script Barricade#B2 1905,{} guild_vs4,26,49,1 script Barricade#B3 1905,{} guild_vs4,26,48,1 script Barricade#B4 1905,{} guild_vs4,73,51,1 script Barricade#B5 1905,{} guild_vs4,73,50,1 script Barricade#B6 1905,{} guild_vs4,73,49,1 script Barricade#B7 1905,{} guild_vs4,73,48,1 script Barricade#B8 1905,{} guild_vs4,48,73,1 script Barricade#B9 1905,{} guild_vs4,49,73,1 script Barricade#B10 1905,{} guild_vs4,50,73,1 script Barricade#B11 1905,{} guild_vs4,51,73,1 script Barricade#B12 1905,{} guild_vs4,51,26,1 script Barricade#B13 1905,{} guild_vs4,50,26,1 script Barricade#B14 1905,{} guild_vs4,49,26,1 script Barricade#B15 1905,{} guild_vs4,48,26,1 script Barricade#B16 1905,{} //========================================06guild_04 MAP===================================================// - script pvp_event2 FAKE_NPC,{ OnInit: bindatcmd "pvp_event2", strnpcinfo(0)+"::OnCommand", 10,99; //bottom hideonnpc "Barricade#B17"; hideonnpc "Barricade#B18"; hideonnpc "Barricade#B19"; hideonnpc "Barricade#B20"; hideonnpc "Barricade#B21"; hideonnpc "Barricade#B22"; hideonnpc "Barricade#B23"; hideonnpc "Barricade#B24"; //left hideonnpc "Barricade#B25"; hideonnpc "Barricade#B26"; hideonnpc "Barricade#B27"; hideonnpc "Barricade#B28"; hideonnpc "Barricade#B29"; hideonnpc "Barricade#B30"; hideonnpc "Barricade#B31"; hideonnpc "Barricade#B32"; //right hideonnpc "Barricade#B33"; hideonnpc "Barricade#B34"; hideonnpc "Barricade#B35"; hideonnpc "Barricade#B36"; hideonnpc "Barricade#B37"; hideonnpc "Barricade#B38"; hideonnpc "Barricade#B39"; hideonnpc "Barricade#B40"; //top hideonnpc "Barricade#B41"; hideonnpc "Barricade#B42"; hideonnpc "Barricade#B43"; hideonnpc "Barricade#B44"; hideonnpc "Barricade#B45"; hideonnpc "Barricade#B46"; hideonnpc "Barricade#B47"; hideonnpc "Barricade#B48"; hideonnpc "AB Buffs#AB1"; hideonnpc "AB Buffs#AB2"; hideonnpc "AB Buffs#AB3"; hideonnpc "AB Buffs#AB4"; OnCommand: if ( compare( .@atcmd_parameters$, "1v1" ) ) goto L_1v1; else if ( compare( .@atcmd_parameters$, "party" ) ) goto L_Party; else if ( compare( .@atcmd_parameters$, "FFA" ) ) goto L_FFA; else if ( compare( .@atcmd_parameters$, "ready" ) ) goto L_Ready; else if ( compare( .@atcmd_parameters$, "start" ) ) goto L_Start; else if ( compare( .@atcmd_parameters$, "end" ) ) goto L_End; else { dispbottom "06guild_04 MAP"; dispbottom "Types of PvP Event"; dispbottom "type - '@pvp_event2 1v1' for 1v1 Showdown"; dispbottom "type - '@pvp_event2 party' for Party Showdown"; dispbottom "type - '@pvp_event2 FFA' for Free For All Showdown"; dispbottom " "; dispbottom "PvP Setup"; dispbottom "type - '@pvp_event2 ready' to setup the Barricades"; dispbottom "type - '@pvp_event2 start' to start the event"; dispbottom "type - '@pvp_event2 end' to end the event";// } end; L_Ready: //bottom hideoffnpc "Barricade#B17"; hideoffnpc "Barricade#B18"; hideoffnpc "Barricade#B19"; hideoffnpc "Barricade#B20"; hideoffnpc "Barricade#B21"; hideoffnpc "Barricade#B22"; hideoffnpc "Barricade#B23"; hideoffnpc "Barricade#B24"; //left //right hideoffnpc "Barricade#B25"; hideoffnpc "Barricade#B26"; hideoffnpc "Barricade#B27"; hideoffnpc "Barricade#B28"; hideoffnpc "Barricade#B29"; hideoffnpc "Barricade#B30"; hideoffnpc "Barricade#B31"; hideoffnpc "Barricade#B32"; //top hideoffnpc "Barricade#B33"; hideoffnpc "Barricade#B34"; hideoffnpc "Barricade#B35"; hideoffnpc "Barricade#B36"; hideoffnpc "Barricade#B37"; hideoffnpc "Barricade#B38"; hideoffnpc "Barricade#B39"; hideoffnpc "Barricade#B40"; hideoffnpc "Barricade#B41"; hideoffnpc "Barricade#B42"; hideoffnpc "Barricade#B43"; hideoffnpc "Barricade#B44"; hideoffnpc "Barricade#B45"; hideoffnpc "Barricade#B46"; hideoffnpc "Barricade#B47"; hideoffnpc "Barricade#B48"; hideoffnpc "AB Buffs#AB1"; hideoffnpc "AB Buffs#AB2"; hideoffnpc "AB Buffs#AB3"; hideoffnpc "AB Buffs#AB4"; //top setcell "06guild_04",42,73,57,72,cell_walkable,false; //bottom setcell "06guild_04",57,26,42,27,cell_walkable,false; //left setcell "06guild_04",27,59,26,40,cell_walkable,false; //right setcell "06guild_04",72,40,73,59,cell_walkable,false; end; L_1v1: mes "Participant #1 Left Corner"; mes ""; mes ""; mes "Please input IGN"; input .@Input$; next; mes "Participant #2 Right Corner"; mes ""; mes ""; mes "Please input IGN"; input .@Input2$; next; atcommand "#warp "+.@Input$+" 06guild_04 8 49"; atcommand "#warp "+.@Input2$+" 06guild_04 91 49"; atcommand "@warp 06guild_04 50 50"; atcommand "@doommap"; sleep 1000; atcommand "@raisemap"; atcommand "#warp "+.@Input$+" 06guild_04 8 49"; atcommand "#warp "+.@Input2$+" 06guild_04 91 49";// end; L_Party: mes "Participant #1 Left Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input3$; next; mes "Participant #2 Right Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@zxc4$; next; atcommand "@warp 06guild_04 8 49"; atcommand "@partyrecall "+.@Input3$+""; atcommand "@warp 06guild_04 91 49"; atcommand "@partyrecall "+.@zxc4$+""; atcommand "@warp 06guild_04 50 50"; atcommand "@doommap"; sleep 1000; atcommand "@raisemap"; atcommand "@warp 06guild_04 8 49"; atcommand "@partyrecall "+.@Input3$+""; atcommand "@warp 06guild_04 91 49"; atcommand "@partyrecall "+.@Input4$+""; atcommand "@warp 06guild_04 50 50";// end; L_FFA: mes "Participant #1 Left Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input5$; next; mes "Participant #2 Right Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input6$; next; mes "Participant #3 Top Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input7$; next; mes "Participant #4 Bottom Corner"; mes ""; mes ""; mes "Please input Party Name"; input .@Input8$; next; atcommand "@warp 06guild_04 8 49"; atcommand "@partyrecall "+.@Input5$+""; atcommand "@warp 06guild_04 91 49"; atcommand "@partyrecall "+.@Input6$+""; atcommand "@warp 06guild_04 50 91"; atcommand "@partyrecall "+.@Input7$+""; atcommand "@warp 06guild_04 50 9"; atcommand "@partyrecall "+.@Input8$+""; atcommand "@warp 06guild_04 50 50"; atcommand "@doommap"; sleep 1000; atcommand "@raisemap"; atcommand "@warp 06guild_04 8 49"; atcommand "@partyrecall "+.@Input5$+""; atcommand "@warp 06guild_04 91 49"; atcommand "@partyrecall "+.@Input6$+""; atcommand "@warp 06guild_04 50 91"; atcommand "@partyrecall "+.@Input7$+""; atcommand "@warp 06guild_04 50 9"; atcommand "@partyrecall "+.@Input8$+""; atcommand "@warp 06guild_04 50 50"; end; L_Start: announce "READY PLAYERS",0,0x00FFFF; sleep 10000; announce "Battle Begins at",0,0x00FFFF; sleep 2000; announce "5",0,0x00FFFF; sleep 1000; announce "4",0,0x00FFFF; sleep 1000; announce "3",0,0x00FFFF; sleep 1000; announce "2",0,0x00FFFF; sleep 1000; announce "1",0,0x00FFFF; sleep 1000; announce "GO!",0,0x00FFFF; setcell "06guild_04",42,73,57,72,cell_walkable,true; setcell "06guild_04",57,26,42,27,cell_walkable,true; setcell "06guild_04",27,59,26,40,cell_walkable,true; setcell "06guild_04",72,40,73,59,cell_walkable,true; hideonnpc "Barricade#B17"; hideonnpc "Barricade#B18"; hideonnpc "Barricade#B19"; hideonnpc "Barricade#B20"; hideonnpc "Barricade#B21"; hideonnpc "Barricade#B22"; hideonnpc "Barricade#B23"; hideonnpc "Barricade#B24"; hideonnpc "Barricade#B25"; hideonnpc "Barricade#B26"; hideonnpc "Barricade#B27"; hideonnpc "Barricade#B28"; hideonnpc "Barricade#B29"; hideonnpc "Barricade#B30"; hideonnpc "Barricade#B31"; hideonnpc "Barricade#B32"; hideonnpc "Barricade#B33"; hideonnpc "Barricade#B34"; hideonnpc "Barricade#B35"; hideonnpc "Barricade#B36"; hideonnpc "Barricade#B37"; hideonnpc "Barricade#B38"; hideonnpc "Barricade#B39"; hideonnpc "Barricade#B40"; hideonnpc "Barricade#B41"; hideonnpc "Barricade#B42"; hideonnpc "Barricade#B43"; hideonnpc "Barricade#B44"; hideonnpc "Barricade#B45"; hideonnpc "Barricade#B46"; hideonnpc "Barricade#B47"; hideonnpc "Barricade#B48"; hideonnpc "AB Buffs#AB1"; hideonnpc "AB Buffs#AB2"; hideonnpc "AB Buffs#AB3"; hideonnpc "AB Buffs#AB4"; atcommand "@pvpon"; atcommand "@skillon"; end; L_End: { setcell "06guild_04",42,73,57,72,cell_walkable,true; setcell "06guild_04",57,26,42,27,cell_walkable,true; setcell "06guild_04",27,59,26,40,cell_walkable,true; setcell "06guild_04",72,40,73,59,cell_walkable,true; //bottom hideonnpc "Barricade#B17"; hideonnpc "Barricade#B18"; hideonnpc "Barricade#B19"; hideonnpc "Barricade#B20"; hideonnpc "Barricade#B21"; hideonnpc "Barricade#B22"; hideonnpc "Barricade#B23"; hideonnpc "Barricade#B24"; //left hideonnpc "Barricade#B25"; hideonnpc "Barricade#B26"; hideonnpc "Barricade#B27"; hideonnpc "Barricade#B28"; hideonnpc "Barricade#B29"; hideonnpc "Barricade#B30"; hideonnpc "Barricade#B31"; hideonnpc "Barricade#B32"; //right hideonnpc "Barricade#B33"; hideonnpc "Barricade#B34"; hideonnpc "Barricade#B35"; hideonnpc "Barricade#B36"; hideonnpc "Barricade#B37"; hideonnpc "Barricade#B38"; hideonnpc "Barricade#B39"; hideonnpc "Barricade#B40"; //top hideonnpc "Barricade#B41"; hideonnpc "Barricade#B42"; hideonnpc "Barricade#B43"; hideonnpc "Barricade#B44"; hideonnpc "Barricade#B45"; hideonnpc "Barricade#B46"; hideonnpc "Barricade#B47"; hideonnpc "Barricade#B48"; hideonnpc "AB Buffs#AB1"; hideonnpc "AB Buffs#AB2"; hideonnpc "AB Buffs#AB3"; hideonnpc "AB Buffs#AB4"; atcommand "@pvpoff"; atcommand "@skilloff"; } end; } //bottom 06guild_04,53,26,1 script Barricade#B17 1905,{} 06guild_04,52,26,1 script Barricade#B18 1905,{} 06guild_04,51,26,1 script Barricade#B19 1905,{} 06guild_04,50,26,1 script Barricade#B20 1905,{} 06guild_04,49,26,1 script Barricade#B21 1905,{} 06guild_04,48,26,1 script Barricade#B22 1905,{} 06guild_04,47,26,1 script Barricade#B23 1905,{} 06guild_04,46,26,1 script Barricade#B24 1905,{} //left 06guild_04,26,46,1 script Barricade#B25 1905,{} 06guild_04,26,47,1 script Barricade#B26 1905,{} 06guild_04,26,48,1 script Barricade#B27 1905,{} 06guild_04,26,49,1 script Barricade#B28 1905,{} 06guild_04,26,50,1 script Barricade#B29 1905,{} 06guild_04,26,51,1 script Barricade#B30 1905,{} 06guild_04,26,52,1 script Barricade#B31 1905,{} 06guild_04,26,53,1 script Barricade#B32 1905,{} //right 06guild_04,73,53,1 script Barricade#B33 1905,{} 06guild_04,73,52,1 script Barricade#B34 1905,{} 06guild_04,73,51,1 script Barricade#B35 1905,{} 06guild_04,73,50,1 script Barricade#B36 1905,{} 06guild_04,73,49,1 script Barricade#B37 1905,{} 06guild_04,73,48,1 script Barricade#B38 1905,{} 06guild_04,73,47,1 script Barricade#B39 1905,{} 06guild_04,73,46,1 script Barricade#B40 1905,{} //top 06guild_04,46,73,1 script Barricade#B41 1905,{} 06guild_04,47,73,1 script Barricade#B42 1905,{} 06guild_04,48,73,1 script Barricade#B43 1905,{} 06guild_04,49,73,1 script Barricade#B44 1905,{} 06guild_04,50,73,1 script Barricade#B45 1905,{} 06guild_04,51,73,1 script Barricade#B46 1905,{} 06guild_04,52,73,1 script Barricade#B47 1905,{} 06guild_04,53,73,1 script Barricade#B48 1905,{} 06guild_04,6,53,5 script AB Buffs#AB1 909,{ specialeffect2 37; sc_start SC_INCREASEAGI,240000,10; specialeffect2 42; sc_start SC_BLESSING,240000,10; end; } 06guild_04,53,93,3 script AB Buffs#AB2 909,{ specialeffect2 37; sc_start SC_INCREASEAGI,240000,10; specialeffect2 42; sc_start SC_BLESSING,240000,10; end; } 06guild_04,93,53,4 script AB Buffs#AB3 909,{ specialeffect2 37; sc_start SC_INCREASEAGI,240000,10; specialeffect2 42; sc_start SC_BLESSING,240000,10; end; } 06guild_04,53,6,5 script AB Buffs#AB4 909,{ specialeffect2 37; sc_start SC_INCREASEAGI,240000,10; specialeffect2 42; sc_start SC_BLESSING,240000,10; end; } NRO2pvp_event.txt Edited September 24, 2021 by Mael Use codebox Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted September 24, 2021 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 29 minutes ago Share Posted September 24, 2021 (edited) Use "end;" before "OnCommand:" from hideonnpc "Barricade#B16"; OnCommand: to hideonnpc "Barricade#B16"; end; OnCommand: AND hideonnpc "AB Buffs#AB4"; OnCommand: to hideonnpc "AB Buffs#AB4"; end; OnCommand: this will fix the dispbottom error Edited September 24, 2021 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted September 28, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted September 28, 2021 On 9/25/2021 at 5:00 AM, sader1992 said: Use "end;" before "OnCommand:" from hideonnpc "Barricade#B16"; OnCommand: to hideonnpc "Barricade#B16"; end; OnCommand: AND hideonnpc "AB Buffs#AB4"; OnCommand: to hideonnpc "AB Buffs#AB4"; end; OnCommand: this will fix the dispbottom error Thank you so much Sir @sader1992 dispbottom error Fixed now 1 issue left. By using @pvp_event2 party @pvp_event2 FFA Players getting warped in map & getting doomed but "Map server getting crash" there is no error in cmd any solution for this? I've noticed its happening becaz of @doommap & @raisemap is there any way to work out without getting map server crash? next; atcommand "#warp "+.@Input$+" 06guild_04 8 49"; atcommand "#warp "+.@Input2$+" 06guild_04 91 49"; atcommand "@warp 06guild_04 50 50"; atcommand "@doommap"; sleep 1000; atcommand "@raisemap"; atcommand "#warp "+.@Input$+" 06guild_04 8 49"; atcommand "#warp "+.@Input2$+" 06guild_04 91 49";// end; if possible please reply Thank you so much..!!! Quote Link to comment Share on other sites More sharing options...
Question
DEsMOn
Hellow Everyone,
I'm not so good in scripting just looking for help..!
Can any 1 Help in this? When i use @pvp_event2 party (party name 1 & party name 2) enter players get warped in map but map server crashes..!!
@Emistry
NRO2pvp_event.txt
Edited by MaelUse codebox
Link to comment
Share on other sites
2 answers to this question
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.