Jump to content

Secrets

Developer
  • Posts

    587
  • Joined

  • Days Won

    44

Posts posted by Secrets

  1. function	check	{
    	[email protected] = getcharid(1);
    	if([email protected]) end;
    	if(getpartyleader([email protected], 2) != getcharid(0)) {
    		message strcharinfo(0), "You are not the party leader";
    		end;
    	}
    	getpartymember [email protected],0;
    	getpartymember [email protected],1;
    	getpartymember [email protected],2;
    	
    	for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) {
    		if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) {
    			getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC, [email protected]$[[email protected]]);
    			if([email protected]$ != "prontera") {
    				message strcharinfo(0), "Some members are not in Prontera";
    				end;
    			}
    			if(getvar(TICKETMANIAC, [email protected][[email protected]]) < 1) {
    				message strcharinfo(0), "Some members don't have the ticket";
    				end;
    			}
    			
    		} else {
    			message strcharinfo(0), "Some members are offline";
    			end;
    		}
    	}
    	
    	for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) {
    		if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) )
    			set TICKETMANIAC, TICKETMANIAC - 1, [email protected][[email protected]];
    	}
    	
    	warpparty "morocc",0,0,[email protected];
    }

     

  2. 1 hour ago, crazyarashi said:
    function	party_check	{
    	.@map$ = "prontera";
    	getpartymember getcharid(1),2;
    	getpartymember getcharid(1),2;
    	for( .@i = 0; .@i < [email protected]; .@i++ ){
    		if(attachrid([email protected][.@i])) {
    			if(strcharinfo(3) != .@map$){
    			mes "All members is not in prontera.";
    			close;
    			}
    			if(TICKETMANIAC == 1){
    				mes "Some of your party members does not have ticket maniac.";
    				close;
    				}
    			if(!isloggedin( [email protected][.@i], [email protected][.@i])){
    				mes "A member is not online.";
    				close;
    				}
    			TICKETMANIAC = 0;
    			warp "payon",123,123;		
    			end;
    			}
    		detachrid;
    	}
    	return;
    }

    feel free to test this (not sure if it's gonna work no time to test it) :))

    Use getvar instead of attachrid

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.