Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Sample -1,{
- OnNPCKillEvent:
- for( .@i = 0; .@i < .mob_size; .@i++ )
- if( killedrid == .mob_id[.@i] ){
- set .@map$, strcharinfo(3);
- getpartymember getcharid(1),1;
- getpartymember getcharid(1),2;
- for (set .@i,0; .@i<$@partymembercount; set .@i,.@i+1)
- if ( isloggedin( $@partymemberaid[.@i] ) ){
- attachrid($@partymemberaid[.@i]);
- if (strcharinfo(3) == .@map$ && Hp > 0)
- getitem 607,1;
- detachrid;
- }
- break;
- }
- end;
- OnInit:
- setarray .mob_id,1002,1002,1002,1002;
- .mob_size = getarraysize( .mob_id );
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment