if( getcharid(1) ) {
getpartymember( getcharid(1),2 );
getpartymember( getcharid(1),1 );
//-------------------------
i want to set it up like this -->> setarray .@item, "2374", "2375", "2433", "2537", "5808";
//-------------------------
set .@map_killer$,strcharinfo(3);
set .@chance,rand(10);
for( set .@i,0; .@i<$@partymembercount; set .@i,.@i+1 )
if( isloggedin( $@partymemberaid[ .@i ],$@partymembercid[ .@i ] ) )
if( !getmapxy( .@map$, .@x, .@y, 0, rid2name( $@partymemberaid[ .@i ] ) ) && .@map$ == .@map_killer$ ) {
//----------------------------------------------------
so it wouldn't look like this -->>
//getitem 2374,1, $@partymemberaid[ .@i ];
//getitem 2375,1, $@partymemberaid[ .@i ];
//getitem 2433,1, $@partymemberaid[ .@i ];
//getitem 2537,1, $@partymemberaid[ .@i ];
//getitem 5808,1, $@partymemberaid[ .@i ];
//----------------------------------------------------
//---------------------------------------------------
and so it would look like this -->> getitem .@item,1, $@partymemberaid[ .@i ];
//---------------------------------------------------
if( !.@chance )
getitem 4001, 1, $@partymemberaid[ .@i ];
}
}
end;
}
Question
caspa
Link to comment
Share on other sites
1 answer 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.