playerEnteredContract(type,info) method

master
cim 2015-01-15 18:23:47 +00:00
parent ab6cd8785a
commit edf5948962
1 changed files with 8 additions and 0 deletions

View File

@ -885,6 +885,9 @@ for (unsigned i=0;i<amount;i++)
[passengers addObject:passenger_info];
[passenger_record setObject:[NSNumber numberWithDouble:eta] forKey:Name];
[self doScriptEvent:OOJSID("playerEnteredContract") withArguments:[NSArray arrayWithObjects:@"passenger",passenger_info,nil]];
return YES;
}
@ -935,6 +938,9 @@ for (unsigned i=0;i<amount;i++)
[parcels addObject:parcel_info];
[parcel_record setObject:[NSNumber numberWithDouble:eta] forKey:Name];
[self doScriptEvent:OOJSID("playerEnteredContract") withArguments:[NSArray arrayWithObjects:@"parcel",parcel_info,nil]];
return YES;
}
@ -1022,6 +1028,8 @@ for (unsigned i=0;i<amount;i++)
[contracts addObject:cargo_info];
[contract_record setObject:[NSNumber numberWithDouble:eta] forKey:cargo_ID];
[self doScriptEvent:OOJSID("playerEnteredContract") withArguments:[NSArray arrayWithObjects:@"cargo",cargo_info,nil]];
return YES;
}