partylock already prevent the players from leaving the party
but for logout, well, just very simple script
Code:- script kjdhfkjshfs -1,{OnPCLogoutEvent: if ( strcharinfo(3) != "guild_vs2" ) end; if ( !getcharid(1) ) end; // some gm will bypass nowarpto mapflag ... getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "guild_vs2" ) warp "Save", 0,0; } } // warpparty "SavePoint", 0,0, getcharid(1), "guild_vs2"; // EDIT: forgot warpparty doesn't work on noreturn mapflag end;}guild_vs2 mapflag partylock
yes.so this script... when the party member logout will going back to town the other member,
yes, it disable map-wise because of the mapflagusing partylock or guildlock is meant for event script where you don't want players to invite/leave the party/guild to exploit the eventsabout in /leave party in in partylock only and disable the /leave because in that script?
We use essential cookies to make this site work, and optional cookies to enhance your experience.