Myth Posted July 12, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Share Posted July 12, 2013 a specific map when a player died they will be automatic to a specific map too and if he relogin He will automatic teleport to his/her savepoint Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 - script blah -1,{ OnPCDieEvent: sleep2 1000; while(.maps$[.@i++]!="") if(.maps$[.@i]==strcharinfo(3)) { recovery 0; warp .spaw$[.@i],.map_x[.@i],.map_y[.@i]; sleep2 3000; atcommand "@pvpoff"; } end; OnPCLoginEvent: warp "SavePoint",0,0; end; OnInit: setmapflag "prontera",mf_nosave; setarray .maps$[1], "prontera", "geffen", "izlude", "prt_fild01"; setarray .spaw$[1], "geffen", "prontera", "izlude", "prt_fild02"; setarray .map_x[1], 10, 15, 88, 13; setarray .map_y[1], 20, 16, 55, 12; } Alright last attempt lol. Otherwise you might have to search for the event where pvp is activated. Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 12, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 12, 2013 OnPCDieEvent: sleep2 1000; recovery 0; warp "mapname",x,y; end; OnPCLoginEvent: warp "SavePoint",0,0; end; Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 12, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 12, 2013 he relogin He will automatic teleport to his/her savepoint or Mapflag#nosave instead of warp on onpcloginevent Quote Link to comment Share on other sites More sharing options...
Myth Posted July 13, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 13, 2013 OnPCDieEvent: sleep2 1000; recovery 0; warp "mapname",x,y; end; OnPCLoginEvent: warp "SavePoint",0,0; end; how about if there is 3 to 4 map? how can i do that? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 13, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 13, 2013 if( strcharinfo(3) == "map1" || strcharinfo(3) == "map2" || strcharinfo(3) == "map3" || strcharinfo(3) == "map4" ){ Quote Link to comment Share on other sites More sharing options...
Myth Posted July 13, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 13, 2013 not working Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 how about add a no pvp in there respawn map after death? so that they will not kill each other? Error: npc_parsesrcfile: Unknown syntax in file 'npc/custom/death.txt', line '1'. Stopping... Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 setmapflag "<map name>",mf_nosave; Replace map name with your map. And this would go on the inside of the curlys on a script. also works like but independently: prontera mapflag NoSave Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 like this? OnPCDieEvent: sleep2 1000; recovery 0; warp "prontera",x,y; end; OnPCLoginEvent: warp "SavePoint",0,0; end; prontera mapflag NoSave Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 (edited) Edit--- Edited July 18, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 how can i add to other map? like map2 with specific respawn map too? the same with map3 and map 4 how about this? how about add a no pvp in there respawn map after death? so that they will not kill each other? Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 how can i add to other map? like map2 with specific respawn map too? the same with map3 and map 4 how about this? how about add a no pvp in there respawn map after death? so that they will not kill each other? Hmm not really sure what you mean if you want to add more maps that you can't save on just add more mapflags above the last curly. OnInit: setmapflag "prontera",mf_nosave; setmapflag "map1",mf_nosave; setmapflag "map2",mf_nosave; setmapflag "map3",mf_nosave; } Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 how about the ondie event? map 1 has a different respawn point and map 2, map 3, map 4 they have there individual respawn point NOTE: even in any map this script is still on even i other pvp rooms Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 (edited) how about the ondie event? map 1 has a different respawn point and map 2, map 3, map 4 they have there individual respawn point NOTE: even in any map this script is still on even i other pvp rooms Edit-- Do you want it exclusive to pvp maps? Edited July 18, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 Myth, on 18 Jul 2013 - 18:43, said: how about the ondie event? map 1 has a different respawn point and map 2, map 3, map 4 they have there individual respawn point NOTE: even in any map this script is still on even i other pvp rooms - script blah -1,{OnPCDieEvent: sleep2 1000; while(.maps$[.@i++]!="") if(.maps$[.@i]==strcharinfo(3)) { recovery 0; warp .spaw$[.@i],.map_x[.@i],.map_y[.@i]; } end; OnPCLoginEvent: warp "SavePoint",0,0; end; OnInit: setmapflag "prontera",mf_nosave; setarray .maps$[1], "prontera", "geffen", "izlude", "prt_fild01"; setarray .spaw$[1], "geffen", "prontera", "izlude", "prt_fild02"; setarray .map_x[1], 10, 15, 88, 13; setarray .map_y[1], 20, 16, 55, 12; } Do you want it exclusive to pvp maps? let me test first the only thing is can i add a pvpoff in a certain map? like where they respawn after death because the map is pvpon i want to add a safe area in map 1, 2, 3, 4 Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 (edited) Edit-- Edited July 18, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 pvpoff not working Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 - script blah -1,{ OnPCDieEvent: sleep2 1000; while(.maps$[.@i++]!="") if(.maps$[.@i]==strcharinfo(3)) { recovery 0; pvpoff .spaw$[.@i]; warp .spaw$[.@i],.map_x[.@i],.map_y[.@i]; } end; OnPCLoginEvent: warp "SavePoint",0,0; end; OnInit: setmapflag "prontera",mf_nosave; setarray .maps$[1], "prontera", "geffen", "izlude", "prt_fild01"; setarray .spaw$[1], "geffen", "prontera", "izlude", "prt_fild02"; setarray .map_x[1], 10, 15, 88, 13; setarray .map_y[1], 20, 16, 55, 12; } Maybe try that if it doesn't work... locate conf/mapflag/pvp.txt and comment the maps you don't want pvp on like: //pvp_y_1-1 mapflag pvp Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 i already edit the pvp mapflag and the pvp is still off Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 18, 2013 Wait... do you want it on or off? Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 yup. and the respawn map the pvp is off Quote Link to comment Share on other sites More sharing options...
Myth Posted July 18, 2013 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 225 Reputation: 5 Joined: 05/30/12 Last Seen: March 21 Author Share Posted July 18, 2013 hhaha ok lets try Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted July 30, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted July 30, 2013 Would you like using this? //====================================================== By mysterious, modified excluded maps by Xanvaroth //============================================================ prontera,0,0,0 script Death Angel 1192,{ // Desired Map Where the NPC located OnPCDieEvent: undisguise; deletearray .@ExcludedMaps$[ 0 ], getarraysize( .@ExcludedMaps$[ 0 ] ); setarray .@ExcludedMaps$[ 0 ], "pvpmap", "guild_vs3", "pvp_y-82","cell_game","prtg_cas01","payg_cas05","turbo_room","novice_grd"; // Add all the maps to be excluded here. for( set .@Index, 0; .@Index <= getarraysize( .@ExcludedMaps$ ); set .@Index, .@Index + 1 ) if( strcharinfo( 3 ) == .@ExcludedMaps$[ .@Index ] ) end; warp "map",0,0; // The Map where you will respawn sleep2 1000; announce "Hey "+strcharinfo(0)+", It seems you have died! Don't worry, you will be resurected in 3 Seconds!",bc_blue|bc_self; sleep2 3000; announce "10",bc_blue|bc_self; sleep2 1000; announce "9",bc_blue|bc_self; sleep2 1000; announce "8",bc_blue|bc_self; sleep2 1000; announce "7",bc_blue|bc_self; sleep2 1000; announce "6",bc_blue|bc_self; sleep2 1000; announce "5",bc_blue|bc_self; sleep2 1000; announce "4",bc_blue|bc_self; sleep2 1000; announce "3",bc_blue|bc_self; sleep2 1000; announce "2",bc_blue|bc_self; sleep2 1000; sleep2 1000; announce "Respawning..",bc_blue|bc_self; atcommand "@alive "+strcharinfo(0); announce "1",bc_blue|bc_self; sleep2 1000; atcommand "@load "+strcharinfo(0); } Quote Link to comment Share on other sites More sharing options...
Question
Myth
a specific map when a player died they will be automatic to a specific map too and if he relogin He will automatic teleport to his/her savepoint
Link to comment
Share on other sites
23 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.